[uClibc-cvs] uClibc/libc/sysdeps/linux/common syscalls.c, 1.127, 1.128 poll.c, 1.1, 1.2
Erik Andersen
andersen at uclibc.org
Wed Jan 21 20:27:28 UTC 2004
Update of /var/cvs/uClibc/libc/sysdeps/linux/common
In directory nail:/tmp/cvs-serv28302
Modified Files:
syscalls.c poll.c
Log Message:
Move poll to its own file, rather than being only half in its own file
Index: poll.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/poll.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- poll.c 22 Oct 2003 09:52:24 -0000 1.1
+++ poll.c 21 Jan 2004 20:27:25 -0000 1.2
@@ -17,6 +17,14 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#ifdef __NR_poll
+
+#include "syscalls.h"
+#include <sys/poll.h>
+_syscall3(int, poll, struct pollfd *, fds,
+ unsigned long int, nfds, int, timeout);
+#else
+
#include <alloca.h>
#include <sys/poll.h>
#include <sys/types.h>
@@ -26,6 +34,8 @@
#include <sys/param.h>
#include <unistd.h>
+/* uClinux 2.0 doesn't have poll, emulate it using select */
+
/* Poll the file descriptors described by the NFDS structures starting at
FDS. If TIMEOUT is nonzero and not -1, allow TIMEOUT milliseconds for
an event to occur; if TIMEOUT is -1, block until an event occurs.
@@ -190,3 +200,5 @@
return ready;
}
+#endif
+
Index: syscalls.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/syscalls.c,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -d -r1.127 -r1.128
--- syscalls.c 21 Jan 2004 20:14:41 -0000 1.127
+++ syscalls.c 21 Jan 2004 20:27:25 -0000 1.128
@@ -1862,16 +1862,7 @@
#endif
//#define __NR_poll 168
-#ifdef L_poll
-#ifdef __NR_poll
-#include <sys/poll.h>
-_syscall3(int, poll, struct pollfd *, fds, unsigned long int, nfds, int,
- timeout);
-#else
-/* uClinux 2.0 doesn't have poll, emulate it using select */
-#include "poll.c"
-#endif
-#endif
+// See poll.c
//#define __NR_nfsservctl 169
//nfsservctl EXTRA nfsservctl i:ipp nfsservctl
More information about the uClibc-cvs
mailing list