diff options
author | Luca Bruno <luca.bruno@coreos.com> | 2019-09-01 13:52:38 +0000 |
---|---|---|
committer | Luca Bruno <luca.bruno@coreos.com> | 2019-09-01 13:52:38 +0000 |
commit | a5aa78dda423a3ed3043856fa116300fc763a626 (patch) | |
tree | f718014ad5712ad71c950e96b089c3e14c2556fd | |
parent | 9af04cebf685a38e159937633aa7c57b21bbebdb (diff) | |
download | rust-libc-a5aa78dda423a3ed3043856fa116300fc763a626.tar.gz |
freebsd: add utmpx constants
This adds a few missing constants from FreeBSD `utmpx.h`.
Ref: https://github.com/freebsd/freebsd/blob/a1d2b5187332a366a897689c5fb41d38d7e1b0d8/include/utmpx.h
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index d534af9091..498bc20ce2 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -1008,6 +1008,7 @@ pub const MSG_COMPAT: ::c_int = 0x00008000; pub const MSG_CMSG_CLOEXEC: ::c_int = 0x00040000; pub const MSG_NOSIGNAL: ::c_int = 0x20000; +// utmpx entry types pub const EMPTY: ::c_short = 0; pub const BOOT_TIME: ::c_short = 1; pub const OLD_TIME: ::c_short = 2; @@ -1017,6 +1018,10 @@ pub const INIT_PROCESS: ::c_short = 5; pub const LOGIN_PROCESS: ::c_short = 6; pub const DEAD_PROCESS: ::c_short = 7; pub const SHUTDOWN_TIME: ::c_short = 8; +// utmp database types +pub const UTXDB_ACTIVE: ::c_int = 0; +pub const UTXDB_LASTLOGIN: ::c_int = 1; +pub const UTXDB_LOG: ::c_int = 2; pub const LC_COLLATE_MASK: ::c_int = (1 << 0); pub const LC_CTYPE_MASK: ::c_int = (1 << 1); |