]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Complete transition to pollts(2)
authorRoy Marples <roy@marples.name>
Mon, 18 Feb 2013 21:35:24 +0000 (21:35 +0000)
committerRoy Marples <roy@marples.name>
Mon, 18 Feb 2013 21:35:24 +0000 (21:35 +0000)
compat/pollts.c [moved from compat/ppoll.c with 91% similarity]
compat/pollts.h [moved from compat/ppoll.h with 95% similarity]
compat/pselect.c
configure

similarity index 91%
rename from compat/ppoll.c
rename to compat/pollts.c
index fa338ba1fe0475af714723490e8dcb6f2d72e669..65ea45b1ee7fa1b60a01585b04898b2e9cd0ea46 100644 (file)
 
 #include "ppoll.h"
 
-#warning "This ppoll(2) implementation is not entirely race condition safe."
-#warning "Only operating system support for ppoll(2) can correct this."
+#warning "This pollts(2) implementation is not entirely race condition safe."
+#warning "Only operating system support for pollts(2) can correct this."
 
 int
-ppoll(struct pollfd *restrict fds, nfds_t nfds,
+pollts(struct pollfd *restrict fds, nfds_t nfds,
     const struct timespec *restrict ts, const sigset_t *restrict sigmask)
 {
        int r, timeout;
similarity index 95%
rename from compat/ppoll.h
rename to compat/pollts.h
index 45911a7159e28903dc08c65e97c5342f07e90a43..18a3cf1e6de448539e835fdcba8c95cf7bc8ddcf 100644 (file)
@@ -33,7 +33,7 @@
 #include <time.h>
 
 int
-ppoll(struct pollfd *restrict, nfds_t, const struct timespec *restrict,
+pollts(struct pollfd *restrict, nfds_t, const struct timespec *restrict,
     const sigset_t *restrict);
 
 #endif
index 5c5197ed4177fafad64f83666ebb4b65483a6f2d..8c6d8ed16d0876cef305ebd04536d8e837cc8256 100644 (file)
 #include <signal.h>
 #include <unistd.h>
 
-#include "ppoll.h"
+#include "pollts.h"
 
 int
-ppoll(struct pollfd *restrict fds, nfds_t nfds,
+pollts(struct pollfd *restrict fds, nfds_t nfds,
     const struct timespec *restrict ts, const sigset_t *restrict sigmask)
 {
        fd_set read_fds;
index 9180c423b13cafd4fed752a6b9524a27c1914d14..b868c44ec861f8570ca610a79b3f4bf64ebaeb91 100755 (executable)
--- a/configure
+++ b/configure
@@ -563,7 +563,6 @@ EOF
                POLLTS=no
                echo "no"
        fi
-       echo "$POLLTS"
        rm -f _ppoll.c _ppoll
 fi
 if [ "$POLLTS" = no ]; then
@@ -589,16 +588,16 @@ case "$POLLTS" in
 yes)
        ;;
 ppoll)
-       echo "#include \"compat/ppoll.h\"" >>$CONFIG_H
+       echo "#include \"compat/pollts.h\"" >>$CONFIG_H
        echo "#define pollts ppoll" >>$CONFIG_H
        ;;
 pselect)
        echo "COMPAT_SRCS+=     compat/pselect.c" >>$CONFIG_MK
-       echo "#include \"compat/ppoll.h\"" >>$CONFIG_H
+       echo "#include \"compat/pollts.h\"" >>$CONFIG_H
        ;;
 *)
-       echo "COMPAT_SRCS+=     compat/ppoll.c" >>$CONFIG_MK
-       echo "#include \"compat/ppoll.h\"" >>$CONFIG_H
+       echo "COMPAT_SRCS+=     compat/pollts.c" >>$CONFIG_MK
+       echo "#include \"compat/pollts.h\"" >>$CONFIG_H
        ;;
 esac