mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: aio_fildes bug
Date: Wed, 28 Sep 2011 09:45:58 +0200	[thread overview]
Message-ID: <20110928074558.GE24939@port70.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 109 bytes --]

s/filedes/fildes/  what a silly name..

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/aio.h.html


[-- Attachment #2: aio_fildes.diff --]
[-- Type: text/x-diff, Size: 794 bytes --]

diff --git a/include/aio.h b/include/aio.h
index ce7b426..4cc0490 100644
--- a/include/aio.h
+++ b/include/aio.h
@@ -17,7 +17,7 @@ extern "C" {
 #include <bits/alltypes.h>
 
 struct aiocb {
-	int aio_filedes, aio_lio_opcode, aio_reqprio;
+	int aio_fildes, aio_lio_opcode, aio_reqprio;
 	volatile void *aio_buf;
 	size_t aio_nbytes;
 	struct sigevent aio_sigevent;
diff --git a/src/aio/aio_readwrite.c b/src/aio/aio_readwrite.c
index adb5688..584ccb3 100644
--- a/src/aio/aio_readwrite.c
+++ b/src/aio/aio_readwrite.c
@@ -23,7 +23,7 @@ static void notify_signal(struct sigevent *sev)
 static void *io_thread(void *p)
 {
 	struct aiocb *cb = p;
-	int fd = cb->aio_filedes;
+	int fd = cb->aio_fildes;
 	void *buf = (void *)cb->aio_buf;
 	size_t len = cb->aio_nbytes;
 	off_t off = cb->aio_offset;

             reply	other threads:[~2011-09-28  7:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-28  7:45 Szabolcs Nagy [this message]
2011-09-28 15:37 ` Rich Felker

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=20110928074558.GE24939@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).