File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -733,6 +733,9 @@ pub const ONLRET: ::tcflag_t = 0x40;
733
733
pub const CDTRCTS : :: tcflag_t = 0x00020000 ;
734
734
pub const CHWFLOW : :: tcflag_t = :: MDMBUF | :: CRTSCTS | :: CDTRCTS ;
735
735
736
+ pub const SOCK_CLOEXEC : :: c_int = 0x10000000 ;
737
+ pub const SOCK_NONBLOCK : :: c_int = 0x20000000 ;
738
+
736
739
// dirfd() is a macro on netbsd to access
737
740
// the first field of the struct where dirp points to:
738
741
// http://cvsweb.netbsd.org/bsdweb.cgi/src/include/dirent.h?rev=1.36
Original file line number Diff line number Diff line change @@ -579,6 +579,10 @@ pub const OLCUC: ::tcflag_t = 0x20;
579
579
pub const ONOCR : :: tcflag_t = 0x40 ;
580
580
pub const ONLRET : :: tcflag_t = 0x80 ;
581
581
582
+ pub const SOCK_CLOEXEC : :: c_int = 0x8000 ;
583
+ pub const SOCK_NONBLOCK : :: c_int = 0x4000 ;
584
+ pub const SOCK_DNS : :: c_int = 0x1000 ;
585
+
582
586
extern {
583
587
pub fn dirfd ( dirp : * mut :: DIR ) -> :: c_int ;
584
588
pub fn getnameinfo ( sa : * const :: sockaddr ,
Original file line number Diff line number Diff line change @@ -833,6 +833,8 @@ pub const POLLWRBAND: ::c_short = 0x200;
833
833
pub const SFD_CLOEXEC : :: c_int = O_CLOEXEC ;
834
834
pub const SFD_NONBLOCK : :: c_int = O_NONBLOCK ;
835
835
836
+ pub const SOCK_NONBLOCK : :: c_int = O_NONBLOCK ;
837
+
836
838
f ! {
837
839
pub fn CPU_ZERO ( cpuset: & mut cpu_set_t) -> ( ) {
838
840
for slot in cpuset. __bits. iter_mut( ) {
You can’t perform that action at this time.
0 commit comments