diff options
author | Roland McGrath <roland@gnu.org> | 1996-01-19 18:43:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-01-19 18:43:03 +0000 |
commit | 522548fb473c5855e399596e838932963e03695f (patch) | |
tree | 5ebf19687af2b28a66c5c1225ab88195ea000722 /sysdeps/unix/bsd/poll.c | |
parent | 97aa195cf78ad62825df0e381f20df1ea227ec18 (diff) | |
download | glibc-522548fb473c5855e399596e838932963e03695f.tar.gz glibc-522548fb473c5855e399596e838932963e03695f.tar.xz glibc-522548fb473c5855e399596e838932963e03695f.zip |
Fri Jan 19 13:28:59 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv. They will be overridden with syscalls if extant by unix/syscalls.list. Fri Jan 19 13:28:59 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu> * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv. They will be overridden with syscalls if extant by unix/syscalls.list. * Makeconfig (+gccwarn): Add -Wstrict-prototypes. * stdio-common/printf_fp.c (__printf_fp): Define with prototype. * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
Diffstat (limited to 'sysdeps/unix/bsd/poll.c')
-rw-r--r-- | sysdeps/unix/bsd/poll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/bsd/poll.c b/sysdeps/unix/bsd/poll.c index 4797ee04a1..4cccfe3b35 100644 --- a/sysdeps/unix/bsd/poll.c +++ b/sysdeps/unix/bsd/poll.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1996 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -58,7 +58,7 @@ poll (fds, nfds, timeout) } tv.tv_sec = timeout / 1000; - tv.tv_usec = (timeout + 999) / 1000; + tv.tv_usec = (timeout % 1000) * 1000; ready = __select (maxfd + 1, &rset, &wset, &xset, timeout == -1 ? NULL : &tv); |