lib/posix_openpt.c


Log

Author Commit Date CI Message
Jim Meyering 1602f0af 2012-01-01T10:04:58 maint: update all copyright year number ranges Run "make update-copyright".
Bruno Haible 362dd1d5 2011-10-21T02:45:21 openpty, posix_openpt: Remove code duplication. * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c. * lib/openpty.c: Include <stdlib.h>. (openpty): Use posix_openpt on all platforms except IRIX. * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
Bruno Haible 3b50d196 2011-10-20T17:44:40 posix_openpt: Support for OpenBSD. * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>. (posix_openpt) [OpenBSD]: New code. * lib/grantpt.c: Include <fcntl.h>. (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else. * modules/grantpt (Depends-on): Add fcntl-h.
Jim Meyering ca3be51f 2011-10-19T15:28:46 posix_openpt: remove spurious #endif * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
Bruno Haible 9ce1d174 2011-10-19T11:49:39 posix_openpt: Fix compilation error. * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty. * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code. Mention the openpty module as an alternative.
Eric Blake 94d63c4b 2011-10-17T17:19:41 posix_openpt: new module * modules/posix_openpt: New module. * m4/posix_openpt.m4: New file. * lib/posix_openpt.c: Likewise. * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl. (gl_STDLIB_H_DEFAULTS): Set defaults. * modules/stdlib (Makefile.am): Substitute macros. * lib/stdlib.in.h (posix_openpt): Declare. * MODULES.html.sh (systems lacking POSIX:2008): Document it. * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise. * modules/posix_openpt-tests: New test module. * tests/test-posix_openpt.c: New test.