[libc-commits] [libc] [libc][docs] Add Unistd header's page to the status of implementations doc (PR #123068)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Fri Jan 17 10:13:37 PST 2025


================
@@ -0,0 +1,722 @@
+macros:
+  _POSIX_VERSION:
+    in-latest-posix: ""
+  _POSIX2_VERSION:
+    in-latest-posix: ""
+  _POSIX_SUBPROFILE:
+    in-latest-posix: ""
+  _XOPEN_VERSION:
+    in-latest-posix: ""
+
+  _POSIX_ADVISORY_INFO:
+    in-latest-posix: ""
+  _POSIX_ASYNCHRONOUS_IO:
+    in-latest-posix: ""
+  _POSIX_BARRIERS:
+    in-latest-posix: ""
+  _POSIX_CHOWN_RESTRICTED:
+    in-latest-posix: ""
+  _POSIX_CLOCK_SELECTION:
+    in-latest-posix: ""
+  _POSIX_CPUTIME:
+    in-latest-posix: ""
+  _POSIX_DEVICE_CONTROL:
+    in-latest-posix: ""
+  _POSIX_FSYNC:
+    in-latest-posix: ""
+  _POSIX_IPV6:
+    in-latest-posix: ""
+  _POSIX_JOB_CONTROL:
+    in-latest-posix: ""
+  _POSIX_MAPPED_FILES:
+    in-latest-posix: ""
+  _POSIX_MEMLOCK:
+    in-latest-posix: ""
+  _POSIX_MEMLOCK_RANGE:
+    in-latest-posix: ""
+  _POSIX_MEMORY_PROTECTION:
+    in-latest-posix: ""
+  _POSIX_MESSAGE_PASSING:
+    in-latest-posix: ""
+  _POSIX_MONOTONIC_CLOCK:
+    in-latest-posix: ""
+  _POSIX_NO_TRUNC:
+    in-latest-posix: ""
+  _POSIX_PRIORITIZED_IO:
+    in-latest-posix: ""
+  _POSIX_PRIORITY_SCHEDULING:
+    in-latest-posix: ""
+  _POSIX_RAW_SOCKETS:
+    in-latest-posix: ""
+  _POSIX_READER_WRITER_LOCKS:
+    in-latest-posix: ""
+  _POSIX_REALTIME_SIGNALS:
+    in-latest-posix: ""
+  _POSIX_REGEXP:
+    in-latest-posix: ""
+  _POSIX_SAVED_IDS:
+    in-latest-posix: ""
+  _POSIX_SEMAPHORES:
+    in-latest-posix: ""
+  _POSIX_SHARED_MEMORY_OBJECTS:
+    in-latest-posix: ""
+  _POSIX_SHELL:
+    in-latest-posix: ""
+  _POSIX_SPAWN:
+    in-latest-posix: ""
+  _POSIX_SPIN_LOCKS:
+    in-latest-posix: ""
+  _POSIX_SPORADIC_SERVER:
+    in-latest-posix: ""
+  _POSIX_SYNCHRONIZED_IO:
+    in-latest-posix: ""
+  _POSIX_THREAD_ATTR_STACKADDR:
+    in-latest-posix: ""
+  _POSIX_THREAD_ATTR_STACKSIZE:
+    in-latest-posix: ""
+  _POSIX_THREAD_CPUTIME:
+    in-latest-posix: ""
+  _POSIX_THREAD_PRIO_INHERIT:
+    in-latest-posix: ""
+  _POSIX_THREAD_PRIO_PROTECT:
+    in-latest-posix: ""
+  _POSIX_THREAD_PRIORITY_SCHEDULING:
+    in-latest-posix: ""
+  _POSIX_THREAD_PROCESS_SHARED:
+    in-latest-posix: ""
+  _POSIX_THREAD_ROBUST_PRIO_INHERIT:
+    in-latest-posix: ""
+  _POSIX_THREAD_ROBUST_PRIO_PROTECT:
+    in-latest-posix: ""
+  _POSIX_THREAD_SAFE_FUNCTIONS:
+    in-latest-posix: ""
+  _POSIX_THREAD_SPORADIC_SERVER:
+    in-latest-posix: ""
+  _POSIX_THREADS:
+    in-latest-posix: ""
+  _POSIX_TIMEOUTS:
+    in-latest-posix: ""
+  _POSIX_TIMERS:
+    in-latest-posix: ""
+  _POSIX_TYPED_MEMORY_OBJECTS:
+    in-latest-posix: ""
+  _POSIX_V7_ILP32_OFF32:
+    in-latest-posix: ""
+  _POSIX_V7_ILP32_OFFBIG:
+    in-latest-posix: ""
+  _POSIX_V7_LP64_OFF64:
+    in-latest-posix: ""
+  _POSIX_V7_LPBIG_OFFBIG:
+    in-latest-posix: ""
+  _POSIX_V8_ILP32_OFF32:
+    in-latest-posix: ""
+  _POSIX_V8_ILP32_OFFBIG:
+    in-latest-posix: ""
+  _POSIX_V8_LP64_OFF64:
+    in-latest-posix: ""
+  _POSIX_V8_LPBIG_OFFBIG:
+    in-latest-posix: ""
+
+  _POSIX2_C_BIND:
+    in-latest-posix: ""
+  _POSIX2_C_DEV:
+    in-latest-posix: ""
+  _POSIX2_CHAR_TERM:
+    in-latest-posix: ""
+  _POSIX2_FORT_RUN:
+    in-latest-posix: ""
+  _POSIX2_LOCALEDEF:
+    in-latest-posix: ""
+  _POSIX2_SW_DEV:
+    in-latest-posix: ""
+  _POSIX2_UPE:
+    in-latest-posix: ""
+  _XOPEN_CRYPT:
+    in-latest-posix: ""
+  _XOPEN_ENH_I18N:
+    in-latest-posix: ""
+  _XOPEN_REALTIME:
+    in-latest-posix: ""
+  _XOPEN_REALTIME_THREADS:
+    in-latest-posix: ""
+  _XOPEN_SHM:
+    in-latest-posix: ""
+  _XOPEN_UNIX:
+    in-latest-posix: ""
+  _XOPEN_UUCP:
+    in-latest-posix: ""
+
+  _POSIX_ASYNC_IO:
+    in-latest-posix: ""
+  _POSIX_FALLOC:
+    in-latest-posix: ""
+  _POSIX_PRIO_IO:
+    in-latest-posix: ""
+  _POSIX_SYNC_IO:
+    in-latest-posix: ""
+  _POSIX_TIMESTAMP_RESOLUTION:
+    in-latest-posix: ""
+  _POSIX2_SYMLINKS:
+    in-latest-posix: ""
+
+  "NULL":
+    in-latest-posix: ""
+  O_CLOEXEC:
+    in-latest-posix: ""
+  O_CLOFORK:
+    in-latest-posix: ""
+  F_OK:
+    in-latest-posix: ""
+  R_OK:
+    in-latest-posix: ""
+  W_OK:
+    in-latest-posix: ""
+  X_OK:
+    in-latest-posix: ""
+
+  _CS_PATH:
+    in-latest-posix: ""
+  _CS_POSIX_V8_ILP32_OFF32_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_ILP32_OFF32_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_ILP32_OFF32_LIBS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_ILP32_OFFBIG_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_ILP32_OFFBIG_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_ILP32_OFFBIG_LIBS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_LP64_OFF64_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_LP64_OFF64_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_LP64_OFF64_LIBS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_LPBIG_OFFBIG_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_LPBIG_OFFBIG_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_LPBIG_OFFBIG_LIBS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_THREADS_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_THREADS_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V8_WIDTH_RESTRICTED_ENVS:
+    in-latest-posix: ""
+  _CS_V8_ENV:
+    in-latest-posix: ""
+
+  _CS_POSIX_V7_ILP32_OFF32_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_ILP32_OFF32_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_ILP32_OFF32_LIBS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_ILP32_OFFBIG_LIBS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_LP64_OFF64_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_LP64_OFF64_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_LP64_OFF64_LIBS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_LPBIG_OFFBIG_LIBS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_THREADS_CFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_THREADS_LDFLAGS:
+    in-latest-posix: ""
+  _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS:
+    in-latest-posix: ""
+  _CS_V7_ENV:
+    in-latest-posix: ""
+
+  SEEK_CUR:
+    in-latest-posix: ""
+  SEEK_END:
+    in-latest-posix: ""
+  SEEK_SET:
+    in-latest-posix: ""
----------------
nickdesaulniers wrote:

> The <unistd.h> header shall define SEEK_CUR, SEEK_END, and SEEK_SET as described in [<stdio.h>](https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html).

This just means that unistd.h includes <stdio.h>. But it does define `SEEK_HOLE` and `SEEK_DATA`.
```suggestion
```

https://github.com/llvm/llvm-project/pull/123068


More information about the libc-commits mailing list