diff options
author | alecmocatta <alec@mocatta.net> | 2018-07-30 19:46:52 +0100 |
---|---|---|
committer | alecmocatta <alec@mocatta.net> | 2018-07-30 19:46:52 +0100 |
commit | 25498ef54ee408cba03ff6294f12d933baa84b20 (patch) | |
tree | fed378b0702d11e36af30e7398877defcba497af | |
parent | 8565755356f23baf6b2df933ff734ce2f00c8d9b (diff) | |
download | rust-libc-25498ef54ee408cba03ff6294f12d933baa84b20.tar.gz |
FIO* for *-apple-*
-rw-r--r-- | src/unix/bsd/apple/b64.rs | 2 | ||||
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/unix/bsd/apple/b64.rs b/src/unix/bsd/apple/b64.rs index 2b34f85345..ca98f20952 100644 --- a/src/unix/bsd/apple/b64.rs +++ b/src/unix/bsd/apple/b64.rs @@ -63,5 +63,3 @@ pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 16; pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459; pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40107458; - -pub const FIONREAD: ::c_ulong = 0x4004667f; diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index ffa626926a..40e38148cc 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -1085,6 +1085,15 @@ pub const TIOCPTYGRANT: ::c_uint = 0x20007454; pub const TIOCPTYGNAME: ::c_uint = 0x40807453; pub const TIOCPTYUNLK: ::c_uint = 0x20007452; +pub const FIOCLEX: ::c_uint = 0x20006601; +pub const FIONCLEX: ::c_uint = 0x20006602; +pub const FIONREAD: ::c_ulong = 0x4004667f; +pub const FIONBIO: ::c_ulong = 0x8004667e; +pub const FIOASYNC: ::c_ulong = 0x8004667d; +pub const FIOSETOWN: ::c_ulong = 0x8004667c; +pub const FIOGETOWN: ::c_ulong = 0x4004667b; +pub const FIODTYPE: ::c_ulong = 0x4004667a; + pub const B0: speed_t = 0; pub const B50: speed_t = 50; pub const B75: speed_t = 75; |