diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-12-07 18:54:28 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-12-07 18:54:28 +0000 |
commit | 465eab2eb41c08ebd5921800d568410653042e5c (patch) | |
tree | e87b00262670fdb0d4ca4b6515cd2ee82f2ebcc1 | |
parent | 91ce86e7730e0c55f9d515b759434571e71a5311 (diff) | |
download | cygnal-465eab2eb41c08ebd5921800d568410653042e5c.tar.gz cygnal-465eab2eb41c08ebd5921800d568410653042e5c.tar.bz2 cygnal-465eab2eb41c08ebd5921800d568410653042e5c.zip |
2004-12-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
and usleep.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/sys/linux/sys/unistd.h | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index de2045a1c..91e1fe243 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2004-12-07 Jeff Johnston <jjohnstn@redhat.com> + + * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate, + and usleep. + 2004-12-03 Jeff Johnston <jjohnstn@redhat.com> * 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 dd3f0f7ea..e720d6b72 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 )); |