summaryrefslogtreecommitdiff
path: root/src/unix/haiku
diff options
context:
space:
mode:
authorGrayJack <gr41.j4ck@gmail.com>2021-10-17 00:17:24 -0300
committerGrayJack <gr41.j4ck@gmail.com>2021-10-17 00:17:24 -0300
commit9258ae3f35674d9c83021b9b747c9fefcf438f73 (patch)
tree33f363cca013d8490b1c056023554699ce00468e /src/unix/haiku
parent72dc142b9678e35f5cf4b887b5b2d485c0ebebfb (diff)
downloadrust-libc-9258ae3f35674d9c83021b9b747c9fefcf438f73.tar.gz
Haiku: Add utmpx constants
Diffstat (limited to 'src/unix/haiku')
-rw-r--r--src/unix/haiku/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs
index affac629a9..be7ac9cbd7 100644
--- a/src/unix/haiku/mod.rs
+++ b/src/unix/haiku/mod.rs
@@ -1318,6 +1318,16 @@ pub const PRIO_PROCESS: ::c_int = 0;
pub const PRIO_PGRP: ::c_int = 1;
pub const PRIO_USER: ::c_int = 2;
+// utmpx entry types
+pub const EMPTY: ::c_short = 0;
+pub const BOOT_TIME: ::c_short = 1;
+pub const OLD_TIME: ::c_short = 2;
+pub const NEW_TIME: ::c_short = 3;
+pub const USER_PROCESS: ::c_short = 4;
+pub const INIT_PROCESS: ::c_short = 5;
+pub const LOGIN_PROCESS: ::c_short = 6;
+pub const DEAD_PROCESS: ::c_short = 7;
+
pub const LOG_PID: ::c_int = 1 << 12;
pub const LOG_CONS: ::c_int = 2 << 12;
pub const LOG_ODELAY: ::c_int = 4 << 12;