Skip to content

Commit cc95952

Browse files
committed
linux/gnu: add utmp(5) default paths
This adds `utmp(5)` default paths on Linux with GNU libc. Ref: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/paths.h;h=1342ab3a96ab12065311b718e57e7235e07587f8;hb=HEAD
1 parent 7e2f12f commit cc95952

File tree

1 file changed

+4
-0
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+4
-0
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ pub const O_ACCMODE: ::c_int = 3;
499499
pub const ST_RELATIME: ::c_ulong = 4096;
500500
pub const NI_MAXHOST: ::socklen_t = 1025;
501501

502+
// paths.h
503+
pub const _PATH_UTMP: &'static [u8; 14usize] = b"/var/run/utmp\0";
504+
pub const _PATH_WTMP: &'static [u8; 14usize] = b"/var/log/wtmp\0";
505+
502506
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
503507
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
504508
pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;

0 commit comments

Comments
 (0)