Skip to content

Commit 86cb2a2

Browse files
committed
add more uclibc constants
1 parent bd50e59 commit 86cb2a2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/unix/uclibc/x86_64/mod.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,26 @@ s! {
381381
}
382382

383383
// 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;
384395
pub const O_CLOEXEC: ::c_int = 0x80000;
396+
pub const O_CREAT: ::c_int = 0100;
385397
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;
386401
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
387404
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
388405
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;
389406
pub const PTHREAD_MUTEX_NORMAL: ::c_int = 0;

0 commit comments

Comments
 (0)