[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ignoring EOPNOTSUPP and ENOTTY
From: |
Eric Blake |
Subject: |
Re: ignoring EOPNOTSUPP and ENOTTY |
Date: |
Sun, 30 Aug 2009 18:11:49 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----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 address@hidden
-----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-----