unlockpt: Detect invalid argument.
authorBruno Haible <bruno@clisp.org>
Fri, 21 Oct 2011 00:22:04 +0000 (02:22 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Oct 2011 00:25:15 +0000 (02:25 +0200)
commit90bc75734efe584bf3dcdc65e5689123ea78ce11
tree3ca97820e5df823fc41fa9bb8e3b10efd477b7c1
parent2bc94c03c8199cd0ddab7e3e04d1a9d598dc4eff
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.
ChangeLog
lib/unlockpt.c
modules/unlockpt