public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* /usr/include/aio.h
@ 2020-10-03 22:02 Jonny Grant
  2020-10-03 22:39 ` /usr/include/aio.h Paul Eggert
  0 siblings, 1 reply; 9+ messages in thread
From: Jonny Grant @ 2020-10-03 22:02 UTC (permalink / raw)
  To: libc-alpha

Hello

Just wondering :

a) why there are these macros like AIO_ALLDONE below? Surely the enum is enough.

b) why the enum's aren't numbered, so when looking in a debugger it's easier to follow the number back to this header file

/* Return values of cancelation function.  */
enum
{
  AIO_CANCELED,
#define AIO_CANCELED AIO_CANCELED
  AIO_NOTCANCELED,
#define AIO_NOTCANCELED AIO_NOTCANCELED
  AIO_ALLDONE
#define AIO_ALLDONE AIO_ALLDONE
};


Cheers, Jonny

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-10-06 11:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03 22:02 /usr/include/aio.h Jonny Grant
2020-10-03 22:39 ` /usr/include/aio.h Paul Eggert
2020-10-04  6:54   ` /usr/include/aio.h Andreas Schwab
2020-10-05 15:29   ` /usr/include/aio.h Jonny Grant
2020-10-05 17:52     ` /usr/include/aio.h Paul Eggert
2020-10-05 20:53       ` /usr/include/aio.h Jonny Grant
2020-10-05 21:35         ` /usr/include/aio.h Paul Eggert
2020-10-06 10:52           ` /usr/include/aio.h Jonny Grant
2020-10-06 11:11             ` /usr/include/aio.h Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).