-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to cygwin at sipxx.com on 8/21/2009 3:56 PM: > It does reject the argument if the upper bound is reached. On the lower > end, the linux man page does not specify that negative numbers are not > allowed as arguments.
But POSIX does (and Linux at least obeys this part of POSIX, whether or not its man page says so): http://www.opengroup.org/onlinepubs/9699919799/functions/fcntl.html [EINVAL] The cmd argument is invalid, or the cmd argument is F_DUPFD or F_DUPFD_CLOEXEC and arg is negative or greater than or equal to {OPEN_MAX} - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqPGdwACgkQ84KuGfSFAYBy2gCbBXVRtJzovBs4QFiBq9/SodMR 6jEAoLAhkJOh9M1Uj/oZd9XINog+n0UT =KvA4 -----END PGP SIGNATURE----- -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple