@@ -208,13 +208,6 @@ s! {
208208 pub ar_op: u16 ,
209209 }
210210
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-
218211 pub struct mmsghdr {
219212 pub msg_hdr: :: msghdr,
220213 pub msg_len: :: c_uint,
@@ -807,24 +800,18 @@ pub const IP_RECVTOS: ::c_int = 13;
807800pub const IP_ADD_MEMBERSHIP : :: c_int = 35 ;
808801pub const IP_DROP_MEMBERSHIP : :: c_int = 36 ;
809802pub const IP_TRANSPARENT : :: c_int = 19 ;
810- pub const IPV6_FLOWINFO : :: c_int = 11 ;
811803pub const IPV6_UNICAST_HOPS : :: c_int = 16 ;
812804pub const IPV6_MULTICAST_IF : :: c_int = 17 ;
813805pub const IPV6_MULTICAST_HOPS : :: c_int = 18 ;
814806pub const IPV6_MULTICAST_LOOP : :: c_int = 19 ;
815807pub const IPV6_ADD_MEMBERSHIP : :: c_int = 20 ;
816808pub const IPV6_DROP_MEMBERSHIP : :: c_int = 21 ;
817809pub const IPV6_V6ONLY : :: c_int = 26 ;
818- pub const IPV6_FLOWLABEL_MGR : :: c_int = 32 ;
819- pub const IPV6_FLOWINFO_SEND : :: c_int = 33 ;
820810pub const IPV6_RECVPKTINFO : :: c_int = 49 ;
821811pub const IPV6_PKTINFO : :: c_int = 50 ;
822812pub const IPV6_RECVTCLASS : :: c_int = 66 ;
823813pub const IPV6_TCLASS : :: c_int = 67 ;
824814
825- pub const IPV6_FLOWINFO_FLOWLABEL : :: c_int = 0x000fffff ;
826- pub const IPV6_FLOWINFO_PRIORITY : :: c_int = 0x0ff00000 ;
827-
828815pub const TCP_NODELAY : :: c_int = 1 ;
829816pub const TCP_MAXSEG : :: c_int = 2 ;
830817pub const TCP_CORK : :: c_int = 3 ;
@@ -1167,45 +1154,6 @@ pub const ARPHRD_IEEE802154: u16 = 804;
11671154pub const ARPHRD_VOID : u16 = 0xFFFF ;
11681155pub const ARPHRD_NONE : u16 = 0xFFFE ;
11691156
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-
12091157fn CMSG_ALIGN ( len : usize ) -> usize {
12101158 len + :: mem:: size_of :: < usize > ( ) - 1 & !( :: mem:: size_of :: < usize > ( ) - 1 )
12111159}
@@ -1458,11 +1406,6 @@ extern {
14581406 pub fn recvmsg ( fd : :: c_int , msg : * mut :: msghdr , flags : :: c_int )
14591407 -> :: ssize_t ;
14601408 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 ;
14661409}
14671410
14681411cfg_if ! {
0 commit comments