summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/epoll.h12
-rw-r--r--include/sys/mman.h4
-rw-r--r--include/sys/reg.h2
-rw-r--r--include/sys/stat.h17
-rw-r--r--include/sys/user.h2
5 files changed, 34 insertions, 3 deletions
diff --git a/include/sys/epoll.h b/include/sys/epoll.h
index ac81a841..5f975c4a 100644
--- a/include/sys/epoll.h
+++ b/include/sys/epoll.h
@@ -7,6 +7,7 @@ extern "C" {
#include <stdint.h>
#include <sys/types.h>
+#include <sys/ioctl.h>
#include <fcntl.h>
#define __NEED_sigset_t
@@ -54,6 +55,17 @@ __attribute__ ((__packed__))
#endif
;
+struct epoll_params {
+ uint32_t busy_poll_usecs;
+ uint16_t busy_poll_budget;
+ uint8_t prefer_busy_poll;
+
+ uint8_t __pad;
+};
+
+#define EPOLL_IOC_TYPE 0x8A
+#define EPIOCSPARAMS _IOW(EPOLL_IOC_TYPE, 0x01, struct epoll_params)
+#define EPIOCGPARAMS _IOR(EPOLL_IOC_TYPE, 0x02, struct epoll_params)
int epoll_create(int);
int epoll_create1(int);
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 3d5d0f9c..aa2c4817 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -95,6 +95,10 @@ extern "C" {
#define MADV_KEEPONFORK 19
#define MADV_COLD 20
#define MADV_PAGEOUT 21
+#define MADV_POPULATE_READ 22
+#define MADV_POPULATE_WRITE 23
+#define MADV_DONTNEED_LOCKED 24
+#define MADV_COLLAPSE 25
#define MADV_HWPOISON 100
#define MADV_SOFT_OFFLINE 101
#endif
diff --git a/include/sys/reg.h b/include/sys/reg.h
index 4e6ce222..0272e137 100644
--- a/include/sys/reg.h
+++ b/include/sys/reg.h
@@ -4,7 +4,7 @@
#include <limits.h>
#include <unistd.h>
-#include <bits/alltype.h>
+#include <bits/alltypes.h>
#undef __WORDSIZE
#if __LONG_MAX == 0x7fffffffL
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 57d640d7..4f7dc2b1 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -120,6 +120,11 @@ int lchmod(const char *, mode_t);
#define STATX_BASIC_STATS 0x7ffU
#define STATX_BTIME 0x800U
#define STATX_ALL 0xfffU
+#define STATX_MNT_ID 0x1000U
+#define STATX_DIOALIGN 0x2000U
+#define STATX_MNT_ID_UNIQUE 0x4000U
+#define STATX_SUBVOL 0x8000U
+#define STATX_WRITE_ATOMIC 0x10000U
#define STATX_ATTR_COMPRESSED 0x4
#define STATX_ATTR_IMMUTABLE 0x10
@@ -130,6 +135,7 @@ int lchmod(const char *, mode_t);
#define STATX_ATTR_MOUNT_ROOT 0x2000
#define STATX_ATTR_VERITY 0x100000
#define STATX_ATTR_DAX 0x200000
+#define STATX_ATTR_WRITE_ATOMIC 0x400000
struct statx_timestamp {
int64_t tv_sec;
@@ -157,7 +163,16 @@ struct statx {
uint32_t stx_rdev_minor;
uint32_t stx_dev_major;
uint32_t stx_dev_minor;
- uint64_t __pad1[14];
+ uint64_t stx_mnt_id;
+ uint32_t stx_dio_mem_align;
+ uint32_t stx_dio_offset_align;
+ uint64_t stx_subvol;
+ uint32_t stx_atomic_write_unit_min;
+ uint32_t stx_atomic_write_unit_max;
+ uint32_t stx_atomic_write_segments_max;
+ uint32_t __pad1[1];
+ uint64_t __pad2[9];
+
};
int statx(int, const char *__restrict, int, unsigned, struct statx *__restrict);
diff --git a/include/sys/user.h b/include/sys/user.h
index 78036da3..511caba3 100644
--- a/include/sys/user.h
+++ b/include/sys/user.h
@@ -8,7 +8,7 @@ extern "C" {
#include <stdint.h>
#include <unistd.h>
-#include <bits/alltype.h>
+#include <bits/alltypes.h>
#undef __WORDSIZE
#if __LONG_MAX == 0x7fffffffL