From 367110944d18d3264af77625e257301f817f2b0c Mon Sep 17 00:00:00 2001 From: Prashanth Date: Wed, 15 Jan 2025 12:16:11 +0000 Subject: [PATCH 1/4] Add unistd header support and document related POSIX functions --- libc/docs/CMakeLists.txt | 1 + libc/docs/headers/index.rst | 1 + libc/utils/docgen/unistd.yaml | 265 ++++++++++++++++++++++++++++++++++ 3 files changed, 267 insertions(+) create mode 100644 libc/utils/docgen/unistd.yaml diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt index fca8caec004f7..4695c3f096699 100644 --- a/libc/docs/CMakeLists.txt +++ b/libc/docs/CMakeLists.txt @@ -57,6 +57,7 @@ if (SPHINX_FOUND) sys/resource threads uchar + unistd wchar wctype ) diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst index 67325e40dcbbd..d35359a29ccbe 100644 --- a/libc/docs/headers/index.rst +++ b/libc/docs/headers/index.rst @@ -31,5 +31,6 @@ Implementation Status threads time uchar + unistd wchar wctype diff --git a/libc/utils/docgen/unistd.yaml b/libc/utils/docgen/unistd.yaml new file mode 100644 index 0000000000000..8303083f0c621 --- /dev/null +++ b/libc/utils/docgen/unistd.yaml @@ -0,0 +1,265 @@ +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: '' + + + + +functions: + access: + in-latest-posix: '' + alarm: + in-latest-posix: '' + chdir: + in-latest-posix: '' + chown: + in-latest-posix: '' + close: + in-latest-posix: '' + confstr: + in-latest-posix: '' + crypt: + in-latest-posix: '' + dup: + in-latest-posix: '' + dup2: + in-latest-posix: '' + dup3: + in-latest-posix: '' + _exit: + in-latest-posix: '' + encrypt: + in-latest-posix: '' + execl: + in-latest-posix: '' + execle: + in-latest-posix: '' + execlp: + in-latest-posix: '' + execv: + in-latest-posix: '' + execve: + in-latest-posix: '' + execvp: + in-latest-posix: '' + fchdir: + in-latest-posix: '' + fchown: + in-latest-posix: '' + fdatasync: + in-latest-posix: '' + fork: + in-latest-posix: '' + fpathconf: + in-latest-posix: '' + fsync: + in-latest-posix: '' \ No newline at end of file From 3d4e1e937c2144a4f8971f9a0063a55f33599aa1 Mon Sep 17 00:00:00 2001 From: Prashanth Date: Wed, 15 Jan 2025 20:54:58 +0530 Subject: [PATCH 2/4] Add remaining POSIX function and macro documentation to unistd.yaml --- libc/utils/docgen/unistd.yaml | 465 ++++++++++++++++++++++++++++++++++ 1 file changed, 465 insertions(+) diff --git a/libc/utils/docgen/unistd.yaml b/libc/utils/docgen/unistd.yaml index 8303083f0c621..54d44101baa57 100644 --- a/libc/utils/docgen/unistd.yaml +++ b/libc/utils/docgen/unistd.yaml @@ -211,6 +211,346 @@ macros: _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: '' + SEEK_HOLE: + in-latest-posix: '' + SEEK_DATA: + in-latest-posix: '' + + F_LOCK: + in-latest-posix: '' + F_TEST: + in-latest-posix: '' + F_TLOCK: + in-latest-posix: '' + F_ULOCK: + in-latest-posix: '' + + + + _PC_2_SYMLINKS: + in-latest-posix: '' + _PC_ALLOC_SIZE_MIN: + in-latest-posix: '' + _PC_ASYNC_IO: + in-latest-posix: '' + _PC_CHOWN_RESTRICTED: + in-latest-posix: '' + _PC_FALLOC: + in-latest-posix: '' + _PC_FILESIZEBITS: + in-latest-posix: '' + _PC_LINK_MAX: + in-latest-posix: '' + _PC_MAX_CANON: + in-latest-posix: '' + _PC_MAX_INPUT: + in-latest-posix: '' + _PC_NAME_MAX: + in-latest-posix: '' + _PC_NO_TRUNC: + in-latest-posix: '' + _PC_PATH_MAX: + in-latest-posix: '' + _PC_PIPE_BUF: + in-latest-posix: '' + _PC_PRIO_IO: + in-latest-posix: '' + _PC_REC_INCR_XFER_SIZE: + in-latest-posix: '' + _PC_REC_MAX_XFER_SIZE: + in-latest-posix: '' + _PC_REC_MIN_XFER_SIZE: + in-latest-posix: '' + _PC_REC_XFER_ALIGN: + in-latest-posix: '' + _PC_SYMLINK_MAX: + in-latest-posix: '' + _PC_SYNC_IO: + in-latest-posix: '' + _PC_TEXTDOMAIN_MAX: + in-latest-posix: '' + _PC_TIMESTAMP_RESOLUTION: + in-latest-posix: '' + _PC_VDISABLE: + in-latest-posix: '' + + _SC_2_C_BIND: + in-latest-posix: '' + _SC_2_C_DEV: + in-latest-posix: '' + _SC_2_CHAR_TERM: + in-latest-posix: '' + _SC_2_FORT_RUN: + in-latest-posix: '' + _SC_2_LOCALEDEF: + in-latest-posix: '' + _SC_2_SW_DEV: + in-latest-posix: '' + _SC_2_UPE: + in-latest-posix: '' + _SC_2_VERSION: + in-latest-posix: '' + _SC_ADVISORY_INFO: + in-latest-posix: '' + _SC_AIO_LISTIO_MAX: + in-latest-posix: '' + _SC_AIO_MAX: + in-latest-posix: '' + _SC_AIO_PRIO_DELTA_MAX: + in-latest-posix: '' + _SC_ARG_MAX: + in-latest-posix: '' + _SC_ASYNCHRONOUS_IO: + in-latest-posix: '' + _SC_ATEXIT_MAX: + in-latest-posix: '' + _SC_BARRIERS: + in-latest-posix: '' + _SC_BC_BASE_MAX: + in-latest-posix: '' + _SC_BC_DIM_MAX: + in-latest-posix: '' + _SC_BC_SCALE_MAX: + in-latest-posix: '' + _SC_BC_STRING_MAX: + in-latest-posix: '' + _SC_CHILD_MAX: + in-latest-posix: '' + _SC_CLK_TCK: + in-latest-posix: '' + _SC_CLOCK_SELECTION: + in-latest-posix: '' + _SC_COLL_WEIGHTS_MAX: + in-latest-posix: '' + _SC_CPUTIME: + in-latest-posix: '' + _SC_DELAYTIMER_MAX: + in-latest-posix: '' + _SC_DEVICE_CONTROL: + in-latest-posix: '' + _SC_EXPR_NEST_MAX: + in-latest-posix: '' + _SC_FSYNC: + in-latest-posix: '' + _SC_GETGR_R_SIZE_MAX: + in-latest-posix: '' + _SC_GETPW_R_SIZE_MAX: + in-latest-posix: '' + _SC_HOST_NAME_MAX: + in-latest-posix: '' + _SC_IOV_MAX: + in-latest-posix: '' + _SC_IPV6: + in-latest-posix: '' + _SC_JOB_CONTROL: + in-latest-posix: '' + _SC_LINE_MAX: + in-latest-posix: '' + _SC_LOGIN_NAME_MAX: + in-latest-posix: '' + _SC_MAPPED_FILES: + in-latest-posix: '' + _SC_MEMLOCK: + in-latest-posix: '' + _SC_MEMLOCK_RANGE: + in-latest-posix: '' + _SC_MEMORY_PROTECTION: + in-latest-posix: '' + _SC_MESSAGE_PASSING: + in-latest-posix: '' + _SC_MONOTONIC_CLOCK: + in-latest-posix: '' + _SC_MQ_OPEN_MAX: + in-latest-posix: '' + _SC_MQ_PRIO_MAX: + in-latest-posix: '' + _SC_NGROUPS_MAX: + in-latest-posix: '' + _SC_NPROCESSORS_CONF: + in-latest-posix: '' + _SC_NPROCESSORS_ONLN: + in-latest-posix: '' + _SC_NSIG: + in-latest-posix: '' + _SC_OPEN_MAX: + in-latest-posix: '' + _SC_PAGE_SIZE: + in-latest-posix: '' + _SC_PAGESIZE: + in-latest-posix: '' + _SC_PRIORITIZED_IO: + in-latest-posix: '' + _SC_PRIORITY_SCHEDULING: + in-latest-posix: '' + _SC_RAW_SOCKETS: + in-latest-posix: '' + _SC_RE_DUP_MAX: + in-latest-posix: '' + _SC_READER_WRITER_LOCKS: + in-latest-posix: '' + _SC_REALTIME_SIGNALS: + in-latest-posix: '' + _SC_REGEXP: + in-latest-posix: '' + _SC_RTSIG_MAX: + in-latest-posix: '' + _SC_SAVED_IDS: + in-latest-posix: '' + _SC_SEM_NSEMS_MAX: + in-latest-posix: '' + _SC_SEM_VALUE_MAX: + in-latest-posix: '' + _SC_SEMAPHORES: + in-latest-posix: '' + _SC_SHARED_MEMORY_OBJECTS: + in-latest-posix: '' + _SC_SHELL: + in-latest-posix: '' + _SC_SIGQUEUE_MAX: + in-latest-posix: '' + _SC_SPAWN: + in-latest-posix: '' + _SC_SPIN_LOCKS: + in-latest-posix: '' + _SC_SPORADIC_SERVER: + in-latest-posix: '' + _SC_SS_REPL_MAX: + in-latest-posix: '' + _SC_STREAM_MAX: + in-latest-posix: '' + _SC_SYMLOOP_MAX: + in-latest-posix: '' + _SC_SYNCHRONIZED_IO: + in-latest-posix: '' + _SC_THREAD_ATTR_STACKADDR: + in-latest-posix: '' + _SC_THREAD_ATTR_STACKSIZE: + in-latest-posix: '' + _SC_THREAD_CPUTIME: + in-latest-posix: '' + _SC_THREAD_DESTRUCTOR_ITERATIONS: + in-latest-posix: '' + _SC_THREAD_KEYS_MAX: + in-latest-posix: '' + _SC_THREAD_PRIO_INHERIT: + in-latest-posix: '' + _SC_THREAD_PRIO_PROTECT: + in-latest-posix: '' + _SC_THREAD_PRIORITY_SCHEDULING: + in-latest-posix: '' + _SC_THREAD_PROCESS_SHARED: + in-latest-posix: '' + _SC_THREAD_ROBUST_PRIO_INHERIT: + in-latest-posix: '' + _SC_THREAD_ROBUST_PRIO_PROTECT: + in-latest-posix: '' + _SC_THREAD_SAFE_FUNCTIONS: + in-latest-posix: '' + _SC_THREAD_SPORADIC_SERVER: + in-latest-posix: '' + _SC_THREAD_STACK_MIN: + in-latest-posix: '' + _SC_THREAD_THREADS_MAX: + in-latest-posix: '' + _SC_THREADS: + in-latest-posix: '' + _SC_TIMEOUTS: + in-latest-posix: '' + _SC_TIMER_MAX: + in-latest-posix: '' + _SC_TIMERS: + in-latest-posix: '' + _SC_TTY_NAME_MAX: + in-latest-posix: '' + _SC_TYPED_MEMORY_OBJECTS: + in-latest-posix: '' + _SC_TZNAME_MAX: + in-latest-posix: '' + _SC_V8_ILP32_OFF32: + in-latest-posix: '' + _SC_V8_ILP32_OFFBIG: + in-latest-posix: '' + _SC_V8_LP64_OFF64: + in-latest-posix: '' + _SC_V8_LPBIG_OFFBIG: + in-latest-posix: '' + _SC_V7_ILP32_OFF32: + in-latest-posix: '' + _SC_V7_ILP32_OFFBIG: + in-latest-posix: '' + _SC_V7_LP64_OFF64: + in-latest-posix: '' + _SC_V7_LPBIG_OFFBIG: + in-latest-posix: '' + _SC_VERSION: + in-latest-posix: '' + _SC_XOPEN_CRYPT: + in-latest-posix: '' + _SC_XOPEN_ENH_I18N: + in-latest-posix: '' + _SC_XOPEN_REALTIME: + in-latest-posix: '' + _SC_XOPEN_REALTIME_THREADS: + in-latest-posix: '' + _SC_XOPEN_SHM: + in-latest-posix: '' + _SC_XOPEN_UNIX: + in-latest-posix: '' + _SC_XOPEN_UUCP: + in-latest-posix: '' + _SC_XOPEN_VERSION: + in-latest-posix: '' + + STDERR_FILENO: + in-latest-posix: '' + STDIN_FILENO: + in-latest-posix: '' + STDOUT_FILENO: + in-latest-posix: '' + _POSIX_VDISABLE: + in-latest-posix: '' + POSIX_CLOSE_RESTART: + in-latest-posix: '' @@ -262,4 +602,129 @@ functions: fpathconf: in-latest-posix: '' fsync: + in-latest-posix: '' + + ftruncate: + in-latest-posix: '' + getcwd: + in-latest-posix: '' + getegid: + in-latest-posix: '' + getentropy: + in-latest-posix: '' + geteuid: + in-latest-posix: '' + getgid: + in-latest-posix: '' + getgroups: + in-latest-posix: '' + gethostid: + in-latest-posix: '' + gethostname: + in-latest-posix: '' + getlogin: + in-latest-posix: '' + getlogin_r: + in-latest-posix: '' + getopt: + in-latest-posix: '' + getpgid: + in-latest-posix: '' + getpgrp: + in-latest-posix: '' + getpid: + in-latest-posix: '' + getppid: + in-latest-posix: '' + getresgid: + in-latest-posix: '' + getresuid: + in-latest-posix: '' + getsid: + in-latest-posix: '' + getuid: + in-latest-posix: '' + isatty: + in-latest-posix: '' + lchown: + in-latest-posix: '' + link: + in-latest-posix: '' + linkat: + in-latest-posix: '' + + lockf: + in-latest-posix: '' + lseek: + in-latest-posix: '' + nice: + in-latest-posix: '' + pathconf: + in-latest-posix: '' + pause: + in-latest-posix: '' + pipe: + in-latest-posix: '' + pipe2: + in-latest-posix: '' + posix_close: + in-latest-posix: '' + pread: + in-latest-posix: '' + pwrite: + in-latest-posix: '' + read: + in-latest-posix: '' + readlink: + in-latest-posix: '' + readlinkat: + in-latest-posix: '' + rmdir: + in-latest-posix: '' + setegid: + in-latest-posix: '' + seteuid: + in-latest-posix: '' + setgid: + in-latest-posix: '' + setpgid: + in-latest-posix: '' + setregid: + in-latest-posix: '' + setresgid: + in-latest-posix: '' + setresuid: + in-latest-posix: '' + setreuid: + in-latest-posix: '' + setsid: + in-latest-posix: '' + setuid: + in-latest-posix: '' + sleep: + in-latest-posix: '' + + swab: + in-latest-posix: '' + symlink: + in-latest-posix: '' + symlinkat: + in-latest-posix: '' + sync: + in-latest-posix: '' + sysconf: + in-latest-posix: '' + tcgetpgrp: + in-latest-posix: '' + tcsetpgrp: + in-latest-posix: '' + truncate: + in-latest-posix: '' + ttyname_r: + in-latest-posix: '' + unlink: + in-latest-posix: '' + unlinkat: + in-latest-posix: '' + write: in-latest-posix: '' \ No newline at end of file From 871bf6ed997f2138a27b3efdc6a64156f9180fec Mon Sep 17 00:00:00 2001 From: Prashanth Date: Wed, 15 Jan 2025 21:19:02 +0530 Subject: [PATCH 3/4] Fix errors in the yaml file caused by indentation --- libc/utils/docgen/unistd.yaml | 726 +++++++++++++++++----------------- 1 file changed, 359 insertions(+), 367 deletions(-) diff --git a/libc/utils/docgen/unistd.yaml b/libc/utils/docgen/unistd.yaml index 54d44101baa57..e4cb52e993987 100644 --- a/libc/utils/docgen/unistd.yaml +++ b/libc/utils/docgen/unistd.yaml @@ -1,730 +1,722 @@ macros: _POSIX_VERSION: - in-latest-posix: '' + in-latest-posix: "" _POSIX2_VERSION: - in-latest-posix: '' + in-latest-posix: "" _POSIX_SUBPROFILE: - in-latest-posix: '' + in-latest-posix: "" _XOPEN_VERSION: - in-latest-posix: '' - - + in-latest-posix: "" + _POSIX_ADVISORY_INFO: - in-latest-posix: '' + in-latest-posix: "" _POSIX_ASYNCHRONOUS_IO: - in-latest-posix: '' + in-latest-posix: "" _POSIX_BARRIERS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_CHOWN_RESTRICTED: - in-latest-posix: '' + in-latest-posix: "" _POSIX_CLOCK_SELECTION: - in-latest-posix: '' + in-latest-posix: "" _POSIX_CPUTIME: - in-latest-posix: '' + in-latest-posix: "" _POSIX_DEVICE_CONTROL: - in-latest-posix: '' + in-latest-posix: "" _POSIX_FSYNC: - in-latest-posix: '' + in-latest-posix: "" _POSIX_IPV6: - in-latest-posix: '' + in-latest-posix: "" _POSIX_JOB_CONTROL: - in-latest-posix: '' + in-latest-posix: "" _POSIX_MAPPED_FILES: - in-latest-posix: '' + in-latest-posix: "" _POSIX_MEMLOCK: - in-latest-posix: '' - _POSIX_MEMLOCK_RANGE: - in-latest-posix: '' + in-latest-posix: "" + _POSIX_MEMLOCK_RANGE: + in-latest-posix: "" _POSIX_MEMORY_PROTECTION: - in-latest-posix: '' + in-latest-posix: "" _POSIX_MESSAGE_PASSING: - in-latest-posix: '' + in-latest-posix: "" _POSIX_MONOTONIC_CLOCK: - in-latest-posix: '' + in-latest-posix: "" _POSIX_NO_TRUNC: - in-latest-posix: '' + in-latest-posix: "" _POSIX_PRIORITIZED_IO: - in-latest-posix: '' + in-latest-posix: "" _POSIX_PRIORITY_SCHEDULING: - in-latest-posix: '' + in-latest-posix: "" _POSIX_RAW_SOCKETS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_READER_WRITER_LOCKS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_REALTIME_SIGNALS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_REGEXP: - in-latest-posix: '' + in-latest-posix: "" _POSIX_SAVED_IDS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_SEMAPHORES: - in-latest-posix: '' + in-latest-posix: "" _POSIX_SHARED_MEMORY_OBJECTS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_SHELL: - in-latest-posix: '' - _POSIX_SPAWN: - in-latest-posix: '' + in-latest-posix: "" + _POSIX_SPAWN: + in-latest-posix: "" _POSIX_SPIN_LOCKS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_SPORADIC_SERVER: - in-latest-posix: '' + in-latest-posix: "" _POSIX_SYNCHRONIZED_IO: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_ATTR_STACKADDR: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_ATTR_STACKSIZE: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_CPUTIME: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_PRIO_INHERIT: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_PRIO_PROTECT: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_PRIORITY_SCHEDULING: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_PROCESS_SHARED: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_ROBUST_PRIO_INHERIT: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_ROBUST_PRIO_PROTECT: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_SAFE_FUNCTIONS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREAD_SPORADIC_SERVER: - in-latest-posix: '' + in-latest-posix: "" _POSIX_THREADS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_TIMEOUTS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_TIMERS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_TYPED_MEMORY_OBJECTS: - in-latest-posix: '' + in-latest-posix: "" _POSIX_V7_ILP32_OFF32: - in-latest-posix: '' + in-latest-posix: "" _POSIX_V7_ILP32_OFFBIG: - in-latest-posix: '' + in-latest-posix: "" _POSIX_V7_LP64_OFF64: - in-latest-posix: '' + in-latest-posix: "" _POSIX_V7_LPBIG_OFFBIG: - in-latest-posix: '' + in-latest-posix: "" _POSIX_V8_ILP32_OFF32: - in-latest-posix: '' + in-latest-posix: "" _POSIX_V8_ILP32_OFFBIG: - in-latest-posix: '' + in-latest-posix: "" _POSIX_V8_LP64_OFF64: - in-latest-posix: '' + in-latest-posix: "" _POSIX_V8_LPBIG_OFFBIG: - in-latest-posix: '' + in-latest-posix: "" _POSIX2_C_BIND: - in-latest-posix: '' + in-latest-posix: "" _POSIX2_C_DEV: - in-latest-posix: '' + in-latest-posix: "" _POSIX2_CHAR_TERM: - in-latest-posix: '' + in-latest-posix: "" _POSIX2_FORT_RUN: - in-latest-posix: '' + in-latest-posix: "" _POSIX2_LOCALEDEF: - in-latest-posix: '' + in-latest-posix: "" _POSIX2_SW_DEV: - in-latest-posix: '' + in-latest-posix: "" _POSIX2_UPE: - in-latest-posix: '' + in-latest-posix: "" _XOPEN_CRYPT: - in-latest-posix: '' + in-latest-posix: "" _XOPEN_ENH_I18N: - in-latest-posix: '' + in-latest-posix: "" _XOPEN_REALTIME: - in-latest-posix: '' + in-latest-posix: "" _XOPEN_REALTIME_THREADS: - in-latest-posix: '' + in-latest-posix: "" _XOPEN_SHM: - in-latest-posix: '' + in-latest-posix: "" _XOPEN_UNIX: - in-latest-posix: '' + in-latest-posix: "" _XOPEN_UUCP: - in-latest-posix: '' + in-latest-posix: "" _POSIX_ASYNC_IO: - in-latest-posix: '' + in-latest-posix: "" _POSIX_FALLOC: - in-latest-posix: '' + in-latest-posix: "" _POSIX_PRIO_IO: - in-latest-posix: '' - _POSIX_SYNC_IO: - in-latest-posix: '' + in-latest-posix: "" + _POSIX_SYNC_IO: + in-latest-posix: "" _POSIX_TIMESTAMP_RESOLUTION: - in-latest-posix: '' + in-latest-posix: "" _POSIX2_SYMLINKS: - in-latest-posix: '' + in-latest-posix: "" - - NULL: - in-latest-posix: '' + "NULL": + in-latest-posix: "" O_CLOEXEC: - in-latest-posix: '' + in-latest-posix: "" O_CLOFORK: - in-latest-posix: '' + in-latest-posix: "" F_OK: - in-latest-posix: '' + in-latest-posix: "" R_OK: - in-latest-posix: '' + in-latest-posix: "" W_OK: - in-latest-posix: '' + in-latest-posix: "" X_OK: - in-latest-posix: '' + in-latest-posix: "" _CS_PATH: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_ILP32_OFF32_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_ILP32_OFF32_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_ILP32_OFF32_LIBS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_ILP32_OFFBIG_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_ILP32_OFFBIG_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_ILP32_OFFBIG_LIBS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_LP64_OFF64_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_LP64_OFF64_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_LP64_OFF64_LIBS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_LPBIG_OFFBIG_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_LPBIG_OFFBIG_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_LPBIG_OFFBIG_LIBS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_THREADS_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_THREADS_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V8_WIDTH_RESTRICTED_ENVS: - in-latest-posix: '' + in-latest-posix: "" _CS_V8_ENV: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_ILP32_OFF32_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_ILP32_OFF32_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_ILP32_OFF32_LIBS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_ILP32_OFFBIG_LIBS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_LP64_OFF64_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_LP64_OFF64_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_LP64_OFF64_LIBS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_LPBIG_OFFBIG_LIBS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_THREADS_CFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_THREADS_LDFLAGS: - in-latest-posix: '' + in-latest-posix: "" _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS: - in-latest-posix: '' + in-latest-posix: "" _CS_V7_ENV: - in-latest-posix: '' - + in-latest-posix: "" SEEK_CUR: - in-latest-posix: '' + in-latest-posix: "" SEEK_END: - in-latest-posix: '' + in-latest-posix: "" SEEK_SET: - in-latest-posix: '' + in-latest-posix: "" SEEK_HOLE: - in-latest-posix: '' + in-latest-posix: "" SEEK_DATA: - in-latest-posix: '' + in-latest-posix: "" F_LOCK: - in-latest-posix: '' + in-latest-posix: "" F_TEST: - in-latest-posix: '' + in-latest-posix: "" F_TLOCK: - in-latest-posix: '' + in-latest-posix: "" F_ULOCK: - in-latest-posix: '' - - + in-latest-posix: "" _PC_2_SYMLINKS: - in-latest-posix: '' + in-latest-posix: "" _PC_ALLOC_SIZE_MIN: - in-latest-posix: '' + in-latest-posix: "" _PC_ASYNC_IO: - in-latest-posix: '' + in-latest-posix: "" _PC_CHOWN_RESTRICTED: - in-latest-posix: '' + in-latest-posix: "" _PC_FALLOC: - in-latest-posix: '' + in-latest-posix: "" _PC_FILESIZEBITS: - in-latest-posix: '' + in-latest-posix: "" _PC_LINK_MAX: - in-latest-posix: '' + in-latest-posix: "" _PC_MAX_CANON: - in-latest-posix: '' + in-latest-posix: "" _PC_MAX_INPUT: - in-latest-posix: '' + in-latest-posix: "" _PC_NAME_MAX: - in-latest-posix: '' + in-latest-posix: "" _PC_NO_TRUNC: - in-latest-posix: '' + in-latest-posix: "" _PC_PATH_MAX: - in-latest-posix: '' + in-latest-posix: "" _PC_PIPE_BUF: - in-latest-posix: '' + in-latest-posix: "" _PC_PRIO_IO: - in-latest-posix: '' + in-latest-posix: "" _PC_REC_INCR_XFER_SIZE: - in-latest-posix: '' + in-latest-posix: "" _PC_REC_MAX_XFER_SIZE: - in-latest-posix: '' + in-latest-posix: "" _PC_REC_MIN_XFER_SIZE: - in-latest-posix: '' + in-latest-posix: "" _PC_REC_XFER_ALIGN: - in-latest-posix: '' + in-latest-posix: "" _PC_SYMLINK_MAX: - in-latest-posix: '' + in-latest-posix: "" _PC_SYNC_IO: - in-latest-posix: '' + in-latest-posix: "" _PC_TEXTDOMAIN_MAX: - in-latest-posix: '' + in-latest-posix: "" _PC_TIMESTAMP_RESOLUTION: - in-latest-posix: '' + in-latest-posix: "" _PC_VDISABLE: - in-latest-posix: '' + in-latest-posix: "" _SC_2_C_BIND: - in-latest-posix: '' + in-latest-posix: "" _SC_2_C_DEV: - in-latest-posix: '' + in-latest-posix: "" _SC_2_CHAR_TERM: - in-latest-posix: '' + in-latest-posix: "" _SC_2_FORT_RUN: - in-latest-posix: '' + in-latest-posix: "" _SC_2_LOCALEDEF: - in-latest-posix: '' + in-latest-posix: "" _SC_2_SW_DEV: - in-latest-posix: '' + in-latest-posix: "" _SC_2_UPE: - in-latest-posix: '' + in-latest-posix: "" _SC_2_VERSION: - in-latest-posix: '' + in-latest-posix: "" _SC_ADVISORY_INFO: - in-latest-posix: '' + in-latest-posix: "" _SC_AIO_LISTIO_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_AIO_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_AIO_PRIO_DELTA_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_ARG_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_ASYNCHRONOUS_IO: - in-latest-posix: '' + in-latest-posix: "" _SC_ATEXIT_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_BARRIERS: - in-latest-posix: '' + in-latest-posix: "" _SC_BC_BASE_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_BC_DIM_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_BC_SCALE_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_BC_STRING_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_CHILD_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_CLK_TCK: - in-latest-posix: '' + in-latest-posix: "" _SC_CLOCK_SELECTION: - in-latest-posix: '' + in-latest-posix: "" _SC_COLL_WEIGHTS_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_CPUTIME: - in-latest-posix: '' + in-latest-posix: "" _SC_DELAYTIMER_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_DEVICE_CONTROL: - in-latest-posix: '' + in-latest-posix: "" _SC_EXPR_NEST_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_FSYNC: - in-latest-posix: '' + in-latest-posix: "" _SC_GETGR_R_SIZE_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_GETPW_R_SIZE_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_HOST_NAME_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_IOV_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_IPV6: - in-latest-posix: '' + in-latest-posix: "" _SC_JOB_CONTROL: - in-latest-posix: '' + in-latest-posix: "" _SC_LINE_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_LOGIN_NAME_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_MAPPED_FILES: - in-latest-posix: '' + in-latest-posix: "" _SC_MEMLOCK: - in-latest-posix: '' + in-latest-posix: "" _SC_MEMLOCK_RANGE: - in-latest-posix: '' + in-latest-posix: "" _SC_MEMORY_PROTECTION: - in-latest-posix: '' + in-latest-posix: "" _SC_MESSAGE_PASSING: - in-latest-posix: '' + in-latest-posix: "" _SC_MONOTONIC_CLOCK: - in-latest-posix: '' + in-latest-posix: "" _SC_MQ_OPEN_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_MQ_PRIO_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_NGROUPS_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_NPROCESSORS_CONF: - in-latest-posix: '' + in-latest-posix: "" _SC_NPROCESSORS_ONLN: - in-latest-posix: '' + in-latest-posix: "" _SC_NSIG: - in-latest-posix: '' + in-latest-posix: "" _SC_OPEN_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_PAGE_SIZE: - in-latest-posix: '' + in-latest-posix: "" _SC_PAGESIZE: - in-latest-posix: '' + in-latest-posix: "" _SC_PRIORITIZED_IO: - in-latest-posix: '' + in-latest-posix: "" _SC_PRIORITY_SCHEDULING: - in-latest-posix: '' + in-latest-posix: "" _SC_RAW_SOCKETS: - in-latest-posix: '' + in-latest-posix: "" _SC_RE_DUP_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_READER_WRITER_LOCKS: - in-latest-posix: '' + in-latest-posix: "" _SC_REALTIME_SIGNALS: - in-latest-posix: '' + in-latest-posix: "" _SC_REGEXP: - in-latest-posix: '' + in-latest-posix: "" _SC_RTSIG_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_SAVED_IDS: - in-latest-posix: '' + in-latest-posix: "" _SC_SEM_NSEMS_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_SEM_VALUE_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_SEMAPHORES: - in-latest-posix: '' + in-latest-posix: "" _SC_SHARED_MEMORY_OBJECTS: - in-latest-posix: '' + in-latest-posix: "" _SC_SHELL: - in-latest-posix: '' + in-latest-posix: "" _SC_SIGQUEUE_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_SPAWN: - in-latest-posix: '' + in-latest-posix: "" _SC_SPIN_LOCKS: - in-latest-posix: '' + in-latest-posix: "" _SC_SPORADIC_SERVER: - in-latest-posix: '' + in-latest-posix: "" _SC_SS_REPL_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_STREAM_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_SYMLOOP_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_SYNCHRONIZED_IO: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_ATTR_STACKADDR: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_ATTR_STACKSIZE: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_CPUTIME: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_DESTRUCTOR_ITERATIONS: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_KEYS_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_PRIO_INHERIT: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_PRIO_PROTECT: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_PRIORITY_SCHEDULING: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_PROCESS_SHARED: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_ROBUST_PRIO_INHERIT: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_ROBUST_PRIO_PROTECT: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_SAFE_FUNCTIONS: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_SPORADIC_SERVER: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_STACK_MIN: - in-latest-posix: '' + in-latest-posix: "" _SC_THREAD_THREADS_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_THREADS: - in-latest-posix: '' + in-latest-posix: "" _SC_TIMEOUTS: - in-latest-posix: '' + in-latest-posix: "" _SC_TIMER_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_TIMERS: - in-latest-posix: '' + in-latest-posix: "" _SC_TTY_NAME_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_TYPED_MEMORY_OBJECTS: - in-latest-posix: '' + in-latest-posix: "" _SC_TZNAME_MAX: - in-latest-posix: '' + in-latest-posix: "" _SC_V8_ILP32_OFF32: - in-latest-posix: '' + in-latest-posix: "" _SC_V8_ILP32_OFFBIG: - in-latest-posix: '' + in-latest-posix: "" _SC_V8_LP64_OFF64: - in-latest-posix: '' + in-latest-posix: "" _SC_V8_LPBIG_OFFBIG: - in-latest-posix: '' + in-latest-posix: "" _SC_V7_ILP32_OFF32: - in-latest-posix: '' + in-latest-posix: "" _SC_V7_ILP32_OFFBIG: - in-latest-posix: '' + in-latest-posix: "" _SC_V7_LP64_OFF64: - in-latest-posix: '' + in-latest-posix: "" _SC_V7_LPBIG_OFFBIG: - in-latest-posix: '' + in-latest-posix: "" _SC_VERSION: - in-latest-posix: '' + in-latest-posix: "" _SC_XOPEN_CRYPT: - in-latest-posix: '' + in-latest-posix: "" _SC_XOPEN_ENH_I18N: - in-latest-posix: '' + in-latest-posix: "" _SC_XOPEN_REALTIME: - in-latest-posix: '' + in-latest-posix: "" _SC_XOPEN_REALTIME_THREADS: - in-latest-posix: '' + in-latest-posix: "" _SC_XOPEN_SHM: - in-latest-posix: '' + in-latest-posix: "" _SC_XOPEN_UNIX: - in-latest-posix: '' + in-latest-posix: "" _SC_XOPEN_UUCP: - in-latest-posix: '' + in-latest-posix: "" _SC_XOPEN_VERSION: - in-latest-posix: '' + in-latest-posix: "" STDERR_FILENO: - in-latest-posix: '' + in-latest-posix: "" STDIN_FILENO: - in-latest-posix: '' + in-latest-posix: "" STDOUT_FILENO: - in-latest-posix: '' + in-latest-posix: "" _POSIX_VDISABLE: - in-latest-posix: '' + in-latest-posix: "" POSIX_CLOSE_RESTART: - in-latest-posix: '' - - + in-latest-posix: "" functions: access: - in-latest-posix: '' + in-latest-posix: "" alarm: - in-latest-posix: '' + in-latest-posix: "" chdir: - in-latest-posix: '' + in-latest-posix: "" chown: - in-latest-posix: '' + in-latest-posix: "" close: - in-latest-posix: '' + in-latest-posix: "" confstr: - in-latest-posix: '' + in-latest-posix: "" crypt: - in-latest-posix: '' + in-latest-posix: "" dup: - in-latest-posix: '' + in-latest-posix: "" dup2: - in-latest-posix: '' + in-latest-posix: "" dup3: - in-latest-posix: '' + in-latest-posix: "" _exit: - in-latest-posix: '' + in-latest-posix: "" encrypt: - in-latest-posix: '' + in-latest-posix: "" execl: - in-latest-posix: '' + in-latest-posix: "" execle: - in-latest-posix: '' + in-latest-posix: "" execlp: - in-latest-posix: '' + in-latest-posix: "" execv: - in-latest-posix: '' + in-latest-posix: "" execve: - in-latest-posix: '' + in-latest-posix: "" execvp: - in-latest-posix: '' + in-latest-posix: "" fchdir: - in-latest-posix: '' + in-latest-posix: "" fchown: - in-latest-posix: '' + in-latest-posix: "" fdatasync: - in-latest-posix: '' + in-latest-posix: "" fork: - in-latest-posix: '' + in-latest-posix: "" fpathconf: - in-latest-posix: '' + in-latest-posix: "" fsync: - in-latest-posix: '' + in-latest-posix: "" ftruncate: - in-latest-posix: '' + in-latest-posix: "" getcwd: - in-latest-posix: '' + in-latest-posix: "" getegid: - in-latest-posix: '' + in-latest-posix: "" getentropy: - in-latest-posix: '' + in-latest-posix: "" geteuid: - in-latest-posix: '' + in-latest-posix: "" getgid: - in-latest-posix: '' + in-latest-posix: "" getgroups: - in-latest-posix: '' + in-latest-posix: "" gethostid: - in-latest-posix: '' + in-latest-posix: "" gethostname: - in-latest-posix: '' + in-latest-posix: "" getlogin: - in-latest-posix: '' + in-latest-posix: "" getlogin_r: - in-latest-posix: '' + in-latest-posix: "" getopt: - in-latest-posix: '' + in-latest-posix: "" getpgid: - in-latest-posix: '' + in-latest-posix: "" getpgrp: - in-latest-posix: '' + in-latest-posix: "" getpid: - in-latest-posix: '' + in-latest-posix: "" getppid: - in-latest-posix: '' + in-latest-posix: "" getresgid: - in-latest-posix: '' + in-latest-posix: "" getresuid: - in-latest-posix: '' + in-latest-posix: "" getsid: - in-latest-posix: '' + in-latest-posix: "" getuid: - in-latest-posix: '' + in-latest-posix: "" isatty: - in-latest-posix: '' + in-latest-posix: "" lchown: - in-latest-posix: '' + in-latest-posix: "" link: - in-latest-posix: '' + in-latest-posix: "" linkat: - in-latest-posix: '' + in-latest-posix: "" lockf: - in-latest-posix: '' + in-latest-posix: "" lseek: - in-latest-posix: '' + in-latest-posix: "" nice: - in-latest-posix: '' + in-latest-posix: "" pathconf: - in-latest-posix: '' + in-latest-posix: "" pause: - in-latest-posix: '' + in-latest-posix: "" pipe: - in-latest-posix: '' + in-latest-posix: "" pipe2: - in-latest-posix: '' + in-latest-posix: "" posix_close: - in-latest-posix: '' + in-latest-posix: "" pread: - in-latest-posix: '' + in-latest-posix: "" pwrite: - in-latest-posix: '' + in-latest-posix: "" read: - in-latest-posix: '' + in-latest-posix: "" readlink: - in-latest-posix: '' + in-latest-posix: "" readlinkat: - in-latest-posix: '' + in-latest-posix: "" rmdir: - in-latest-posix: '' + in-latest-posix: "" setegid: - in-latest-posix: '' + in-latest-posix: "" seteuid: - in-latest-posix: '' + in-latest-posix: "" setgid: - in-latest-posix: '' + in-latest-posix: "" setpgid: - in-latest-posix: '' + in-latest-posix: "" setregid: - in-latest-posix: '' + in-latest-posix: "" setresgid: - in-latest-posix: '' + in-latest-posix: "" setresuid: - in-latest-posix: '' + in-latest-posix: "" setreuid: - in-latest-posix: '' + in-latest-posix: "" setsid: - in-latest-posix: '' + in-latest-posix: "" setuid: - in-latest-posix: '' + in-latest-posix: "" sleep: - in-latest-posix: '' - - swab: - in-latest-posix: '' + in-latest-posix: "" + swab: + in-latest-posix: "" symlink: - in-latest-posix: '' + in-latest-posix: "" symlinkat: - in-latest-posix: '' + in-latest-posix: "" sync: - in-latest-posix: '' + in-latest-posix: "" sysconf: - in-latest-posix: '' + in-latest-posix: "" tcgetpgrp: - in-latest-posix: '' + in-latest-posix: "" tcsetpgrp: - in-latest-posix: '' + in-latest-posix: "" truncate: - in-latest-posix: '' + in-latest-posix: "" ttyname_r: - in-latest-posix: '' + in-latest-posix: "" unlink: - in-latest-posix: '' + in-latest-posix: "" unlinkat: - in-latest-posix: '' + in-latest-posix: "" write: - in-latest-posix: '' \ No newline at end of file + in-latest-posix: "" From 5a04b8b31863094b62df077327e53ccd8e51ca51 Mon Sep 17 00:00:00 2001 From: Prashanth Date: Sat, 18 Jan 2025 02:46:42 +0000 Subject: [PATCH 4/4] Remove reserved POSIX macros and add missing function documentation in unistd.yaml --- libc/utils/docgen/unistd.yaml | 57 ++++++----------------------------- 1 file changed, 10 insertions(+), 47 deletions(-) diff --git a/libc/utils/docgen/unistd.yaml b/libc/utils/docgen/unistd.yaml index e4cb52e993987..5cdb1351322e0 100644 --- a/libc/utils/docgen/unistd.yaml +++ b/libc/utils/docgen/unistd.yaml @@ -159,12 +159,6 @@ macros: _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: @@ -209,49 +203,10 @@ macros: _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: "" - SEEK_HOLE: - in-latest-posix: "" - SEEK_DATA: - in-latest-posix: "" F_LOCK: in-latest-posix: "" @@ -584,19 +539,26 @@ functions: in-latest-posix: "" execvp: in-latest-posix: "" + faccessat: + in-latest-posix: "" fchdir: in-latest-posix: "" fchown: in-latest-posix: "" + fchownat: + in-latest-posix: "" fdatasync: in-latest-posix: "" + fexecve: + in-latest-posix: "" + _Fork: + in-latest-posix: "" fork: in-latest-posix: "" fpathconf: in-latest-posix: "" fsync: in-latest-posix: "" - ftruncate: in-latest-posix: "" getcwd: @@ -645,7 +607,6 @@ functions: in-latest-posix: "" linkat: in-latest-posix: "" - lockf: in-latest-posix: "" lseek: @@ -712,6 +673,8 @@ functions: in-latest-posix: "" truncate: in-latest-posix: "" + ttyname: + in-latest-posix: "" ttyname_r: in-latest-posix: "" unlink: