• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /****************************************************************************
2   ****************************************************************************
3   ***
4   ***   This header was automatically generated from a Linux kernel header
5   ***   of the same name, to make information necessary for userspace to
6   ***   call into the kernel available to libc.  It contains only constants,
7   ***   structures, and macros generated from the original header, and thus,
8   ***   contains no copyrightable information.
9   ***
10   ***   To edit the content of this header, modify the corresponding
11   ***   source file (e.g. under external/kernel-headers/original/) then
12   ***   run bionic/libc/kernel/tools/update_all.py
13   ***
14   ***   Any manual change here will be lost the next time this script will
15   ***   be run. You've been warned!
16   ***
17   ****************************************************************************
18   ****************************************************************************/
19  #ifndef _LINUX_SOCKIOS_H
20  #define _LINUX_SOCKIOS_H
21  #include <asm/bitsperlong.h>
22  #include <asm/sockios.h>
23  #define SIOCINQ FIONREAD
24  #define SIOCOUTQ TIOCOUTQ
25  #define SOCK_IOC_TYPE 0x89
26  #define SIOCGSTAMP_NEW _IOR(SOCK_IOC_TYPE, 0x06, long long[2])
27  #define SIOCGSTAMPNS_NEW _IOR(SOCK_IOC_TYPE, 0x07, long long[2])
28  #if __BITS_PER_LONG == 64 || defined(__x86_64__) && defined(__ILP32__)
29  #define SIOCGSTAMP SIOCGSTAMP_OLD
30  #define SIOCGSTAMPNS SIOCGSTAMPNS_OLD
31  #else
32  #define SIOCGSTAMP ((sizeof(struct timeval)) == 8 ? SIOCGSTAMP_OLD : SIOCGSTAMP_NEW)
33  #define SIOCGSTAMPNS ((sizeof(struct timespec)) == 8 ? SIOCGSTAMPNS_OLD : SIOCGSTAMPNS_NEW)
34  #endif
35  #define SIOCADDRT 0x890B
36  #define SIOCDELRT 0x890C
37  #define SIOCRTMSG 0x890D
38  #define SIOCGIFNAME 0x8910
39  #define SIOCSIFLINK 0x8911
40  #define SIOCGIFCONF 0x8912
41  #define SIOCGIFFLAGS 0x8913
42  #define SIOCSIFFLAGS 0x8914
43  #define SIOCGIFADDR 0x8915
44  #define SIOCSIFADDR 0x8916
45  #define SIOCGIFDSTADDR 0x8917
46  #define SIOCSIFDSTADDR 0x8918
47  #define SIOCGIFBRDADDR 0x8919
48  #define SIOCSIFBRDADDR 0x891a
49  #define SIOCGIFNETMASK 0x891b
50  #define SIOCSIFNETMASK 0x891c
51  #define SIOCGIFMETRIC 0x891d
52  #define SIOCSIFMETRIC 0x891e
53  #define SIOCGIFMEM 0x891f
54  #define SIOCSIFMEM 0x8920
55  #define SIOCGIFMTU 0x8921
56  #define SIOCSIFMTU 0x8922
57  #define SIOCSIFNAME 0x8923
58  #define SIOCSIFHWADDR 0x8924
59  #define SIOCGIFENCAP 0x8925
60  #define SIOCSIFENCAP 0x8926
61  #define SIOCGIFHWADDR 0x8927
62  #define SIOCGIFSLAVE 0x8929
63  #define SIOCSIFSLAVE 0x8930
64  #define SIOCADDMULTI 0x8931
65  #define SIOCDELMULTI 0x8932
66  #define SIOCGIFINDEX 0x8933
67  #define SIOGIFINDEX SIOCGIFINDEX
68  #define SIOCSIFPFLAGS 0x8934
69  #define SIOCGIFPFLAGS 0x8935
70  #define SIOCDIFADDR 0x8936
71  #define SIOCSIFHWBROADCAST 0x8937
72  #define SIOCGIFCOUNT 0x8938
73  #define SIOCGIFBR 0x8940
74  #define SIOCSIFBR 0x8941
75  #define SIOCGIFTXQLEN 0x8942
76  #define SIOCSIFTXQLEN 0x8943
77  #define SIOCETHTOOL 0x8946
78  #define SIOCGMIIPHY 0x8947
79  #define SIOCGMIIREG 0x8948
80  #define SIOCSMIIREG 0x8949
81  #define SIOCWANDEV 0x894A
82  #define SIOCOUTQNSD 0x894B
83  #define SIOCGSKNS 0x894C
84  #define SIOCDARP 0x8953
85  #define SIOCGARP 0x8954
86  #define SIOCSARP 0x8955
87  #define SIOCDRARP 0x8960
88  #define SIOCGRARP 0x8961
89  #define SIOCSRARP 0x8962
90  #define SIOCGIFMAP 0x8970
91  #define SIOCSIFMAP 0x8971
92  #define SIOCADDDLCI 0x8980
93  #define SIOCDELDLCI 0x8981
94  #define SIOCGIFVLAN 0x8982
95  #define SIOCSIFVLAN 0x8983
96  #define SIOCBONDENSLAVE 0x8990
97  #define SIOCBONDRELEASE 0x8991
98  #define SIOCBONDSETHWADDR 0x8992
99  #define SIOCBONDSLAVEINFOQUERY 0x8993
100  #define SIOCBONDINFOQUERY 0x8994
101  #define SIOCBONDCHANGEACTIVE 0x8995
102  #define SIOCBRADDBR 0x89a0
103  #define SIOCBRDELBR 0x89a1
104  #define SIOCBRADDIF 0x89a2
105  #define SIOCBRDELIF 0x89a3
106  #define SIOCSHWTSTAMP 0x89b0
107  #define SIOCGHWTSTAMP 0x89b1
108  #define SIOCDEVPRIVATE 0x89F0
109  #define SIOCPROTOPRIVATE 0x89E0
110  #endif
111