autoconf: split into subdirectories; redirect calls in debug builds
[m6w6/ext-psi] / m4 / posix / sys_select.m4
diff --git a/m4/posix/sys_select.m4 b/m4/posix/sys_select.m4
new file mode 100644 (file)
index 0000000..0390299
--- /dev/null
@@ -0,0 +1,17 @@
+PSI_CHECK_SYS_SELECT() {
+       PSI_CONFIG_POSIX(sys/select, sys/select.h)
+
+       PSI_STRUCT(fd_set, [])
+
+       PSI_CONST(FD_SETSIZE, int)
+
+       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)])
+}