|
i3
|
#include <sys/types.h>#include <sys/stat.h>#include <sys/socket.h>#include <sys/un.h>#include <sys/fcntl.h>#include <netinet/in.h>#include <stdlib.h>#include <errno.h>#include <unistd.h>#include <string.h>#include <stdarg.h>#include <stdio.h>#include <stddef.h>#include "sd-daemon.h"
Go to the source code of this file.
Data Structures | |
| union | sockaddr_union |
Macros | |
| #define | _GNU_SOURCE |
Functions | |
| int | sd_listen_fds (int unset_environment) |
| int | sd_is_fifo (int fd, const char *path) |
| static int | sd_is_socket_internal (int fd, int type, int listening) |
| int | sd_is_socket (int fd, int family, int type, int listening) |
| int | sd_is_socket_inet (int fd, int family, int type, int listening, uint16_t port) |
| int | sd_is_socket_unix (int fd, int type, int listening, const char *path, size_t length) |
| int | sd_notify (int unset_environment, const char *state) |
| int | sd_notifyf (int unset_environment, const char *format,...) |
| int | sd_booted (void) |
| #define _GNU_SOURCE |
Definition at line 28 of file sd-daemon.c.
| int sd_booted | ( | void | ) |
Definition at line 413 of file sd-daemon.c.
| int sd_is_fifo | ( | int | fd, |
| const char * | path | ||
| ) |
Definition at line 127 of file sd-daemon.c.
| int sd_is_socket | ( | int | fd, |
| int | family, | ||
| int | type, | ||
| int | listening | ||
| ) |
Definition at line 209 of file sd-daemon.c.
References sockaddr_union::sa, and sd_is_socket_internal().

| int sd_is_socket_inet | ( | int | fd, |
| int | family, | ||
| int | type, | ||
| int | listening, | ||
| uint16_t | port | ||
| ) |
Definition at line 237 of file sd-daemon.c.
References sockaddr_union::in4, sockaddr_union::in6, sockaddr_union::sa, and sd_is_socket_internal().

|
static |
Definition at line 158 of file sd-daemon.c.
Referenced by sd_is_socket(), sd_is_socket_inet(), and sd_is_socket_unix().
| int sd_is_socket_unix | ( | int | fd, |
| int | type, | ||
| int | listening, | ||
| const char * | path, | ||
| size_t | length | ||
| ) |
Definition at line 282 of file sd-daemon.c.
References sockaddr_union::sa, sd_is_socket_internal(), and sockaddr_union::un.

| int sd_listen_fds | ( | int | unset_environment | ) |
| int sd_notify | ( | int | unset_environment, |
| const char * | state | ||
| ) |
Definition at line 323 of file sd-daemon.c.
References sockaddr_union::sa, and sockaddr_union::un.
Referenced by sd_notifyf().
| int sd_notifyf | ( | int | unset_environment, |
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 391 of file sd-daemon.c.
References sd_notify().

1.8.9.1