Skip to content

Commit

Permalink
ref: add POSIX.1-2024 terms
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Sep 12, 2024
1 parent 6b626a6 commit 2c48cab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Also compares versions lexicographically.
"",
"ANYOS",
"posix_2017",
"posix_2024",
"aix",
"android",
"darwin",
Expand Down
8 changes: 5 additions & 3 deletions triplet.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ var Triplet = ('object' === typeof module && exports) || {};
SOLARIS: { os: 'solaris' },

// Any
POSIX: { os: 'posix_2017', arch: 'ANYARCH', vendor: 'unknown' },
POSIX_2017: { os: 'posix_2017', arch: 'ANYARCH', vendor: 'unknown' },
POSIX_2024: { os: 'posix_2024', arch: 'ANYARCH', vendor: 'unknown' },
WASI: { os: 'wasi', vendor: 'unknown' },

// Arches
Expand Down Expand Up @@ -269,8 +270,9 @@ var Triplet = ('object' === typeof module && exports) || {};
tpm['solaris'] = T.SOLARIS;
tpm['solaris_11'] = T.SOLARIS;
// System Interfaces (POSIX, WASI)
tpm['posix'] = T.POSIX;
tpm['posix_2017'] = T.POSIX;
tpm['posix'] = T.POSIX_2017;
tpm['posix_2017'] = T.POSIX_2017;
tpm['posix_2024'] = T.POSIX_2024;
tpm['wasi'] = T.WASI;

// OS + Arch
Expand Down
2 changes: 1 addition & 1 deletion types.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports._types = true;

/**
* @typedef {""|"ANYOS"|"posix_2017"|"aix"|"android"|"darwin"|"dragonfly"|"freebsd"|"illumos"|"linux"|"netbsd"|"openbsd"|"plan9"|"solaris"|"sunos"|"wasi"|"windows"} OsString
* @typedef {""|"ANYOS"|"posix_2024"|"posix_2017"|"aix"|"android"|"darwin"|"dragonfly"|"freebsd"|"illumos"|"linux"|"netbsd"|"openbsd"|"plan9"|"solaris"|"sunos"|"wasi"|"windows"} OsString
*/

/**
Expand Down

0 comments on commit 2c48cab

Please sign in to comment.