From 10930e443c60b5c31eee10b8bc7bba15b82aefeb Mon Sep 17 00:00:00 2001 From: jjohnstn Date: Tue, 7 Dec 2004 18:54:28 +0000 Subject: [PATCH] 2004-12-07 Jeff Johnston * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate, and usleep. --- newlib/ChangeLog | 5 +++++ newlib/libc/sys/linux/sys/unistd.h | 9 +++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index de2045a1cb..91e1fe2432 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2004-12-07 Jeff Johnston + + * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate, + and usleep. + 2004-12-03 Jeff Johnston * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any diff --git a/newlib/libc/sys/linux/sys/unistd.h b/newlib/libc/sys/linux/sys/unistd.h index dd3f0f7ea3..e720d6b721 100644 --- a/newlib/libc/sys/linux/sys/unistd.h +++ b/newlib/libc/sys/linux/sys/unistd.h @@ -29,9 +29,6 @@ char _EXFUN(*ctermid, (char *__s )); char _EXFUN(*cuserid, (char *__s )); int _EXFUN(dup, (int __fildes )); int _EXFUN(dup2, (int __fildes, int __fildes2 )); -#if defined(__CYGWIN__) -void _EXFUN(endusershell, (void)); -#endif int _EXFUN(execl, (const char *__path, const char *, ... )); int _EXFUN(execle, (const char *__path, const char *, ... )); int _EXFUN(execlp, (const char *__file, const char *, ... )); @@ -44,6 +41,7 @@ int _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group )); pid_t _EXFUN(fork, (void )); long _EXFUN(fpathconf, (int __fd, int __name )); int _EXFUN(fsync, (int __fd)); +int _EXFUN(ftruncate, (int __fd, off_t __length)); char _EXFUN(*getcwd, (char *__buf, size_t __size )); int _EXFUN(getdomainname ,(char *__name, size_t __len)); gid_t _EXFUN(getegid, (void )); @@ -70,9 +68,6 @@ int _EXFUN(nice, (int __nice_value )); off_t _EXFUN(lseek, (int __fildes, off_t __offset, int __whence )); long _EXFUN(pathconf, (const char *__path, int __name )); int _EXFUN(pause, (void )); -#ifdef __CYGWIN__ -int _EXFUN(pthread_atfork, (void (*)(void), void (*)(void), void (*)(void))); -#endif int _EXFUN(pipe, (int __fildes[2] )); ssize_t _EXFUN(pread, (int __fd, void *__buf, size_t __nbytes, off_t __offset)); ssize_t _EXFUN(pwrite, (int __fd, const void *__buf, size_t __nbytes, off_t __offset)); @@ -91,9 +86,11 @@ void _EXFUN(swab, (const void *, void *, ssize_t)); long _EXFUN(sysconf, (int __name )); pid_t _EXFUN(tcgetpgrp, (int __fildes )); int _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id )); +int _EXFUN(truncate, (const char *, off_t __length)); char * _EXFUN(ttyname, (int __fildes )); int _EXFUN(ttyname_r, (int __fildes, char *__buf, size_t __len)); int _EXFUN(unlink, (const char *__path )); +int _EXFUN(usleep, (__useconds_t __useconds)); int _EXFUN(vhangup, (void )); _READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte )); -- 2.11.0