X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=common.h;h=fb70b7562dc04831330ff74dd4c47f721d0e6a6d;hb=75e665838fab6bd7f579d8f2802b60435af1c783;hp=daf7d03a193ecf525badc227e9ba8940aa9a1aef;hpb=5583c0d0fb57a40dd1b35d9556877ed6848192ac;p=apps%2Fpfixtools.git diff --git a/common.h b/common.h index daf7d03..fb70b75 100644 --- a/common.h +++ b/common.h @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -73,8 +74,11 @@ extern sig_atomic_t sighup; void common_sighandler(int sig); +int tcp_bind(const struct sockaddr *addr, socklen_t len); +int tcp_listen(const struct sockaddr *addr, socklen_t len); int tcp_listen_nonblock(const struct sockaddr *addr, socklen_t len); int accept_nonblock(int fd); +int xwrite(int fd, const char *s, size_t l); int daemon_detach(void); int drop_privileges(const char *user, const char *group);