more uapi bits

This commit is contained in:
2026-10-13 01:53:44 +02:00
parent d130e7dc1b
commit 2a3bc68ba7
4 changed files with 66 additions and 0 deletions
+44
View File
@@ -2,6 +2,8 @@
#ifndef __ZINNIA_UAPI_FCNTL_H
#define __ZINNIA_UAPI_FCNTL_H
#include <uapi/types.h>
#define __F_OK 0
#define __X_OK 1
#define __W_OK 2
@@ -40,4 +42,46 @@
#define __AT_EACCESS (1 << 11)
#define __AT_EMPTY_PATH (1 << 12)
#define __F_DUPFD 0
#define __F_GETFD 1
#define __F_SETFD 2
#define __F_GETFL 3
#define __F_SETFL 4
#define __F_GETLK 5
#define __F_SETLK 6
#define __F_SETLKW 7
#define __F_SETOWN 8
#define __F_GETOWN 9
#define __F_SETOWN_EX 15
#define __F_GETOWN_EX 16
#define __F_OFD_GETLK 36
#define __F_OFD_SETLK 37
#define __F_OFD_SETLKW 38
#define __F_DUPFD_CLOEXEC 1030
#define __F_RDLCK 0
#define __F_WRLCK 1
#define __F_UNLCK 2
#define __FD_CLOEXEC 1
#define __SEEK_SET 0
#define __SEEK_CUR 1
#define __SEEK_END 2
#define __POSIX_FADV_NORMAL 0
#define __POSIX_FADV_RANDOM 1
#define __POSIX_FADV_SEQUENTIAL 2
#define __POSIX_FADV_WILLNEED 3
#define __POSIX_FADV_DONTNEED 4
#define __POSIX_FADV_NOREUSE 5
struct __flock {
int16_t l_type;
int16_t l_whence;
__off_t l_start;
__off_t l_len;
__pid_t l_pid;
};
#endif
+7
View File
@@ -0,0 +1,7 @@
/* SPDX-License-Identifier: Unlicense */
#ifndef __ZINNIA_UAPI_IOCTLS_H
#define __ZINNIA_UAPI_IOCTLS_H
#define __FIONBIO 0x5421
#endif
+3
View File
@@ -32,6 +32,9 @@
#define __S_IWRITE __S_IWUSR
#define __S_IEXEC __S_IXUSR
#define __UTIME_NOW ((1l << 30) - 1l)
#define __UTIME_OMIT ((1l << 30) - 2l)
struct __stat {
__dev_t st_dev;
__ino_t st_ino;
+12
View File
@@ -0,0 +1,12 @@
/* SPDX-License-Identifier: Unlicense */
#ifndef __ZINNIA_UAPI_WAIT_H
#define __ZINNIA_UAPI_WAIT_H
#define __WNOHANG 1
#define __WUNTRACED 2
#define __WSTOPPED 2
#define __WEXITED 4
#define __WCONTINUED 8
#define __WNOWAIT 0x01000000
#endif