From 0101a56fd61979c3905421e31931071b251042ba Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 9 Jan 2001 01:59:17 +0000 Subject: 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. --- stdlib/stdlib.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'stdlib/stdlib.h') 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: */ -- cgit v1.2.3