mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user