2011-10-20 Bruno Haible <bruno@clisp.org>
+ 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.
+
+2011-10-20 Bruno Haible <bruno@clisp.org>
+
unlockpt: Detect invalid argument.
* lib/unlockpt.c: Include <fcntl.h>.
(unlockpt): Check whether fd is valid, using fcntl().