Skip to content

Commit 2c48cab

Browse files
committed
ref: add POSIX.1-2024 terms
1 parent 6b626a6 commit 2c48cab

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Also compares versions lexicographically.
6060
"",
6161
"ANYOS",
6262
"posix_2017",
63+
"posix_2024",
6364
"aix",
6465
"android",
6566
"darwin",

triplet.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ var Triplet = ('object' === typeof module && exports) || {};
195195
SOLARIS: { os: 'solaris' },
196196

197197
// Any
198-
POSIX: { os: 'posix_2017', arch: 'ANYARCH', vendor: 'unknown' },
198+
POSIX_2017: { os: 'posix_2017', arch: 'ANYARCH', vendor: 'unknown' },
199+
POSIX_2024: { os: 'posix_2024', arch: 'ANYARCH', vendor: 'unknown' },
199200
WASI: { os: 'wasi', vendor: 'unknown' },
200201

201202
// Arches
@@ -269,8 +270,9 @@ var Triplet = ('object' === typeof module && exports) || {};
269270
tpm['solaris'] = T.SOLARIS;
270271
tpm['solaris_11'] = T.SOLARIS;
271272
// System Interfaces (POSIX, WASI)
272-
tpm['posix'] = T.POSIX;
273-
tpm['posix_2017'] = T.POSIX;
273+
tpm['posix'] = T.POSIX_2017;
274+
tpm['posix_2017'] = T.POSIX_2017;
275+
tpm['posix_2024'] = T.POSIX_2024;
274276
tpm['wasi'] = T.WASI;
275277

276278
// OS + Arch

types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module.exports._types = true;
44

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

99
/**

0 commit comments

Comments
 (0)