Skip to content

Commit a5aa78d

Browse files
committed
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
1 parent 9af04ce commit a5aa78d

File tree

1 file changed

+5
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+5
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,7 @@ pub const MSG_COMPAT: ::c_int = 0x00008000;
10081008
pub const MSG_CMSG_CLOEXEC: ::c_int = 0x00040000;
10091009
pub const MSG_NOSIGNAL: ::c_int = 0x20000;
10101010

1011+
// utmpx entry types
10111012
pub const EMPTY: ::c_short = 0;
10121013
pub const BOOT_TIME: ::c_short = 1;
10131014
pub const OLD_TIME: ::c_short = 2;
@@ -1017,6 +1018,10 @@ pub const INIT_PROCESS: ::c_short = 5;
10171018
pub const LOGIN_PROCESS: ::c_short = 6;
10181019
pub const DEAD_PROCESS: ::c_short = 7;
10191020
pub const SHUTDOWN_TIME: ::c_short = 8;
1021+
// utmp database types
1022+
pub const UTXDB_ACTIVE: ::c_int = 0;
1023+
pub const UTXDB_LASTLOGIN: ::c_int = 1;
1024+
pub const UTXDB_LOG: ::c_int = 2;
10201025

10211026
pub const LC_COLLATE_MASK: ::c_int = (1 << 0);
10221027
pub const LC_CTYPE_MASK: ::c_int = (1 << 1);

0 commit comments

Comments
 (0)