diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-09-27 05:24:26 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-09-27 05:24:26 +0000 |
commit | 2512c847453c24b928c34beed88902fbb6877b7a (patch) | |
tree | 3d327c54c00684b85c435cffa29c5050888c0a69 /libc/unistd | |
parent | e83a36ce9f97ac0f59117b3a62fd2dd8461b1fd5 (diff) |
Update to accomodate the header file changes
Diffstat (limited to 'libc/unistd')
-rw-r--r-- | libc/unistd/sleep.c | 4 | ||||
-rw-r--r-- | libc/unistd/sysconf.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libc/unistd/sleep.c b/libc/unistd/sleep.c index e11770563..b6c410fb5 100644 --- a/libc/unistd/sleep.c +++ b/libc/unistd/sleep.c @@ -4,13 +4,13 @@ #include <sys/types.h> #include <unistd.h> -void usleep(unsigned int usec) +int usleep (__useconds_t usec) { struct timeval tv; tv.tv_sec = usec / 1000000; tv.tv_usec = usec % 1000000; - select(0, 0, 0, 0, &tv); + return(select(0, 0, 0, 0, &tv)); } unsigned int sleep(unsigned int sec) diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index 702046874..92fa42765 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -16,6 +16,7 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define _XOPEN_SOURCE #include <errno.h> #include <limits.h> #include <grp.h> @@ -29,6 +30,9 @@ #include <sys/types.h> #include <regex.h> +extern int getpagesize (void); +extern int getdtablesize (void); + /***********************************************************************/ /* * Manuel Novoa III Jan 2001 @@ -61,7 +65,7 @@ #endif /* _UCLIBC_GENERATE_SYSCONF_ARCH */ /* Get the value of the system variable NAME. */ -long int sysconf(int name) +long int __sysconf(int name) { switch (name) { @@ -889,6 +893,7 @@ long int sysconf(int name) #endif } } +weak_alias(__sysconf, sysconf); #endif /* _UCLIBC_GENERATE_SYSCONF_MAIN */ /***********************************************************************/ |