Skip to content

Commit

Permalink
Merge pull request #6 from alexcrichton/FIONBIO
Browse files Browse the repository at this point in the history
Add FIONBIO
  • Loading branch information
alexcrichton committed Sep 23, 2015
2 parents 6ca7818 + 67e3388 commit 9b5447f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/bsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ s! {
}

pub const FIOCLEX: c_ulong = 0x20006601;
pub const FIONBIO: ::c_int = 0x8004667e;

pub const SA_ONSTACK: ::c_int = 0x0001;
pub const SA_SIGINFO: ::c_int = 0x0040;
Expand Down
2 changes: 2 additions & 0 deletions src/unix/notbsd/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ pub const L_tmpnam: ::c_uint = 1024;
pub const TMP_MAX: ::c_uint = 308915776;
pub const _PC_NAME_MAX: ::c_int = 4;

pub const FIONBIO: ::c_int = 0x5421;

pub const _SC_ARG_MAX: ::c_int = 0;
pub const _SC_BC_BASE_MAX: ::c_int = 1;
pub const _SC_BC_DIM_MAX: ::c_int = 2;
Expand Down
1 change: 1 addition & 0 deletions src/unix/notbsd/linux/mips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;

pub const FIOCLEX: ::c_ulong = 0x6601;
pub const FIONBIO: ::c_int = 0x667e;

pub const SA_ONSTACK: ::c_ulong = 0x08000000;
pub const SA_SIGINFO: ::c_ulong = 0x00000008;
Expand Down
1 change: 1 addition & 0 deletions src/unix/notbsd/linux/notmips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ pub const TCP_TIMESTAMP: ::c_int = 24;
pub const SO_REUSEPORT: ::c_int = 15;

pub const FIOCLEX: ::c_ulong = 0x5451;
pub const FIONBIO: ::c_int = 0x5421;

pub const SA_ONSTACK: ::c_ulong = 0x08000000;
pub const SA_SIGINFO: ::c_ulong = 0x00000004;
Expand Down

0 comments on commit 9b5447f

Please sign in to comment.