diff options
Diffstat (limited to 'posix/unistd.h')
-rw-r--r-- | posix/unistd.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/posix/unistd.h b/posix/unistd.h index cfa53c7..5c8d1b7 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -552,12 +552,11 @@ extern __pid_t vfork __P ((void)); /* Return the pathname of the terminal FD is open on, or NULL on errors. The returned storage is good only until the next call to this function. */ extern char *ttyname __P ((int __fd)); -#ifdef __USE_REENTRANT + /* Store at most BUFLEN characters of the pathname of the terminal FD is open on in BUF. Return 0 on success, -1 otherwise. */ extern int __ttyname_r __P ((int __fd, char *__buf, size_t __buflen)); extern int ttyname_r __P ((int __fd, char *__buf, size_t __buflen)); -#endif /* Return 1 if FD is a valid descriptor associated with a terminal, zero if not. */ |