Hash :
78232883
Author :
Date :
2011-11-07T15:26:08
ptsname_r: new module For now, this replacement focuses solely on compilation compatibility, and assumes that isatty() and ttyname_r() work on a master side pty; if this assumption fails, or if thread-safety is also required, then a later patch can follow the lead of strerror_r.c in wrapping the system ptsname() with a lock. * modules/ptsname_r: New module. * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file. * lib/ptsname.c (__ptsname_r): Split... * lib/ptsname_r.c: ...into new file. * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl. (gl_STDLIB_H_DEFAULTS): Set witness defaults. * modules/stdlib (Makefile.am): Substitute witnesses. * lib/stdlib.in.h (ptsname_r): Declare it. * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it. * MODULES.html.sh (Misc): Likewise. * modules/ptsname (Depends-on): Alter dependency. * doc/posix-functions/ptsname.texi (ptsname): Mention new module. Signed-off-by: Eric Blake <eblake@redhat.com>
Description:
ptsname() function: Determine name of the slave side of a pseudo-terminal.
Files:
lib/ptsname.c
m4/ptsname.m4
Depends-on:
stdlib
extensions
ptsname_r [test $HAVE_PTSNAME = 0]
configure.ac:
gl_FUNC_PTSNAME
if test $HAVE_PTSNAME = 0; then
AC_LIBOBJ([ptsname])
gl_PREREQ_PTSNAME
fi
gl_STDLIB_MODULE_INDICATOR([ptsname])
Makefile.am:
Include:
<stdlib.h>
License:
LGPLv2+
Maintainer:
Bruno Haible