diff options
Diffstat (limited to 'posix/unistd.h')
-rw-r--r-- | posix/unistd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/posix/unistd.h b/posix/unistd.h index 38ca4f0..eda44c9 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -419,6 +419,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, int __buflen)); +#endif /* Return 1 if FD is a valid descriptor associated with a terminal, zero if not. */ |