File tree 4 files changed +5
-2
lines changed
4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ pub type blkcnt_t = i64;
6
6
pub type socklen_t = u32 ;
7
7
pub type sa_family_t = u8 ;
8
8
pub type pthread_t = :: uintptr_t ;
9
+ pub type nfds_t = :: c_int ;
9
10
10
11
s ! {
11
12
pub struct sockaddr {
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ pub type in_addr_t = u32;
10
10
pub type in_port_t = u16 ;
11
11
pub type sighandler_t = :: size_t ;
12
12
pub type cc_t = :: c_uchar ;
13
- pub type nfds_t = :: c_ulong ;
14
13
15
14
pub enum DIR { }
16
15
@@ -562,6 +561,8 @@ extern {
562
561
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
563
562
link_name = "recvmsg$UNIX2003" ) ]
564
563
pub fn recvmsg ( fd : :: c_int , msg : * mut msghdr , flags : :: c_int ) -> :: ssize_t ;
564
+ #[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
565
+ link_name = "poll$UNIX2003" ) ]
565
566
pub fn poll ( fds : * mut pollfd , nfds : nfds_t , timeout : :: c_int ) -> :: c_int ;
566
567
}
567
568
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ pub type fsfilcnt_t = ::c_ulong;
14
14
pub type key_t = :: c_int ;
15
15
pub type shmatt_t = :: c_ulong ;
16
16
pub type mqd_t = :: c_int ;
17
+ pub type nfds_t = :: c_ulong ;
17
18
18
19
pub enum fpos64_t { } // TODO: fill this out with a struct
19
20
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ extern {
408
408
serv : * mut :: c_char ,
409
409
sevlen : :: socklen_t ,
410
410
flags : :: c_int ) -> :: c_int ;
411
- pub fn eventfd ( init : :: c_int , flags : :: c_int ) -> :: c_int ;
411
+ pub fn eventfd ( init : :: c_uint , flags : :: c_int ) -> :: c_int ;
412
412
pub fn ptrace ( request : :: c_uint , ...) -> :: c_long ;
413
413
}
414
414
You can’t perform that action at this time.
0 commit comments