File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -381,9 +381,26 @@ s! {
381
381
}
382
382
383
383
// constants
384
+ pub const EADDRINUSE : :: c_int = 98 ; // Address already in use
385
+ pub const EADDRNOTAVAIL : :: c_int = 99 ; // Cannot assign requested address
386
+ pub const ECONNABORTED : :: c_int = 103 ; // Software caused connection abort
387
+ pub const ECONNREFUSED : :: c_int = 111 ; // Connection refused
388
+ pub const ECONNRESET : :: c_int = 104 ; // Connection reset by peer
389
+ pub const EDEADLK : :: c_int = 35 ; // Resource deadlock would occur
390
+ pub const ENOSYS : :: c_int = 38 ; // Function not implemented
391
+ pub const ENOTCONN : :: c_int = 107 ; // Transport endpoint is not connected
392
+ pub const ETIMEDOUT : :: c_int = 110 ; // connection timed out
393
+ pub const O_APPEND : :: c_int = 02000 ;
394
+ pub const O_ACCMODE : :: c_int = 0003 ;
384
395
pub const O_CLOEXEC : :: c_int = 0x80000 ;
396
+ pub const O_CREAT : :: c_int = 0100 ;
385
397
pub const O_DIRECTORY : :: c_int = 0200000 ;
398
+ pub const O_EXCL : :: c_int = 0200 ;
399
+ pub const O_NONBLOCK : :: c_int = 04000 ;
400
+ pub const O_TRUNC : :: c_int = 01000 ;
386
401
pub const NCCS : usize = 32 ;
402
+ pub const PTHREAD_STACK_MIN : :: c_int = 16384 ;
403
+ pub const SIG_SETMASK : :: c_int = 2 ; // Set the set of blocked signals
387
404
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40 ;
388
405
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4 ;
389
406
pub const PTHREAD_MUTEX_NORMAL : :: c_int = 0 ;
You can’t perform that action at this time.
0 commit comments