From ab6341231fb218ca37d1a5ba5bc8d144952954e7 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 28 Nov 2001 00:16:58 +0000 Subject: * libc/include/sys/types.h: Define useconds_t. * libc/include/sys/ulimit.h: Declare ualarm. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/types.h | 4 ++++ newlib/libc/include/sys/unistd.h | 1 + 3 files changed, 10 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index cbef2a174..a314e1322 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2001-11-27 Christopher Faylor + + * libc/include/sys/types.h: Define useconds_t. + * libc/include/sys/ulimit.h: Declare ualarm. + 2001-11-21 Christopher Faylor * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element. diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index e4fcef28a..9c932a62c 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -218,6 +218,10 @@ typedef _TIMER_T_ timer_t; #define __timer_t_defined #endif +#ifdef __CYGWIN__ +typedef long useconds_t; +#endif + #include diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 8ebabe3b4..07037b3b7 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -133,6 +133,7 @@ int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const #if defined(__CYGWIN__) || defined(__rtems__) int _EXFUN(getdtablesize, (void)); int _EXFUN(setdtablesize, (int)); +useconds_t _EXFUN(ualarm, (useconds_t __useconds)); unsigned _EXFUN(usleep, (unsigned int __useconds)); int _EXFUN(ftruncate, (int __fd, off_t __length)); int _EXFUN(truncate, (const char *, off_t __length)); -- cgit v1.2.3