about summary refs log tree commit diff
path: root/sysdeps/unix/bsd
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 /sysdeps/unix/bsd
parent354e6102a11f6ce2e39462c158b039a07f18ac7c (diff)
downloadglibc-0101a56fd61979c3905421e31931071b251042ba.tar.gz
glibc-0101a56fd61979c3905421e31931071b251042ba.tar.xz
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 'sysdeps/unix/bsd')
-rw-r--r--sysdeps/unix/bsd/getpt.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sysdeps/unix/bsd/getpt.c b/sysdeps/unix/bsd/getpt.c
index 42615ba159..6bd1804942 100644
--- a/sysdeps/unix/bsd/getpt.c
+++ b/sysdeps/unix/bsd/getpt.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
 
@@ -77,3 +77,18 @@ __getpt (void)
 
 #undef __getpt
 weak_alias (__getpt, getpt)
+
+#ifndef HAVE_POSIX_OPENPT
+/* We cannot define posix_openpt in general for BSD systems.  */
+int
+__posix_openpt (oflag)
+     int oflag;
+{
+  __set_errno (ENOSYS);
+  return -1;
+}
+weak_alias (__posix_openpt, posix_openpt)
+
+stub_warning (posix_openpt)
+# include <stub-tag.h>
+#endif