6 #define AT_EMPTY_PATH 0x1000
10 #define O_PATH 010000000 /* Resolve pathname but do not open file. */
14 #define O_CLOEXEC 02000000
18 #define O_TMPFILE 020000000
21 #ifndef AT_NO_AUTOMOUNT
22 #define AT_NO_AUTOMOUNT 0x800
25 #ifndef F_LINUX_SPECIFIC_BASE
26 #define F_LINUX_SPECIFIC_BASE 1024
30 #define F_SETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 7)
34 #define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8)
37 #ifndef F_DUPFD_CLOEXEC
38 #define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6)
42 #define F_SETOWN_EX 15
46 #define F_GETOWN_EX 16
49 #ifndef F_GETOWNER_UIDS
50 #define F_GETOWNER_UIDS 17
59 /* linux/hw_breakpoint.h */
61 HW_BREAKPOINT_LEN_1
= 1,
62 HW_BREAKPOINT_LEN_2
= 2,
63 HW_BREAKPOINT_LEN_4
= 4,
64 HW_BREAKPOINT_LEN_8
= 8,
68 HW_BREAKPOINT_EMPTY
= 0,
71 HW_BREAKPOINT_RW
= HW_BREAKPOINT_R
| HW_BREAKPOINT_W
,
73 HW_BREAKPOINT_INVALID
= HW_BREAKPOINT_RW
| HW_BREAKPOINT_X
,
76 /* asm-generic/mman-common.h */
78 #ifndef MAP_UNINITIALIZED
79 #define MAP_UNINITIALIZED 0x4000000
85 #define MAP_HUGETLB 0x40000
88 #define MAP_STACK 0x20000
91 #ifndef MADV_MERGEABLE
92 #define MADV_MERGEABLE 12
94 #ifndef MADV_UNMERGEABLE
95 #define MADV_UNMERGEABLE 13
98 #define MADV_HUGEPAGE 14
100 #ifndef MADV_NOHUGEPAGE
101 #define MADV_NOHUGEPAGE 15
103 #ifndef MADV_DONTDUMP
104 #define MADV_DONTDUMP 16
107 #define MADV_DODUMP 17
113 #define SOCK_CLOEXEC 02000000
116 #ifndef SOCK_NONBLOCK
117 #define SOCK_NONBLOCK 04000
124 #define AF_RDS PF_RDS
131 #define AF_LLC PF_LLC
145 #define AF_CAN PF_CAN
152 #define AF_TIPC PF_TIPC
159 #define AF_PHONET PF_PHONET
166 #define AF_CAIF PF_CAIF
173 #define AF_ALG PF_ALG
180 #define AF_NFC PF_NFC
187 #define AF_VSOCK PF_VSOCK
190 #ifndef NFC_SOCKPROTO_RAW
191 #define NFC_SOCKPROTO_RAW 0
193 #ifndef NFC_SOCKPROTO_LLCP
194 #define NFC_SOCKPROTO_LLCP 1
197 #ifndef MSG_WAITFORONE
198 #define MSG_WAITFORONE 0x10000
201 #ifndef MSG_CMSG_CLOEXEC
202 #define MSG_CMSG_CLOEXEC 0x40000000
207 #define MSG_PROBE 0x10
210 #define MSG_FASTOPEN 0x20000000
212 #ifndef MSG_CMSG_COMPAT
213 #define MSG_CMSG_COMPAT 0x80000000
218 #define SYS_RECVMMSG 19
221 #define SYS_SENDMMSG 20
224 /* linux/netlink.h */
225 #ifndef NETLINK_CRYPTO
226 #define NETLINK_CRYPTO 21
228 #ifndef NETLINK_RX_RING
229 #define NETLINK_RX_RING 6
230 #define NETLINK_TX_RING 7
234 #ifndef PR_MCE_KILL_GET
235 #define PR_MCE_KILL_GET 34
239 #ifndef RDS_CANCEL_SENT_TO
240 #define RDS_CANCEL_SENT_TO 1
242 #define RDS_FREE_MR 3
243 /* deprecated: RDS_BARRIER 4 */
244 #define RDS_RECVERR 5
245 #define RDS_CONG_MONITOR 6
246 #define RDS_GET_MR_FOR_DEST 7
249 /* asm/ptrace-abi.h */
250 #ifndef PTRACE_SYSEMU
251 #define PTRACE_SYSEMU 31
253 #ifndef PTRACE_SYSEMU_SINGLESTEP
254 #define PTRACE_SYSEMU_SINGLESTEP 32
256 #ifndef PTRACE_GETSIGMASK
257 #define PTRACE_GETSIGMASK 0x420a
258 #define PTRACE_SETSIGMASK 0x420b
263 #define TFD_CLOEXEC 02000000
266 #define TFD_NONBLOCK 04000
270 #ifndef KEYCTL_GET_KEYRING_ID
271 #define KEYCTL_GET_KEYRING_ID 0 /* ask for a keyring's ID */
272 #define KEYCTL_JOIN_SESSION_KEYRING 1 /* join or start named session keyring */
273 #define KEYCTL_UPDATE 2 /* update a key */
274 #define KEYCTL_REVOKE 3 /* revoke a key */
275 #define KEYCTL_CHOWN 4 /* set ownership of a key */
276 #define KEYCTL_SETPERM 5 /* set perms on a key */
277 #define KEYCTL_DESCRIBE 6 /* describe a key */
278 #define KEYCTL_CLEAR 7 /* clear contents of a keyring */
279 #define KEYCTL_LINK 8 /* link a key into a keyring */
280 #define KEYCTL_UNLINK 9 /* unlink a key from a keyring */
281 #define KEYCTL_SEARCH 10 /* search for a key in a keyring */
282 #define KEYCTL_READ 11 /* read a key or keyring's contents */
283 #define KEYCTL_INSTANTIATE 12 /* instantiate a partially constructed key */
284 #define KEYCTL_NEGATE 13 /* negate a partially constructed key */
285 #define KEYCTL_SET_REQKEY_KEYRING 14 /* set default request-key keyring */
286 #define KEYCTL_SET_TIMEOUT 15 /* set key timeout */
287 #define KEYCTL_ASSUME_AUTHORITY 16 /* assume request_key() authorisation */
288 #define KEYCTL_GET_SECURITY 17 /* get key security label */
289 #define KEYCTL_SESSION_TO_PARENT 18 /* apply session keyring to parent process */
292 #ifndef KEYCTL_REJECT
293 #define KEYCTL_REJECT 19 /* reject a partially constructed key */
296 #ifndef KEYCTL_INSTANTIATE_IOV
297 #define KEYCTL_INSTANTIATE_IOV 20 /* instantiate a partially constructed key */
316 #define SO_BSDCOMPAT 14
320 #define SO_REUSEPORT 15
324 #define SO_RXQ_OVFL 40
327 #ifndef SO_WIFI_STATUS
328 #define SO_WIFI_STATUS 41
332 #define SO_PEEK_OFF 42
339 #ifndef SO_LOCK_FILTER
340 #define SO_LOCK_FILTER 44
343 #ifndef SO_SELECT_ERR_QUEUE
344 #define SO_SELECT_ERR_QUEUE 45
348 #define SO_BUSY_POLL 46
351 #ifndef SO_MAX_PACING_RATE
352 #define SO_MAX_PACING_RATE 47
355 #ifndef SO_BPF_EXTENSIONS
356 #define SO_BPF_EXTENSIONS 48
360 #ifndef TCP_COOKIE_TRANSACTIONS
361 #define TCP_COOKIE_TRANSACTIONS 15
364 #ifndef TCP_THIN_LINEAR_TIMEOUTS
365 #define TCP_THIN_LINEAR_TIMEOUTS 16
368 #ifndef TCP_THIN_DUPACK
369 #define TCP_THIN_DUPACK 17
372 #ifndef TCP_USER_TIMEOUT
373 #define TCP_USER_TIMEOUT 18
377 #define TCP_REPAIR 19
380 #ifndef TCP_REPAIR_QUEUE
381 #define TCP_REPAIR_QUEUE 20
384 #ifndef TCP_QUEUE_SEQ
385 #define TCP_QUEUE_SEQ 21
388 #ifndef TCP_REPAIR_OPTIONS
389 #define TCP_REPAIR_OPTIONS 22
393 #define TCP_FASTOPEN 23
396 /* linux/if_packet.h */
397 #ifndef PACKET_VNET_HDR
398 #define PACKET_VNET_HDR 15
401 #ifndef PACKET_TX_TIMESTAMP
402 #define PACKET_TX_TIMESTAMP 16
405 #ifndef PACKET_TIMESTAMP
406 #define PACKET_TIMESTAMP 17
409 #ifndef PACKET_FANOUT
410 #define PACKET_FANOUT 18
414 #ifndef DCCP_SOCKOPT_QPOLICY_ID
415 #define DCCP_SOCKOPT_QPOLICY_ID 16
418 #ifndef DCCP_SOCKOPT_QPOLICY_TXQLEN
419 #define DCCP_SOCKOPT_QPOLICY_TXQLEN 17
423 #ifndef UDPLITE_SEND_CSCOV
424 #define UDPLITE_SEND_CSCOV 10 /* sender partial coverage (as sent) */
426 #ifndef UDPLITE_RECV_CSCOV
427 #define UDPLITE_RECV_CSCOV 11 /* receiver partial coverage (threshold ) */
435 #define IP_FREEBIND 15
437 #ifndef IP_IPSEC_POLICY
438 #define IP_IPSEC_POLICY 16
440 #ifndef IP_XFRM_POLICY
441 #define IP_XFRM_POLICY 17
444 #define IP_PASSSEC 18
446 #ifndef IP_TRANSPARENT
447 #define IP_TRANSPARENT 19
452 #ifndef IP_ORIGDSTADDR
453 #define IP_ORIGDSTADDR 20
455 #ifndef IP_RECVORIGDSTADDR
456 #define IP_RECVORIGDSTADDR IP_ORIGDSTADDR
459 #define IP_NODEFRAG 22
461 #ifndef IP_MULTICAST_ALL
462 #define IP_MULTICAST_ALL 49
464 #ifndef IP_UNICAST_IF
465 #define IP_UNICAST_IF 50
469 #ifndef IPV6_FLOWINFO
470 #define IPV6_FLOWINFO 11
474 #ifndef RLIMIT_RTTIME
475 #define RLIMIT_RTTIME 15
480 #define SCTP_RTOINFO 0
481 #define SCTP_ASSOCINFO 1
482 #define SCTP_INITMSG 2
483 #define SCTP_NODELAY 3 /* Get/set nodelay option. */
484 #define SCTP_AUTOCLOSE 4
485 #define SCTP_SET_PEER_PRIMARY_ADDR 5
486 #define SCTP_PRIMARY_ADDR 6
487 #define SCTP_ADAPTATION_LAYER 7
488 #define SCTP_DISABLE_FRAGMENTS 8
489 #define SCTP_PEER_ADDR_PARAMS 9
490 #define SCTP_DEFAULT_SEND_PARAM 10
491 #define SCTP_EVENTS 11
492 #define SCTP_I_WANT_MAPPED_V4_ADDR 12 /* Turn on/off mapped v4 addresses */
493 #define SCTP_MAXSEG 13 /* Get/set maximum fragment. */
494 #define SCTP_STATUS 14
495 #define SCTP_GET_PEER_ADDR_INFO 15
496 #define SCTP_DELAYED_ACK_TIME 16
497 #define SCTP_CONTEXT 17
498 #define SCTP_FRAGMENT_INTERLEAVE 18
499 #define SCTP_PARTIAL_DELIVERY_POINT 19 /* Set/Get partial delivery point */
500 #define SCTP_MAX_BURST 20 /* Set/Get max burst */
501 #define SCTP_AUTH_CHUNK 21 /* Set only: add a chunk type to authenticate */
502 #define SCTP_HMAC_IDENT 22
503 #define SCTP_AUTH_KEY 23
504 #define SCTP_AUTH_ACTIVE_KEY 24
505 #define SCTP_AUTH_DELETE_KEY 25
506 #define SCTP_PEER_AUTH_CHUNKS 26 /* Read only */
507 #define SCTP_LOCAL_AUTH_CHUNKS 27 /* Read only */
508 #define SCTP_GET_ASSOC_NUMBER 28 /* Read only */
509 #define SCTP_GET_ASSOC_ID_LIST 29 /* Read only */
510 #define SCTP_AUTO_ASCONF 30
511 #define SCTP_PEER_ADDR_THLDS 31
514 #ifndef SCTP_SOCKOPT_BINDX_ADD
515 #define SCTP_SOCKOPT_BINDX_ADD 100 /* BINDX requests for adding addrs */
516 #define SCTP_SOCKOPT_BINDX_REM 101 /* BINDX requests for removing addrs. */
517 #define SCTP_SOCKOPT_PEELOFF 102 /* peel off association. */
518 #define SCTP_SOCKOPT_CONNECTX_OLD 107 /* CONNECTX old requests. */
519 #define SCTP_GET_PEER_ADDRS 108 /* Get all peer address. */
520 #define SCTP_GET_LOCAL_ADDRS 109 /* Get all local address. */
521 #define SCTP_SOCKOPT_CONNECTX 110 /* CONNECTX requests. */
522 #define SCTP_SOCKOPT_CONNECTX3 111 /* CONNECTX requests (updated) */
523 #define SCTP_GET_ASSOC_STATS 112 /* Read only */
527 #ifndef RXRPC_USER_CALL_ID
528 #define RXRPC_USER_CALL_ID 1 /* user call ID specifier */
529 #define RXRPC_ABORT 2 /* abort request / notification [terminal] */
530 #define RXRPC_ACK 3 /* [Server] RPC op final ACK received [terminal] */
531 #define RXRPC_NET_ERROR 5 /* network error received [terminal] */
532 #define RXRPC_BUSY 6 /* server busy received [terminal] */
533 #define RXRPC_LOCAL_ERROR 7 /* local error generated [terminal] */
534 #define RXRPC_NEW_CALL 8 /* [Server] new incoming call notification */
535 #define RXRPC_ACCEPT 9 /* [Server] accept request */
538 /* net/bluetooth/bluetooth.h */
540 #define BT_SECURITY 4
541 #define BT_DEFER_SETUP 7
542 #define BT_FLUSHABLE 8
544 #define BT_CHANNEL_POLICY 10
549 #define SOL_RFCOMM 18
552 /* net/bluetooth/hci.h */
554 #define HCI_DATA_DIR 1
556 #define HCI_TIME_STAMP 3
559 /* net/bluetooth/l2cap.h */
560 #ifndef L2CAP_OPTIONS
561 #define L2CAP_OPTIONS 0x01
562 #define L2CAP_LM 0x03
565 /* net/bluetooth/rfcomm.h */
567 #define RFCOMM_LM 0x03
570 /* net/iucv/af_iucv.h */
571 #ifndef SO_IPRMDATA_MSG
572 #define SO_IPRMDATA_MSG 0x0080 /* send/recv IPRM_DATA msgs */
573 #define SO_MSGLIMIT 0x1000 /* get/set IUCV MSGLIMIT */
574 #define SO_MSGSIZE 0x0800 /* get maximum msgsize */
579 #include <bits/sockaddr.h>
580 #include <linux/types.h>
582 struct sockaddr_nfc
{
583 sa_family_t sa_family
;
590 /* linux/inotify.h */
591 #ifndef IN_EXCL_UNLINK
592 #define IN_EXCL_UNLINK 0x04000000 /* exclude events on unlinked objects */
596 #define MSG_COPY 040000
599 #ifndef MS_SNAP_STABLE
600 #define MS_SNAP_STABLE (1<<27)
604 #define MS_NOSEC (1<<28)
608 #define MS_BORN (1<<29)
612 #ifndef KVM_GET_REG_LIST
613 struct kvm_reg_list
{
614 __u64 n
; /* number of regs */
617 #define KVM_GET_REG_LIST _IOWR(KVMIO, 0xb0, struct kvm_reg_list)
620 #ifndef KVM_S390_UCAS_MAP
621 struct kvm_s390_ucas_mapping
{
626 #define KVM_S390_UCAS_MAP _IOW(KVMIO, 0x50, struct kvm_s390_ucas_mapping)
629 #ifndef KVM_S390_UCAS_UNMAP
630 #define KVM_S390_UCAS_UNMAP _IOW(KVMIO, 0x51, struct kvm_s390_ucas_mapping)
633 #ifndef KVM_S390_VCPU_FAULT
634 #define KVM_S390_VCPU_FAULT _IOW(KVMIO, 0x52, unsigned long)
637 #ifndef KVM_XEN_HVM_CONFIG
638 struct kvm_xen_hvm_config
{
647 #define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config)
650 #ifndef KVM_PPC_GET_PVINFO
651 struct kvm_ppc_pvinfo
{
657 #define KVM_PPC_GET_PVINFO _IOW(KVMIO, 0xa1, struct kvm_ppc_pvinfo)
660 #ifndef KVM_SET_TSC_KHZ
661 #define KVM_SET_TSC_KHZ _IO(KVMIO, 0xa2)
664 #ifndef KVM_GET_TSC_KHZ
665 #define KVM_GET_TSC_KHZ _IO(KVMIO, 0xa3)
668 #ifndef KVM_ASSIGN_SET_INTX_MASK
669 #define KVM_ASSIGN_SET_INTX_MASK _IOW(KVMIO, 0xa4, struct kvm_assigned_pci_dev)
672 #ifndef KVM_GET_DEBUGREGS
673 struct kvm_debugregs
{
680 #define KVM_GET_DEBUGREGS _IOR(KVMIO, 0xa1, struct kvm_debugregs)
681 #define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
684 #ifndef KVM_ENABLE_CAP
685 struct kvm_enable_cap
{
692 #define KVM_ENABLE_CAP _IOW(KVMIO, 0xa3, struct kvm_enable_cap)
695 #ifndef KVM_GET_XSAVE
699 #define KVM_GET_XSAVE _IOR(KVMIO, 0xa4, struct kvm_xsave)
700 #define KVM_SET_XSAVE _IOW(KVMIO, 0xa5, struct kvm_xsave)
704 #define KVM_MAX_XCRS 16
714 struct kvm_xcr xcrs
[KVM_MAX_XCRS
];
717 #define KVM_GET_XCRS _IOR(KVMIO, 0xa6, struct kvm_xcrs)
718 #define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs)
721 #ifndef KVM_SIGNAL_MSI
729 #define KVM_SIGNAL_MSI _IOW(KVMIO, 0xa5, struct kvm_msi)
732 #ifndef KVM_DIRTY_TLB
733 struct kvm_dirty_tlb
{
737 #define KVM_DIRTY_TLB _IOW(KVMIO, 0xaa, struct kvm_dirty_tlb)
740 #ifndef KVM_GET_ONE_REG
745 #define KVM_GET_ONE_REG _IOW(KVMIO, 0xab, struct kvm_one_reg)
748 #ifndef KVM_SET_ONE_REG
749 #define KVM_SET_ONE_REG _IOW(KVMIO, 0xac, struct kvm_one_reg)
752 #ifndef KVM_KVMCLOCK_CTRL
753 #define KVM_KVMCLOCK_CTRL _IO(KVMIO, 0xad)
756 #ifndef KVM_PPC_GET_SMMU_INFO
757 #define KVM_PPC_PAGE_SIZES_MAX_SZ 8
759 struct kvm_ppc_one_page_size
{
760 __u32 page_shift
; /* Page shift (or 0) */
761 __u32 pte_enc
; /* Encoding in the HPTE (>>12) */
764 struct kvm_ppc_one_seg_page_size
{
765 __u32 page_shift
; /* Base page shift of segment (or 0) */
766 __u32 slb_enc
; /* SLB encoding for BookS */
767 struct kvm_ppc_one_page_size enc
[KVM_PPC_PAGE_SIZES_MAX_SZ
];
770 struct kvm_ppc_smmu_info
{
774 struct kvm_ppc_one_seg_page_size sps
[KVM_PPC_PAGE_SIZES_MAX_SZ
];
776 #define KVM_PPC_GET_SMMU_INFO _IOR(KVMIO, 0xa6, struct kvm_ppc_smmu_info)
779 #ifndef KVM_PPC_ALLOCATE_HTAB
780 #define KVM_PPC_ALLOCATE_HTAB _IOWR(KVMIO, 0xa7, __u32)
783 #ifndef KVM_PPC_GET_HTAB_FD
784 struct kvm_get_htab_fd
{
789 #define KVM_PPC_GET_HTAB_FD _IOW(KVMIO, 0xaa, struct kvm_get_htab_fd)
798 #define MRT_TABLE (MRT_BASE+9)
800 #ifndef MRT_ADD_MFC_PROXY
801 #define MRT_ADD_MFC_PROXY (MRT_BASE+10)
803 #ifndef MRT_DEL_MFC_PROXY
804 #define MRT_DEL_MFC_PROXY (MRT_BASE+11)
816 #ifndef UMOUNT_NOFOLLOW
817 #define UMOUNT_NOFOLLOW 8
822 #define ETH_P_CANFD 0x000D
825 #define ETH_P_CAIF 0x00F7
827 #ifndef ETH_P_802_3_MIN
828 #define ETH_P_802_3_MIN 0x0600
831 #define ETH_P_BATMAN 0x4305
833 #ifndef ETH_P_LINK_CTL
834 #define ETH_P_LINK_CTL 0x886c
837 #define ETH_P_8021AD 0x88A8
839 #ifndef ETH_P_802_EX1
840 #define ETH_P_802_EX1 0x88B5
843 #define ETH_P_8021AH 0x88E7
846 #define ETH_P_MVRP 0x88F5
849 #define ETH_P_PRP 0x88FB
852 #define ETH_P_TDLS 0x890D
855 #define ETH_P_QINQ1 0x9100
858 #define ETH_P_QINQ2 0x9200
861 #define ETH_P_QINQ3 0x9300
863 #ifndef ETH_P_AF_IUCV
864 #define ETH_P_AF_IUCV 0xFBFB
868 #ifndef SCHED_DEADLINE
869 #define SCHED_DEADLINE 6
873 #ifndef SWAP_FLAG_DISCARD
874 #define SWAP_FLAG_DISCARD 0x10000