#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;
#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
#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;
POLLTS=no
echo "no"
fi
- echo "$POLLTS"
rm -f _ppoll.c _ppoll
fi
if [ "$POLLTS" = no ]; then
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