[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ENODATA
From: |
Jim Meyering |
Subject: |
Re: ENODATA |
Date: |
Tue, 25 Oct 2011 11:36:27 +0200 |
Bruno Haible wrote:
> Hi Jim,
>
>> The gnulib update induced a new (coreutils-specific) syntax-check failure:
>>
>> src/system.h:# define ENODATA (-1)
>> make[3]: *** [sc_prohibit_always-defined_macros] Error 1
>>
>> because gnulib now defines that symbol, so I have also removed
>> that definition from coreutils:
>>
>> -
>> -/* Some systems don't define this; POSIX mentions it but says it is
>> - obsolete, so gnulib does not provide it either. */
>> -#ifndef ENODATA
>> -# define ENODATA (-1)
>> -#endif
>> -
>
> Actually, gnulib's errno.h defines ENODATA only on native Windows systems,
> because MSVC 10 does it as well - to avoid interoperability problems.
> It doesn't guarantee the existence of this macro, and there is no intention
> that it does. ENODATA is not POSIX. It is merely an error code defined
> on _some_ systems. Just like EOTHER, ETOOMANYREFS, ENOSTR are error
> codes defined on _some_ systems.
>
> I would get rid of the syntax-check failure in a different way.
Oh! Thank you.
I'll definitely revert that part.
- Re: rm -rf calls rmdir() prior to close(), which can fail, (continued)
- Re: rm -rf calls rmdir() prior to close(), which can fail, Eric Blake, 2011/10/20
- Re: bug#9813: rm -rf calls rmdir() prior to close(), which can fail, Paul Eggert, 2011/10/20
- Re: bug#9813: rm -rf calls rmdir() prior to close(), which can fail, Eric Blake, 2011/10/20
- Re: bug#9813: rm -rf calls rmdir() prior to close(), which can fail, Eric Blake, 2011/10/20
- Re: bug#9813: rm -rf calls rmdir() prior to close(), which can fail, Paul Eggert, 2011/10/21
Re: rm -rf calls rmdir() prior to close(), which can fail, Jim Meyering, 2011/10/23
- Re: rm -rf calls rmdir() prior to close(), which can fail, Jim Meyering, 2011/10/24
- Re: rm -rf calls rmdir() prior to close(), which can fail, Jim Meyering, 2011/10/24
- Re: rm -rf calls rmdir() prior to close(), which can fail, Eric Blake, 2011/10/24
- Re: ENODATA, Bruno Haible, 2011/10/25
- Re: ENODATA,
Jim Meyering <=
- Re: ENODATA, Jim Meyering, 2011/10/25