diff options
author | Torbjørn Birch Moltu <t.b.moltu@lyse.net> | 2019-05-27 19:23:54 +0200 |
---|---|---|
committer | Torbjørn Birch Moltu <t.b.moltu@lyse.net> | 2019-06-07 20:00:55 +0200 |
commit | a319b62fbd8d5e6799f04c6ba1660055f5e5ecab (patch) | |
tree | 90a3470d85c9e7af959f61ab1be26ea07ec2d739 /src/unix/bsd/mod.rs | |
parent | d5a599ece74cde441577db7ece34b59017ff7e6c (diff) | |
download | rust-libc-a319b62fbd8d5e6799f04c6ba1660055f5e5ecab.tar.gz |
Generalize some FIO* constants to all BSDs
* Change the type of FIONCLEX on apple platforms from c_uint to c_ulong
* Add FIONCLEX, FIONREAD, FIOASYNC, FIOSETOWN and FIOGETOWN
for DragonFly and OpenBSD
Diffstat (limited to 'src/unix/bsd/mod.rs')
-rw-r--r-- | src/unix/bsd/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs index 8bc6c7c64c..77f82b182b 100644 --- a/src/unix/bsd/mod.rs +++ b/src/unix/bsd/mod.rs @@ -233,7 +233,12 @@ pub const LC_TIME: ::c_int = 5; pub const LC_MESSAGES: ::c_int = 6; pub const FIOCLEX: ::c_ulong = 0x20006601; +pub const FIONCLEX: ::c_ulong = 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 PATH_MAX: ::c_int = 1024; |