diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-20 11:09:36 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-20 11:09:36 +0000 |
commit | 1c17deea9d70f886aac5a8cab425c7a4f241813d (patch) | |
tree | 08d8215b613eb58260c1e187d1388b7d343b477a /newlib | |
parent | 1b557b4333fab9dae7bbe9c28798731bc6558dec (diff) | |
download | newlib-1c17deea9d70f886aac5a8cab425c7a4f241813d.zip newlib-1c17deea9d70f886aac5a8cab425c7a4f241813d.tar.gz newlib-1c17deea9d70f886aac5a8cab425c7a4f241813d.tar.bz2 |
* libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 6ba5a9a..e23bf28 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2004-04-20 Corinna Vinschen <corinna@vinschen.de> + + * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin. + 2004-04-10 Corinna Vinschen <corinna@vinschen.de> * libc/include/sys/unistd.h (sync): Define void on Cygwin according diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 4a32883..9f2f2a5 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -146,6 +146,9 @@ long _EXFUN(sysconf, (int __name )); pid_t _EXFUN(tcgetpgrp, (int __fildes )); int _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id )); char _EXFUN(*ttyname, (int __fildes )); +#if defined(__CYGWIN__) +int _EXFUN(ttyname_r, (int, char * size_t)); +#endif int _EXFUN(unlink, (const char *__path )); int _EXFUN(vhangup, (void )); _READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte )); |