X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_is_fifo.xml;h=0f4f274f6fb22a3519080de9175db85e03476215;hb=91d60274701a12d2bbcd2b8e40f8b8abe00be0e7;hp=627cb87aafb3b962f612f238f4b4dbf1d5efd8ce;hpb=798d3a524ea57aaf40cb53858aaa45ec702f012d;p=elogind.git diff --git a/man/sd_is_fifo.xml b/man/sd_is_fifo.xml index 627cb87aa..0f4f274f6 100644 --- a/man/sd_is_fifo.xml +++ b/man/sd_is_fifo.xml @@ -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 @@ -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 @@ -178,7 +200,7 @@ Notes - + Internally, these function use a combination of fstat() and @@ -193,7 +215,13 @@ sd-daemon3, sd_listen_fds3, systemd.service5, - systemd.socket5 + systemd.socket5, + ip7, + ipv67, + unix7, + fifo7, + mq_overview7, + socket7.