X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fsys_select.m4;h=8bd7e88956be4577a919b877d756cd2f3fa5a47f;hp=7ae010e379a5491bb272919c4055442a4a17b0a6;hb=7e4b0ccdd2123647b6fff8065c0abc61be3fb44d;hpb=4b5ceb304b924c50eaf8263ad394493ff806fed4 diff --git a/m4/sys_select.m4 b/m4/sys_select.m4 index 7ae010e..8bd7e88 100644 --- a/m4/sys_select.m4 +++ b/m4/sys_select.m4 @@ -1,17 +1,17 @@ -AC_DEFUN(PSI_CHECK_SYS_SELECT, [ +PSI_CHECK_SYS_SELECT() { AC_CHECK_HEADERS(sys/select.h) - + PSI_STRUCT(fd_set, []) - + PSI_CONST(FD_SETSIZE, int) - - PSI_MACRO(void FD_CLEAR, [(int fd, fd_set *s)]) - PSI_MACRO(void FD_COPY, [(fd_set *s1, fd_set *s2)]) - PSI_MACRO(void FD_CLR, [(int fd, fd_set *s)]) - PSI_MACRO(void FD_SET, [(int fd, fd_set *s)]) - PSI_MACRO(int FD_ISSET, [(int fd, fd_set *s)]) - PSI_MACRO(void FD_ZERO, [(fd_set *s)]) - + + PSI_DECL(void FD_CLEAR, [(int fd, fd_set *s)]) + PSI_DECL(void FD_COPY, [(fd_set *s1, fd_set *s2)]) + PSI_DECL(void FD_CLR, [(int fd, fd_set *s)]) + PSI_DECL(void FD_SET, [(int fd, fd_set *s)]) + PSI_DECL(int FD_ISSET, [(int fd, fd_set *s)]) + PSI_DECL(void FD_ZERO, [(fd_set *s)]) + PSI_DECL(int select, [(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)]) dnl PSI_DECL(int pselect, [(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout, sigset_t *sigmask)]) -]) \ No newline at end of file +}