X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_is_fifo.xml;h=0f4f274f6fb22a3519080de9175db85e03476215;hb=18b9ec874ae92e1b9b7daf91eee8b378a314f92a;hp=83c204d0cc4fe58ebd50f96f4b562a51e81fc274;hpb=b514d6c9dcc7c0d7353f975ecfb94f2197c73cf1;p=elogind.git diff --git a/man/sd_is_fifo.xml b/man/sd_is_fifo.xml index 83c204d0c..0f4f274f6 100644 --- a/man/sd_is_fifo.xml +++ b/man/sd_is_fifo.xml @@ -3,22 +3,22 @@ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> sd_is_fifo - elogind + systemd @@ -48,6 +48,7 @@ sd_is_socket sd_is_socket_inet sd_is_socket_unix + sd_is_socket_sockaddr sd_is_mq sd_is_special Check the type of a file descriptor @@ -55,7 +56,7 @@ - #include <elogind/sd-daemon.h> + #include <systemd/sd-daemon.h> int sd_is_fifo @@ -80,6 +81,15 @@ uint16_t port + + int sd_is_socket_sockaddr + int fd + int type + const struct sockaddr *addr + unsigned addr_len + int listening + + int sd_is_socket_unix int fd @@ -117,11 +127,11 @@ whether the specified file descriptor refers to a socket. If the family parameter is not AF_UNSPEC, it is checked whether the socket - is of the specified family (AF_UNIX, AF_INET, - ...). If the type parameter is not 0, it is - checked whether the socket is of the specified type - (SOCK_STREAM, - SOCK_DGRAM, ...). If the + is of the specified family (AF_UNIX, + AF_INET, …). If the type + parameter is not 0, it is checked whether the socket is of the + specified type (SOCK_STREAM, + SOCK_DGRAM, …). If the listening parameter is positive, it is checked whether the socket is in accepting mode, i.e. listen() has been called for it. If @@ -139,6 +149,18 @@ AF_UNSPEC, AF_INET, or AF_INET6. + sd_is_socket_sockaddr() is similar to + sd_is_socket_inet(), but checks if the socket is bound to the + address specified by addr. The + family specified by addr must be + either AF_INET or AF_INET6 and + addr_len must be large enough for that family. If + addr specifies a non-zero port, it is also checked if the + socket is bound to this port. In addition, for IPv6, if addr + specifies non-zero sin6_flowinfo or + sin6_scope_id, it is checked if the socket has the same + values. + sd_is_socket_unix() is similar to sd_is_socket() but optionally checks the AF_UNIX path the socket is bound to, unless @@ -189,11 +211,17 @@ See Also - elogind1, + systemd1, sd-daemon3, sd_listen_fds3, - logind.service5, - elogind.socket5 + systemd.service5, + systemd.socket5, + ip7, + ipv67, + unix7, + fifo7, + mq_overview7, + socket7.