The new tests show that on Cygwin 1.7.9, the functions grantpt() and unlockpt() don't fail with EBADF as they should, when the fd argument is invalid.
test-grantpt.c:34: assertion failed FAIL: test-grantpt.exe test-unlockpt.c:34: assertion failed FAIL: test-unlockpt.exe Bruno -- In memoriam Pierre Goldman <http://en.wikipedia.org/wiki/Pierre_Goldman>