-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Bruno Haible on 8/30/2009 6:03 PM: >> case EOPNOTSUPP: /* Operation not supported */ >> case ENOTSUP: /* Operation not supported */
POSIX states that ENOTSUP==EOPNOTSUPP is permissible, so you can't do this with a case statement. > > - My policy is to ignore only errors that are known to indicate normal > situations. If a particular errno has not been seen in the wild so far, > don't ignore it. In general, and when in doubt, report errors. I agree - it's not worth ignoring an error unless we have a use case in the wild of someone that generates it where we can work around it; and the set of errors to ignore is highly context-dependent, so a generic function will never be useful to me. - -- 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/ iEYEARECAAYFAkqbFT8ACgkQ84KuGfSFAYCB9QCfbYuzVqpC9zd/YHgRxxaUdZwJ 2joAoKjciJ9mVKkZlAC3ggdv/9SK0XII =djzP -----END PGP SIGNATURE-----