From 78232883c8c01a22307bb38793928f2b9a5a6159 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 7 Nov 2011 15:26:08 -0700 Subject: 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 --- MODULES.html.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'MODULES.html.sh') diff --git a/MODULES.html.sh b/MODULES.html.sh index 34ca5cc3d7..bc8a1a6a68 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -3447,6 +3447,7 @@ func_all_modules () func_module physmem func_module posixver func_module progname + func_module ptsname_r func_module pty func_module quotearg func_module quote -- cgit v1.2.1