Skip to content

Commit 9258ae3

Browse files
committed
Haiku: Add utmpx constants
1 parent 72dc142 commit 9258ae3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,16 @@ pub const PRIO_PROCESS: ::c_int = 0;
13181318
pub const PRIO_PGRP: ::c_int = 1;
13191319
pub const PRIO_USER: ::c_int = 2;
13201320

1321+
// utmpx entry types
1322+
pub const EMPTY: ::c_short = 0;
1323+
pub const BOOT_TIME: ::c_short = 1;
1324+
pub const OLD_TIME: ::c_short = 2;
1325+
pub const NEW_TIME: ::c_short = 3;
1326+
pub const USER_PROCESS: ::c_short = 4;
1327+
pub const INIT_PROCESS: ::c_short = 5;
1328+
pub const LOGIN_PROCESS: ::c_short = 6;
1329+
pub const DEAD_PROCESS: ::c_short = 7;
1330+
13211331
pub const LOG_PID: ::c_int = 1 << 12;
13221332
pub const LOG_CONS: ::c_int = 2 << 12;
13231333
pub const LOG_ODELAY: ::c_int = 4 << 12;

0 commit comments

Comments
 (0)