about summary refs log tree commit diff
path: root/posix/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'posix/unistd.h')
-rw-r--r--posix/unistd.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/posix/unistd.h b/posix/unistd.h
index 6fdfa0d937..1e28ba26a0 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -699,18 +699,12 @@ extern __pid_t vfork (void) __THROW;
 
 
 /* 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.
-
-   This function is a possible cancellation points and therefore not
-   marked with __THROW.  */
-extern char *ttyname (int __fd);
+   The returned storage is good only until the next call to this function.  */
+extern char *ttyname (int __fd) __THROW;
 
 /* Store at most BUFLEN characters of the pathname of the terminal FD is
-   open on in BUF.  Return 0 on success, otherwise an error number.
-
-   This function is a possible cancellation points and therefore not
-   marked with __THROW.  */
-extern int ttyname_r (int __fd, char *__buf, size_t __buflen);
+   open on in BUF.  Return 0 on success, otherwise an error number.  */
+extern int ttyname_r (int __fd, char *__buf, size_t __buflen) __THROW;
 
 /* Return 1 if FD is a valid descriptor associated
    with a terminal, zero if not.  */