diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-09 01:59:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-09 01:59:17 +0000 |
commit | 0101a56fd61979c3905421e31931071b251042ba (patch) | |
tree | 46f1f67a73095c0c2dadb4bc8ad749b6c8b25a63 /sysdeps/generic/getpt.c | |
parent | 354e6102a11f6ce2e39462c158b039a07f18ac7c (diff) | |
download | glibc-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 'sysdeps/generic/getpt.c')
-rw-r--r-- | sysdeps/generic/getpt.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sysdeps/generic/getpt.c b/sysdeps/generic/getpt.c index 4260d5fd34..2a4511c945 100644 --- a/sysdeps/generic/getpt.c +++ b/sysdeps/generic/getpt.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998 Free Software Foundation, Inc. +/* Copyright (C) 1998, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998. @@ -30,5 +30,16 @@ __getpt () } weak_alias (__getpt, getpt) +/* 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 (getpt) +stub_warning (posix_openpt) #include <stub-tag.h> |