aboutsummaryrefslogtreecommitdiff
path: root/stdlib/stdlib.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-09 01:59:17 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-09 01:59:17 +0000
commit0101a56fd61979c3905421e31931071b251042ba (patch)
tree46f1f67a73095c0c2dadb4bc8ad749b6c8b25a63 /stdlib/stdlib.h
parent354e6102a11f6ce2e39462c158b039a07f18ac7c (diff)
downloadglibc-0101a56fd61979c3905421e31931071b251042ba.tar
glibc-0101a56fd61979c3905421e31931071b251042ba.tar.gz
glibc-0101a56fd61979c3905421e31931071b251042ba.tar.bz2
glibc-0101a56fd61979c3905421e31931071b251042ba.zip
Update.
* include/stdlib.h: Add __posix_openpt declaration. * stdlib/stdlib.h: Add posix_openpt declaration. * login/Versions: Add posix_openpt for GLIBC_2.2.1. * sysdeps/generic/getpt.c: Define posix_openpt. * sysdeps/unix/bsd/getpt.c: Likewise. * sysdeps/unix/sysv/linux/getpt.c: Likewise.
Diffstat (limited to 'stdlib/stdlib.h')
-rw-r--r--stdlib/stdlib.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index a9577e399d..de127348bc 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -812,12 +812,19 @@ extern int getsubopt (char **__restrict __optionp,
#ifdef __USE_XOPEN
-
/* Setup DES tables according KEY. */
extern void setkey (__const char *__key) __THROW;
+#endif
+
/* X/Open pseudo terminal handling. */
+#ifdef __USE_XOPEN2K
+/* Return a master pseudo-terminal handle. */
+extern int posix_openpt (int __oflag) __THROW;
+#endif
+
+#ifdef __USE_XOPEN
/* The next four functions all take a master pseudo-tty fd and
perform an operation on the associated slave: */