1use super::{c_char, c_int, c_uint, pid_t, size_t};
2
3extern "C" {
4 pub fn sd_listen_fds(unset_environment: c_int) -> c_int;
5 pub fn sd_is_fifo(fd: c_int, path: *const c_char) -> c_int;
6 pub fn sd_is_special(fd: c_int, path: *const c_char) -> c_int;
7 pub fn sd_is_socket(fd: c_int, family: c_int, sock_type: c_int, listening: c_int) -> c_int;
8 pub fn sd_is_socket_inet(
9 fd: c_int,
10 family: c_int,
11 sock_type: c_int,
12 listening: c_int,
13 port: u16,
14 ) -> c_int;
15 pub fn sd_is_socket_unix(
16 fd: c_int,
17 sock_type: c_int,
18 listening: c_int,
19 path: *const c_char,
20 length: size_t,
21 ) -> c_int;
22 pub fn sd_is_mq(fd: c_int, path: *const c_char) -> c_int;
23 pub fn sd_notify(unset_environment: c_int, state: *const c_char) -> c_int;
24 pub fn sd_pid_notify(pid: pid_t, unset_environment: c_int, state: *const c_char) -> c_int;
26 pub fn sd_pid_notify_with_fds(
27 pid: pid_t,
28 unset_environment: c_int,
29 state: *const c_char,
30 fds: *const c_int,
31 n_fds: c_uint,
32 ) -> c_int;
33 pub fn sd_booted() -> c_int;
34 pub fn sd_watchdog_enabled(unset_environment: c_int, usec: *mut u64) -> c_int;
35}