recursive #definitions of O_SYNC in fcntl.h

[email protected] Tue, 28 Oct 2014 19:59:37 +0100 (CET)
Newsgroups gmane.linux.lib.dietlibc
Message-ID <363022047.68076.1414522777441.JavaMail.ngmail@webmail11.arcor-online.net>
Hi,

I've noticed something strange in the header file 'fcntl.h':

on some platforms there seems to be a recursive definition of the cpp macro O_SYNC:

#if defined(__i386__) || defined(__s390__) || defined(__x86_64__) || defined(__ia64__)
...
#define O_SYNC		(O_SYNC|04000000)
...
#elif defined (__arm__)
...
#define O_SYNC		(O_SYNC|04000000)


On other platforms it seems OK:

...
#elif defined(__alpha__)
...
#define O_DSYNC		040000
...
#define O_SYNC		(020000000|O_DSYNC)
...


Are these recursive definitions correct ?

giorgio


Giorgio, [email protected]