diff options
author | Jeremy Soller <jackpot51@gmail.com> | 2018-08-24 13:55:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-24 13:55:14 -0600 |
commit | 15085c211eeece1d21ea24cc07ddb0c4318d6e0e (patch) | |
tree | b341893f06735b33414dff995e418eec396027d8 /src/redox/mod.rs | |
parent | 660a4feb875646d1a01f733cbde2d78ce6e022d0 (diff) | |
parent | 1844a772b60771d0124a157019f627d60fea4e73 (diff) | |
download | rust-libc-15085c211eeece1d21ea24cc07ddb0c4318d6e0e.tar.gz |
Merge branch 'master' into relibc
Diffstat (limited to 'src/redox/mod.rs')
-rw-r--r-- | src/redox/mod.rs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/redox/mod.rs b/src/redox/mod.rs index 2619362848..8b6518eea1 100644 --- a/src/redox/mod.rs +++ b/src/redox/mod.rs @@ -85,11 +85,45 @@ pub const O_SYMLINK: ::c_int = 0x4000_0000; pub const O_NOFOLLOW: ::c_int = 0x8000_0000; pub const O_ACCMODE: ::c_int = O_RDONLY | O_WRONLY | O_RDWR; +pub const SIGHUP: ::c_int = 1; +pub const SIGINT: ::c_int = 2; +pub const SIGQUIT: ::c_int = 3; +pub const SIGILL: ::c_int = 4; +pub const SIGTRAP: ::c_int = 5; +pub const SIGABRT: ::c_int = 6; +pub const SIGBUS: ::c_int = 7; +pub const SIGFPE: ::c_int = 8; +pub const SIGKILL: ::c_int = 9; +pub const SIGUSR1: ::c_int = 10; +pub const SIGSEGV: ::c_int = 11; +pub const SIGUSR2: ::c_int = 12; +pub const SIGPIPE: ::c_int = 13; +pub const SIGALRM: ::c_int = 14; +pub const SIGTERM: ::c_int = 15; +pub const SIGSTKFLT: ::c_int = 16; +pub const SIGCHLD: ::c_int = 17; +pub const SIGCONT: ::c_int = 18; +pub const SIGSTOP: ::c_int = 19; +pub const SIGTSTP: ::c_int = 20; +pub const SIGTTIN: ::c_int = 21; +pub const SIGTTOU: ::c_int = 22; +pub const SIGURG: ::c_int = 23; +pub const SIGXCPU: ::c_int = 24; +pub const SIGXFSZ: ::c_int = 25; +pub const SIGVTALRM: ::c_int = 26; +pub const SIGPROF: ::c_int = 27; +pub const SIGWINCH: ::c_int = 28; +pub const SIGIO: ::c_int = 29; +pub const SIGPWR: ::c_int = 30; +pub const SIGSYS: ::c_int = 31; + extern { pub fn chown(path: *const c_char, uid: uid_t, gid: gid_t) -> ::c_int; pub fn close(fd: ::c_int) -> ::c_int; pub fn fchown(fd: ::c_int, uid: ::uid_t, gid: ::gid_t) -> ::c_int; pub fn fcntl(fd: ::c_int, cmd: ::c_int, ...) -> ::c_int; + pub fn gethostname(name: *mut ::c_char, len: ::size_t) -> ::c_int; + pub fn getpid() -> pid_t; pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void; pub fn read(fd: ::c_int, buf: *mut ::c_void, count: ::size_t) -> ::ssize_t; pub fn setenv(name: *const c_char, val: *const c_char, overwrite: ::c_int) -> ::c_int; |