public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Jonny Grant <jg@jguk.org>
To: libc-alpha@sourceware.org
Subject: /usr/include/aio.h
Date: Sat, 3 Oct 2020 23:02:10 +0100	[thread overview]
Message-ID: <1585f908-1ee9-5d00-1dd4-3fa16c70b042@jguk.org> (raw)

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

             reply	other threads:[~2020-10-03 22:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-03 22:02 Jonny Grant [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1585f908-1ee9-5d00-1dd4-3fa16c70b042@jguk.org \
    --to=jg@jguk.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).