@@ -208,13 +208,6 @@ s! {
208
208
pub ar_op: u16 ,
209
209
}
210
210
211
- pub struct inotify_event {
212
- pub wd: :: c_int,
213
- pub mask: :: uint32_t,
214
- pub cookie: :: uint32_t,
215
- pub len: :: uint32_t
216
- }
217
-
218
211
pub struct mmsghdr {
219
212
pub msg_hdr: :: msghdr,
220
213
pub msg_len: :: c_uint,
@@ -807,24 +800,18 @@ pub const IP_RECVTOS: ::c_int = 13;
807
800
pub const IP_ADD_MEMBERSHIP : :: c_int = 35 ;
808
801
pub const IP_DROP_MEMBERSHIP : :: c_int = 36 ;
809
802
pub const IP_TRANSPARENT : :: c_int = 19 ;
810
- pub const IPV6_FLOWINFO : :: c_int = 11 ;
811
803
pub const IPV6_UNICAST_HOPS : :: c_int = 16 ;
812
804
pub const IPV6_MULTICAST_IF : :: c_int = 17 ;
813
805
pub const IPV6_MULTICAST_HOPS : :: c_int = 18 ;
814
806
pub const IPV6_MULTICAST_LOOP : :: c_int = 19 ;
815
807
pub const IPV6_ADD_MEMBERSHIP : :: c_int = 20 ;
816
808
pub const IPV6_DROP_MEMBERSHIP : :: c_int = 21 ;
817
809
pub const IPV6_V6ONLY : :: c_int = 26 ;
818
- pub const IPV6_FLOWLABEL_MGR : :: c_int = 32 ;
819
- pub const IPV6_FLOWINFO_SEND : :: c_int = 33 ;
820
810
pub const IPV6_RECVPKTINFO : :: c_int = 49 ;
821
811
pub const IPV6_PKTINFO : :: c_int = 50 ;
822
812
pub const IPV6_RECVTCLASS : :: c_int = 66 ;
823
813
pub const IPV6_TCLASS : :: c_int = 67 ;
824
814
825
- pub const IPV6_FLOWINFO_FLOWLABEL : :: c_int = 0x000fffff ;
826
- pub const IPV6_FLOWINFO_PRIORITY : :: c_int = 0x0ff00000 ;
827
-
828
815
pub const TCP_NODELAY : :: c_int = 1 ;
829
816
pub const TCP_MAXSEG : :: c_int = 2 ;
830
817
pub const TCP_CORK : :: c_int = 3 ;
@@ -1167,45 +1154,6 @@ pub const ARPHRD_IEEE802154: u16 = 804;
1167
1154
pub const ARPHRD_VOID : u16 = 0xFFFF ;
1168
1155
pub const ARPHRD_NONE : u16 = 0xFFFE ;
1169
1156
1170
- // uapi/linux/inotify.h
1171
- pub const IN_ACCESS : :: uint32_t = 0x0000_0001 ;
1172
- pub const IN_MODIFY : :: uint32_t = 0x0000_0002 ;
1173
- pub const IN_ATTRIB : :: uint32_t = 0x0000_0004 ;
1174
- pub const IN_CLOSE_WRITE : :: uint32_t = 0x0000_0008 ;
1175
- pub const IN_CLOSE_NOWRITE : :: uint32_t = 0x0000_0010 ;
1176
- pub const IN_CLOSE : :: uint32_t = ( IN_CLOSE_WRITE | IN_CLOSE_NOWRITE ) ;
1177
- pub const IN_OPEN : :: uint32_t = 0x0000_0020 ;
1178
- pub const IN_MOVED_FROM : :: uint32_t = 0x0000_0040 ;
1179
- pub const IN_MOVED_TO : :: uint32_t = 0x0000_0080 ;
1180
- pub const IN_MOVE : :: uint32_t = ( IN_MOVED_FROM | IN_MOVED_TO ) ;
1181
- pub const IN_CREATE : :: uint32_t = 0x0000_0100 ;
1182
- pub const IN_DELETE : :: uint32_t = 0x0000_0200 ;
1183
- pub const IN_DELETE_SELF : :: uint32_t = 0x0000_0400 ;
1184
- pub const IN_MOVE_SELF : :: uint32_t = 0x0000_0800 ;
1185
-
1186
- pub const IN_UNMOUNT : :: uint32_t = 0x0000_2000 ;
1187
- pub const IN_Q_OVERFLOW : :: uint32_t = 0x0000_4000 ;
1188
- pub const IN_IGNORED : :: uint32_t = 0x0000_8000 ;
1189
-
1190
- pub const IN_ONLYDIR : :: uint32_t = 0x0100_0000 ;
1191
- pub const IN_DONT_FOLLOW : :: uint32_t = 0x0200_0000 ;
1192
- // pub const IN_EXCL_UNLINK: ::uint32_t = 0x0400_0000;
1193
-
1194
- // pub const IN_MASK_CREATE: ::uint32_t = 0x1000_0000;
1195
- // pub const IN_MASK_ADD: ::uint32_t = 0x2000_0000;
1196
- pub const IN_ISDIR : :: uint32_t = 0x4000_0000 ;
1197
- pub const IN_ONESHOT : :: uint32_t = 0x8000_0000 ;
1198
-
1199
- pub const IN_ALL_EVENTS : :: uint32_t = (
1200
- IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE |
1201
- IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM |
1202
- IN_MOVED_TO | IN_DELETE | IN_CREATE | IN_DELETE_SELF |
1203
- IN_MOVE_SELF
1204
- ) ;
1205
-
1206
- pub const IN_CLOEXEC : :: c_int = O_CLOEXEC ;
1207
- pub const IN_NONBLOCK : :: c_int = O_NONBLOCK ;
1208
-
1209
1157
fn CMSG_ALIGN ( len : usize ) -> usize {
1210
1158
len + :: mem:: size_of :: < usize > ( ) - 1 & !( :: mem:: size_of :: < usize > ( ) - 1 )
1211
1159
}
@@ -1458,11 +1406,6 @@ extern {
1458
1406
pub fn recvmsg ( fd : :: c_int , msg : * mut :: msghdr , flags : :: c_int )
1459
1407
-> :: ssize_t ;
1460
1408
pub fn uname ( buf : * mut :: utsname ) -> :: c_int ;
1461
- pub fn inotify_init ( ) -> :: c_int ;
1462
- pub fn inotify_init1 ( flags : :: c_int ) -> :: c_int ;
1463
- pub fn inotify_add_watch ( fd : :: c_int ,
1464
- path : * const :: c_char ,
1465
- mask : :: uint32_t ) -> :: c_int ;
1466
1409
}
1467
1410
1468
1411
cfg_if ! {
0 commit comments