mailing list of musl libc
 help / color / mirror / code / Atom feed
* aio_fildes bug
@ 2011-09-28  7:45 Szabolcs Nagy
  2011-09-28 15:37 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Szabolcs Nagy @ 2011-09-28  7:45 UTC (permalink / raw)
  To: musl

[-- 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;

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

* Re: aio_fildes bug
  2011-09-28  7:45 aio_fildes bug Szabolcs Nagy
@ 2011-09-28 15:37 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2011-09-28 15:37 UTC (permalink / raw)
  To: musl

On Wed, Sep 28, 2011 at 09:45:58AM +0200, Szabolcs Nagy wrote:
> s/filedes/fildes/  what a silly name..
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/aio.h.html

Fixed. Dunno how I missed this..

Rich


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

end of thread, other threads:[~2011-09-28 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-28  7:45 aio_fildes bug Szabolcs Nagy
2011-09-28 15:37 ` Rich Felker

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).