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 |
Defines | |
#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 418 of file sd-daemon.c.
int sd_is_fifo | ( | int | fd, |
const char * | path | ||
) |
Definition at line 128 of file sd-daemon.c.
int sd_is_socket | ( | int | fd, |
int | family, | ||
int | type, | ||
int | listening | ||
) |
Definition at line 212 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 240 of file sd-daemon.c.
References sockaddr_union::in4, sockaddr_union::in6, sockaddr_union::sa, and sd_is_socket_internal().
static int sd_is_socket_internal | ( | int | fd, |
int | type, | ||
int | listening | ||
) | [static] |
Definition at line 161 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 285 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 328 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 396 of file sd-daemon.c.
References sd_notify().