view modules/unlockpt @ 15979:69cc1dcd696b

unlockpt: Detect invalid argument. * lib/unlockpt.c: Include <fcntl.h>. (unlockpt): Check whether fd is valid, using fcntl(). * modules/unlockpt (Depends-on): Add fcntl-h.
author Bruno Haible <bruno@clisp.org>
date Fri, 21 Oct 2011 02:22:04 +0200
parents d28ebf7351e2
children
line wrap: on
line source

Description:
unlockpt() function: Unlock the slave side of a pseudo-terminal from its master
side.

Files:
lib/unlockpt.c
m4/unlockpt.m4

Depends-on:
stdlib
extensions
fcntl-h         [test $HAVE_UNLOCKPT = 0]
ptsname         [test $HAVE_UNLOCKPT = 0]

configure.ac:
gl_FUNC_UNLOCKPT
if test $HAVE_UNLOCKPT = 0; then
  AC_LIBOBJ([unlockpt])
  gl_PREREQ_UNLOCKPT
fi
gl_STDLIB_MODULE_INDICATOR([unlockpt])

Makefile.am:

Include:
<stdlib.h>

License:
LGPLv2+

Maintainer:
Bruno Haible