gpgme 0.4.2 setting errno to EOPNOTSUPP
Ralf Doering
rdoering@netsys-it.de
Wed Aug 13 17:12:02 2003
Werner Koch wrote:
> On Wed, 13 Aug 2003 10:51:26 +0200, Ralf Doering said:
>
>
>> The question here seems to be: Can we assume EOPNOTSUPP do be more
>> or less platform-independent or not? In other words: which
>> standard (POSIX?) defines the existense of this constant?
>
>
> Yep. GNU is a POSIX shop.
EOPNOTSUPP again ;)
I started a similar discussion on one of the mingw mailinglists before
asking here and now understand, why there were some hints to define
EOPNOTSUPP to be WSAEOPNOTSUPP, an error condition coming from winsock.
Quoting a reply from Marshall Keith:
....
Note that the Single UNIX Specification defines EOPNOTSUPP, but restricts
its use to operations on sockets. ENOTSUP is also defined, less
restrictively,
but MinGW (and, presumably msvcrt.dll) doesn't have that either.
...
I haven't this spec at hand, but read similar things while googeling
around. Maybe EOPNOTSUPP is not the right error code to be used in gpgme
in the gpgme_data_* functions?
Ralf