| author | |
| committer | |
| log | 6c4924408b1957d493568271a0158b1190574dd0 |
| tree | 322f290a9679c9bf0534604369d8d2f97ecbe202 |
| parent | 1640c357f42e0fc18d88a02995c25094063fef5e |
2 files changed, 24 insertions(+), 0 deletions(-)
lib/std/c.zig+5| ... | @@ -353,6 +353,11 @@ pub extern "c" fn setrlimit(resource: rlimit_resource, rlim: *const rlimit) c_in | ... | @@ -353,6 +353,11 @@ pub extern "c" fn setrlimit(resource: rlimit_resource, rlim: *const rlimit) c_in |
| 353 | 353 | ||
| 354 | pub extern "c" fn fmemopen(noalias buf: ?*c_void, size: usize, noalias mode: [*:0]const u8) ?*FILE; | 354 | pub extern "c" fn fmemopen(noalias buf: ?*c_void, size: usize, noalias mode: [*:0]const u8) ?*FILE; |
| 355 | 355 | ||
| 356 | pub extern "c" fn syslog(priority: c_int, message: [*:0]const u8, ...) void; | ||
| 357 | pub extern "c" fn openlog(ident: [*:0]const u8, logopt: c_int, facility: c_int) void; | ||
| 358 | pub extern "c" fn closelog() void; | ||
| 359 | pub extern "c" fn setlogmask(maskpri: c_int) c_int; | ||
| 360 | |||
| 356 | pub const max_align_t = if (std.Target.current.abi == .msvc) | 361 | pub const max_align_t = if (std.Target.current.abi == .msvc) |
| 357 | f64 | 362 | f64 |
| 358 | else if (std.Target.current.isDarwin()) | 363 | else if (std.Target.current.isDarwin()) |
lib/std/os/bits.zig+19| ... | @@ -34,3 +34,22 @@ pub const iovec_const = extern struct { | ... | @@ -34,3 +34,22 @@ pub const iovec_const = extern struct { |
| 34 | iov_base: [*]const u8, | 34 | iov_base: [*]const u8, |
| 35 | iov_len: usize, | 35 | iov_len: usize, |
| 36 | }; | 36 | }; |
| 37 | |||
| 38 | // syslog | ||
| 39 | |||
| 40 | /// system is unusable | ||
| 41 | pub const LOG_EMERG = 0; | ||
| 42 | /// action must be taken immediately | ||
| 43 | pub const LOG_ALERT = 1; | ||
| 44 | /// critical conditions | ||
| 45 | pub const LOG_CRIT = 2; | ||
| 46 | /// error conditions | ||
| 47 | pub const LOG_ERR = 3; | ||
| 48 | /// warning conditions | ||
| 49 | pub const LOG_WARNING = 4; | ||
| 50 | /// normal but significant condition | ||
| 51 | pub const LOG_NOTICE = 5; | ||
| 52 | /// informational | ||
| 53 | pub const LOG_INFO = 6; | ||
| 54 | /// debug-level messages | ||
| 55 | pub const LOG_DEBUG = 7; |