Skip to content

Commit 25df1e4

Browse files
committed
Added support for LOG_NTP, LOG_SECURITY and LOG_CONSOLE to FreeBSD.
Did this by moving these definitions up from DragonFlyBSD.
1 parent f5b64dd commit 25df1e4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ pub const CLOCK_SECOND: clockid_t = 13;
112112
pub const CLOCK_THREAD_CPUTIME_ID: clockid_t = 14;
113113
pub const CLOCK_PROCESS_CPUTIME_ID: clockid_t = 15;
114114

115-
pub const LOG_NTP: ::c_int = 12 << 3;
116-
pub const LOG_SECURITY: ::c_int = 13 << 3;
117-
pub const LOG_CONSOLE: ::c_int = 14 << 3;
118-
119115
extern {
120116
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)
121117
-> ::c_int;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,9 @@ pub const RTLD_NODELETE: ::c_int = 0x1000;
665665
pub const RTLD_NOLOAD: ::c_int = 0x2000;
666666
pub const RTLD_GLOBAL: ::c_int = 0x100;
667667

668+
pub const LOG_NTP: ::c_int = 12 << 3;
669+
pub const LOG_SECURITY: ::c_int = 13 << 3;
670+
pub const LOG_CONSOLE: ::c_int = 14 << 3;
668671
pub const LOG_NFACILITIES: ::c_int = 24;
669672

670673
#[link(name = "util")]

0 commit comments

Comments
 (0)