Skip to content

Commit 9b5447f

Browse files
committed
Merge pull request #6 from alexcrichton/FIONBIO
Add FIONBIO
2 parents 6ca7818 + 67e3388 commit 9b5447f

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

src/unix/bsd/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ s! {
6565
}
6666

6767
pub const FIOCLEX: c_ulong = 0x20006601;
68+
pub const FIONBIO: ::c_int = 0x8004667e;
6869

6970
pub const SA_ONSTACK: ::c_int = 0x0001;
7071
pub const SA_SIGINFO: ::c_int = 0x0040;

src/unix/notbsd/android/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ pub const L_tmpnam: ::c_uint = 1024;
9696
pub const TMP_MAX: ::c_uint = 308915776;
9797
pub const _PC_NAME_MAX: ::c_int = 4;
9898

99+
pub const FIONBIO: ::c_int = 0x5421;
100+
99101
pub const _SC_ARG_MAX: ::c_int = 0;
100102
pub const _SC_BC_BASE_MAX: ::c_int = 1;
101103
pub const _SC_BC_DIM_MAX: ::c_int = 2;

src/unix/notbsd/linux/mips.rs

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
202202
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;
203203

204204
pub const FIOCLEX: ::c_ulong = 0x6601;
205+
pub const FIONBIO: ::c_int = 0x667e;
205206

206207
pub const SA_ONSTACK: ::c_ulong = 0x08000000;
207208
pub const SA_SIGINFO: ::c_ulong = 0x00000008;

src/unix/notbsd/linux/notmips/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ pub const TCP_TIMESTAMP: ::c_int = 24;
167167
pub const SO_REUSEPORT: ::c_int = 15;
168168

169169
pub const FIOCLEX: ::c_ulong = 0x5451;
170+
pub const FIONBIO: ::c_int = 0x5421;
170171

171172
pub const SA_ONSTACK: ::c_ulong = 0x08000000;
172173
pub const SA_SIGINFO: ::c_ulong = 0x00000004;

0 commit comments

Comments
 (0)