Skip to content

Commit d21f903

Browse files
committed
dragonfly: add utmpx constants
This adds a few missing constants from DragonflyBSD `utmpx.h`. Ref: http://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/include/utmpx.h
1 parent a5aa78d commit d21f903

File tree

1 file changed

+8
-0
lines changed
  • src/unix/bsd/freebsdlike/dragonfly

1 file changed

+8
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@ pub const MSG_FBLOCKING: ::c_int = 0x00010000;
935935
pub const MSG_FNONBLOCKING: ::c_int = 0x00020000;
936936
pub const MSG_FMASK: ::c_int = 0xFFFF0000;
937937

938+
// utmpx entry types
938939
pub const EMPTY: ::c_short = 0;
939940
pub const RUN_LVL: ::c_short = 1;
940941
pub const BOOT_TIME: ::c_short = 2;
@@ -944,6 +945,13 @@ pub const INIT_PROCESS: ::c_short = 5;
944945
pub const LOGIN_PROCESS: ::c_short = 6;
945946
pub const USER_PROCESS: ::c_short = 7;
946947
pub const DEAD_PROCESS: ::c_short = 8;
948+
pub const ACCOUNTING: ::c_short = 9;
949+
pub const SIGNATURE: ::c_short = 10;
950+
pub const DOWNTIME: ::c_short = 11;
951+
// utmpx database types
952+
pub const UTX_DB_UTMPX: ::c_uint = 0;
953+
pub const UTX_DB_WTMPX: ::c_uint = 1;
954+
pub const UTX_DB_LASTLOG: ::c_uint = 2;
947955

948956
pub const LC_COLLATE_MASK: ::c_int = (1 << 0);
949957
pub const LC_CTYPE_MASK: ::c_int = (1 << 1);

0 commit comments

Comments
 (0)