summaryrefslogtreecommitdiff
path: root/libc/include/sys
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2025-01-09 18:49:54 +0900
committerNAKAMURA Takumi <geek4civic@gmail.com>2025-01-09 18:49:54 +0900
commite2810c9a248f4c7fbfae84bb32b6f7e01027458b (patch)
treeae0b02a8491b969a1cee94ea16ffe42c559143c5 /libc/include/sys
parentfa04eb4af95c1ca7377279728cb004bcd2324d01 (diff)
parentbdcf47e4bcb92889665825654bb80a8bbe30379e (diff)
Merge branch 'users/chapuni/cov/single/base' into users/chapuni/cov/single/switchusers/chapuni/cov/single/switch
Diffstat (limited to 'libc/include/sys')
-rw-r--r--libc/include/sys/auxv.yaml13
-rw-r--r--libc/include/sys/epoll.yaml61
-rw-r--r--libc/include/sys/ioctl.yaml8
-rw-r--r--libc/include/sys/mman.yaml135
-rw-r--r--libc/include/sys/prctl.yaml17
-rw-r--r--libc/include/sys/random.yaml17
-rw-r--r--libc/include/sys/resource.yaml21
-rw-r--r--libc/include/sys/select.yaml23
-rw-r--r--libc/include/sys/sendfile.yaml19
-rw-r--r--libc/include/sys/socket.yaml119
-rw-r--r--libc/include/sys/stat.yaml78
-rw-r--r--libc/include/sys/statvfs.yaml24
-rw-r--r--libc/include/sys/syscall.yaml8
-rw-r--r--libc/include/sys/time.yaml8
-rw-r--r--libc/include/sys/types.yaml32
-rw-r--r--libc/include/sys/utsname.yaml14
-rw-r--r--libc/include/sys/wait.yaml34
17 files changed, 631 insertions, 0 deletions
diff --git a/libc/include/sys/auxv.yaml b/libc/include/sys/auxv.yaml
new file mode 100644
index 000000000000..82ecee75c40a
--- /dev/null
+++ b/libc/include/sys/auxv.yaml
@@ -0,0 +1,13 @@
+header: sys/auxv.h
+header_template: auxv.h.def
+macros: []
+types: []
+enums: []
+objects: []
+functions:
+ - name: getauxval
+ standards:
+ - GNUExtensions
+ return_type: unsigned long
+ arguments:
+ - type: unsigned long
diff --git a/libc/include/sys/epoll.yaml b/libc/include/sys/epoll.yaml
new file mode 100644
index 000000000000..996eb785bc71
--- /dev/null
+++ b/libc/include/sys/epoll.yaml
@@ -0,0 +1,61 @@
+header: sys/epoll.h
+header_template: epoll.h.def
+macros: []
+types:
+ - type_name: struct_epoll_event
+ - type_name: struct_epoll_data
+ - type_name: sigset_t
+ - type_name: struct_timespec
+enums: []
+objects: []
+functions:
+ - name: epoll_create
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: int
+ - name: epoll_create1
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: int
+ - name: epoll_ctl
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: int
+ - type: int
+ - type: int
+ - type: struct epoll_event *
+ - name: epoll_pwait
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: int
+ - type: struct epoll_event *
+ - type: int
+ - type: int
+ - type: const sigset_t *
+ - name: epoll_pwait2
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: int
+ - type: struct epoll_event *
+ - type: int
+ - type: const struct timespec *
+ - type: const sigset_t *
+ - name: epoll_wait
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: int
+ - type: struct epoll_event *
+ - type: int
+ - type: int
diff --git a/libc/include/sys/ioctl.yaml b/libc/include/sys/ioctl.yaml
new file mode 100644
index 000000000000..5f7b7f333191
--- /dev/null
+++ b/libc/include/sys/ioctl.yaml
@@ -0,0 +1,8 @@
+header: sys/ioctl.h
+header_template: ioctl.h.def
+standards: POSIX
+macros: []
+types: []
+enums: []
+objects: []
+functions: []
diff --git a/libc/include/sys/mman.yaml b/libc/include/sys/mman.yaml
new file mode 100644
index 000000000000..8c207552f980
--- /dev/null
+++ b/libc/include/sys/mman.yaml
@@ -0,0 +1,135 @@
+header: sys/mman.h
+header_template: mman.h.def
+macros: []
+types:
+ - type_name: mode_t
+ - type_name: size_t
+ - type_name: off_t
+enums: []
+objects: []
+functions:
+ - name: madvise
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: int
+ - name: mincore
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: unsigned char *
+ - name: mlock
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - name: mlock2
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: unsigned int
+ - name: mlockall
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - name: mmap
+ standards:
+ - POSIX
+ return_type: void *
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: int
+ - type: int
+ - type: int
+ - type: off_t
+ - name: mremap
+ standards:
+ - POSIX
+ return_type: void *
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: size_t
+ - type: int
+ - type: '...'
+ - name: mprotect
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: int
+ - name: msync
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: int
+ - name: munlock
+ standards: POSIX
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - name: munlockall
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: void
+ - name: munmap
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - name: posix_madvise
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: int
+ - name: remap_file_pages
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: int
+ - type: size_t
+ - type: int
+ - name: shm_open
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: const char *
+ - type: int
+ - type: mode_t
+ - name: shm_unlink
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: const char *
diff --git a/libc/include/sys/prctl.yaml b/libc/include/sys/prctl.yaml
new file mode 100644
index 000000000000..53f57645b18e
--- /dev/null
+++ b/libc/include/sys/prctl.yaml
@@ -0,0 +1,17 @@
+header: sys/prctl.h
+header_template: prctl.h.def
+macros: []
+types: []
+enums: []
+objects: []
+functions:
+ - name: prctl
+ standards:
+ - Linux
+ return_type: int
+ arguments:
+ - type: int
+ - type: unsigned long
+ - type: unsigned long
+ - type: unsigned long
+ - type: unsigned long
diff --git a/libc/include/sys/random.yaml b/libc/include/sys/random.yaml
new file mode 100644
index 000000000000..4efb2fbb4473
--- /dev/null
+++ b/libc/include/sys/random.yaml
@@ -0,0 +1,17 @@
+header: sys/random.h
+header_template: random.h.def
+macros: []
+types:
+ - type_name: ssize_t
+ - type_name: size_t
+enums: []
+objects: []
+functions:
+ - name: getrandom
+ standards:
+ - Linux
+ return_type: ssize_t
+ arguments:
+ - type: void *
+ - type: size_t
+ - type: unsigned int
diff --git a/libc/include/sys/resource.yaml b/libc/include/sys/resource.yaml
new file mode 100644
index 000000000000..3652d6d490a4
--- /dev/null
+++ b/libc/include/sys/resource.yaml
@@ -0,0 +1,21 @@
+header: sys/resource.h
+header_template: resource.h.def
+macros: []
+types:
+ - type_name: struct_rlimit
+ - type_name: rlim_t
+enums: []
+objects: []
+functions:
+ - name: getrlimit
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: struct rlimit *
+ - name: setrlimit
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: const struct rlimit
diff --git a/libc/include/sys/select.yaml b/libc/include/sys/select.yaml
new file mode 100644
index 000000000000..6066fd341f07
--- /dev/null
+++ b/libc/include/sys/select.yaml
@@ -0,0 +1,23 @@
+header: sys/select.h
+header_template: select.h.def
+macros: []
+types:
+ - type_name: struct_timeval
+ - type_name: struct_timespec
+ - type_name: suseconds_t
+ - type_name: sigset_t
+ - type_name: time_t
+ - type_name: fd_set
+enums: []
+objects: []
+functions:
+ - name: select
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: fd_set *__restrict
+ - type: fd_set *__restrict
+ - type: fd_set *__restrict
+ - type: struct timeval *__restrict
diff --git a/libc/include/sys/sendfile.yaml b/libc/include/sys/sendfile.yaml
new file mode 100644
index 000000000000..259ab83dff54
--- /dev/null
+++ b/libc/include/sys/sendfile.yaml
@@ -0,0 +1,19 @@
+header: sys/sendfile.h
+header_template: sendfile.h.def
+macros: []
+types:
+ - type_name: ssize_t
+ - type_name: size_t
+ - type_name: off_t
+enums: []
+objects: []
+functions:
+ - name: sendfile
+ standards:
+ - GNUExtensions
+ return_type: ssize_t
+ arguments:
+ - type: int
+ - type: int
+ - type: off_t *
+ - type: size_t
diff --git a/libc/include/sys/socket.yaml b/libc/include/sys/socket.yaml
new file mode 100644
index 000000000000..00d5de6af8a8
--- /dev/null
+++ b/libc/include/sys/socket.yaml
@@ -0,0 +1,119 @@
+header: sys/socket.h
+header_template: socket.h.def
+macros: []
+types:
+ - type_name: struct_sockaddr_un
+ - type_name: struct_sockaddr
+ - type_name: socklen_t
+ - type_name: sa_family_t
+ - type_name: struct_msghdr
+ - type_name: struct_iovec
+ - type_name: size_t
+ - type_name: ssize_t
+enums: []
+objects: []
+functions:
+ - name: accept
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: sockaddr *__restrict
+ - type: socklen_t *__restrict
+ - name: bind
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: const struct sockaddr *
+ - type: socklen_t
+ - name: connect
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: const struct sockaddr *
+ - type: socklen_t
+ - name: listen
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: int
+ - name: recv
+ standards:
+ - POSIX
+ return_type: ssize_t
+ arguments:
+ - type: int
+ - type: void *
+ - type: size_t
+ - type: int
+ - name: recvfrom
+ standards:
+ - POSIX
+ return_type: ssize_t
+ arguments:
+ - type: int
+ - type: void *
+ - type: size_t
+ - type: int
+ - type: struct sockaddr *__restrict
+ - type: socklen_t *__restrict
+ - name: recvmsg
+ standards:
+ - POSIX
+ return_type: ssize_t
+ arguments:
+ - type: int
+ - type: struct msghdr *
+ - type: int
+ - name: send
+ standards:
+ - POSIX
+ return_type: ssize_t
+ arguments:
+ - type: int
+ - type: const void*
+ - type: size_t
+ - type: int
+ - name: sendmsg
+ standards:
+ - POSIX
+ return_type: ssize_t
+ arguments:
+ - type: int
+ - type: const struct msghdr *
+ - type: int
+ - name: sendto
+ standards:
+ - POSIX
+ return_type: ssize_t
+ arguments:
+ - type: int
+ - type: const void *
+ - type: size_t
+ - type: int
+ - type: const struct sockaddr *
+ - type: socklen_t
+ - name: socket
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: int
+ - type: int
+ - name: socketpair
+ standards:
+ - posix
+ return_type: int
+ arguments:
+ - type: int
+ - type: int
+ - type: int
+ - type: int*
diff --git a/libc/include/sys/stat.yaml b/libc/include/sys/stat.yaml
new file mode 100644
index 000000000000..7f013420818a
--- /dev/null
+++ b/libc/include/sys/stat.yaml
@@ -0,0 +1,78 @@
+header: sys/stat.h
+header_template: stat.h.def
+macros: []
+types:
+ - type_name: blkcnt_t
+ - type_name: blksize_t
+ - type_name: off_t
+ - type_name: struct_timeval
+ - type_name: gid_t
+ - type_name: struct_stat
+ - type_name: uid_t
+ - type_name: nlink_t
+ - type_name: dev_t
+ - type_name: struct_timespec
+ - type_name: ino_t
+ - type_name: mode_t
+enums: []
+objects: []
+functions:
+ - name: chmod
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: const char *
+ - type: mode_t
+ - name: fchmod
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: mode_t
+ - name: fchmodat
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: const char *
+ - type: mode_t
+ - type: int
+ - name: fstat
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: struct stat *
+ - name: lstat
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: const char *__restrict
+ - type: struct stat *__restrict
+ - name: mkdir
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: const char *
+ - type: mode_t
+ - name: mkdirat
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: const char *
+ - type: mode_t
+ - name: stat
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: const char *__restrict
+ - type: struct stat *__restrict
diff --git a/libc/include/sys/statvfs.yaml b/libc/include/sys/statvfs.yaml
new file mode 100644
index 000000000000..8c1d254add37
--- /dev/null
+++ b/libc/include/sys/statvfs.yaml
@@ -0,0 +1,24 @@
+header: sys/statvfs.h
+header_template: statvfs.h.def
+macros: []
+types:
+ - type_name: struct_statvfs
+ - type_name: fsblkcnt_t
+ - type_name: fsfilcnt_t
+enums: []
+objects: []
+functions:
+ - name: fstatvfs
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: int
+ - type: struct statvfs *
+ - name: statvfs
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: const char *__restrict
+ - type: struct statvfs *__restrict
diff --git a/libc/include/sys/syscall.yaml b/libc/include/sys/syscall.yaml
new file mode 100644
index 000000000000..879d95c2ea39
--- /dev/null
+++ b/libc/include/sys/syscall.yaml
@@ -0,0 +1,8 @@
+header: sys/syscall.h
+header_template: syscall.h.def
+standards: Linux
+macros: []
+types: []
+enums: []
+functions: []
+objects: []
diff --git a/libc/include/sys/time.yaml b/libc/include/sys/time.yaml
new file mode 100644
index 000000000000..687c1f83028d
--- /dev/null
+++ b/libc/include/sys/time.yaml
@@ -0,0 +1,8 @@
+header: sys/time.h
+header_template: time.h.def
+standards: Linux
+macros: []
+types: []
+enums: []
+functions: []
+objects: []
diff --git a/libc/include/sys/types.yaml b/libc/include/sys/types.yaml
new file mode 100644
index 000000000000..6fa0b448fcd3
--- /dev/null
+++ b/libc/include/sys/types.yaml
@@ -0,0 +1,32 @@
+header: sys/types.h
+header_template: types.h.def
+standards: POSIX
+macros: []
+types:
+ - type_name: uid_t
+ - type_name: time_t
+ - type_name: pthread_t
+ - type_name: pthread_rwlock_t
+ - type_name: pthread_rwlockattr_t
+ - type_name: pthread_mutex_t
+ - type_name: blkcnt_t
+ - type_name: blksize_t
+ - type_name: clockid_t
+ - type_name: ssize_t
+ - type_name: pthread_mutexattr_t
+ - type_name: ino_t
+ - type_name: pthread_once_t
+ - type_name: mode_t
+ - type_name: dev_t
+ - type_name: pthread_attr_t
+ - type_name: gid_t
+ - type_name: pid_t
+ - type_name: nlink_t
+ - type_name: suseconds_t
+ - type_name: off_t
+ - type_name: size_t
+ - type_name: pthread_key_t
+ - type_name: pthread_condattr_t
+enums: []
+objects: []
+functions: []
diff --git a/libc/include/sys/utsname.yaml b/libc/include/sys/utsname.yaml
new file mode 100644
index 000000000000..6c7cb71f9a34
--- /dev/null
+++ b/libc/include/sys/utsname.yaml
@@ -0,0 +1,14 @@
+header: sys/utsname.h
+header_template: utsname.h.def
+macros: []
+types:
+ - type_name: struct_utsname
+enums: []
+objects: []
+functions:
+ - name: uname
+ standards:
+ - POSIX
+ return_type: int
+ arguments:
+ - type: struct utsname *
diff --git a/libc/include/sys/wait.yaml b/libc/include/sys/wait.yaml
new file mode 100644
index 000000000000..6257e34b9e08
--- /dev/null
+++ b/libc/include/sys/wait.yaml
@@ -0,0 +1,34 @@
+header: sys/wait.h
+header_template: wait.h.def
+macros: []
+types:
+ - type_name: siginfo_t
+ - type_name: struct_rusage
+ - type_name: pid_t
+enums: []
+objects: []
+functions:
+ - name: wait
+ standards:
+ - POSIX
+ return_type: pid_t
+ arguments:
+ - type: int *
+ - name: wait4
+ standards:
+ - BSDExtensions
+ - POSIX
+ return_type: pid_t
+ arguments:
+ - type: pid_t
+ - type: int *
+ - type: int
+ - type: struct rusage *
+ - name: waitpid
+ standards:
+ - POSIX
+ return_type: pid_t
+ arguments:
+ - type: pid_t
+ - type: int *
+ - type: int