From 522548fb473c5855e399596e838932963e03695f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 19 Jan 1996 18:43:03 +0000 Subject: Fri Jan 19 13:28:59 1996 Roland McGrath * 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 * 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. --- sysdeps/unix/bsd/poll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/bsd') diff --git a/sysdeps/unix/bsd/poll.c b/sysdeps/unix/bsd/poll.c index 4797ee0..4cccfe3 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); -- cgit v1.1