File tree 4 files changed +5
-1
lines changed
4 files changed +5
-1
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_uint ;
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 @@ -22,6 +22,7 @@ pub type sigset_t = c_ulong;
22
22
pub type time64_t = i64 ;
23
23
pub type fsfilcnt_t = :: c_ulong ;
24
24
pub type fsblkcnt_t = :: c_ulong ;
25
+ pub type nfds_t = :: c_uint ;
25
26
26
27
s ! {
27
28
pub struct stat {
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
You can’t perform that action at this time.
0 commit comments