aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/sys/types.h6
-rw-r--r--posix/unistd.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/posix/sys/types.h b/posix/sys/types.h
index 8178303c66..207ae8de8b 100644
--- a/posix/sys/types.h
+++ b/posix/sys/types.h
@@ -89,6 +89,12 @@ typedef int register_t __attribute__ ((__mode__ (word)));
#endif
+#ifdef __USE_SVID
+/* Data type for key value used in System V IPC functions. */
+typedef long int key_t;
+#endif
+
+
#ifdef __USE_BSD
#define FD_SETSIZE __FD_SETSIZE
diff --git a/posix/unistd.h b/posix/unistd.h
index 38ca4f0b4b..eda44c96be 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. */