projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix namespace violation in sys/shm.h
[musl]
/
src
/
aio
/
aio_readwrite.c
diff --git
a/src/aio/aio_readwrite.c
b/src/aio/aio_readwrite.c
index
adb5688
..
0de3d4f
100644
(file)
--- a/
src/aio/aio_readwrite.c
+++ b/
src/aio/aio_readwrite.c
@@
-1,6
+1,9
@@
#include <aio.h>
#include <fcntl.h>
#include <aio.h>
#include <fcntl.h>
+#include <errno.h>
+#include <unistd.h>
#include "pthread_impl.h"
#include "pthread_impl.h"
+#include "libc.h"
static void dummy(void)
{
static void dummy(void)
{
@@
-23,7
+26,7
@@
static void notify_signal(struct sigevent *sev)
static void *io_thread(void *p)
{
struct aiocb *cb = p;
static void *io_thread(void *p)
{
struct aiocb *cb = p;
- int fd = cb->aio_fil
e
des;
+ int fd = cb->aio_fildes;
void *buf = (void *)cb->aio_buf;
size_t len = cb->aio_nbytes;
off_t off = cb->aio_offset;
void *buf = (void *)cb->aio_buf;
size_t len = cb->aio_nbytes;
off_t off = cb->aio_offset;
@@
-48,7
+51,7
@@
static void *io_thread(void *p)
__aio_wake();
__aio_wake();
- switch (
cb->aio_sigevent
.sigev_notify) {
+ switch (
sev
.sigev_notify) {
case SIGEV_SIGNAL:
notify_signal(&sev);
break;
case SIGEV_SIGNAL:
notify_signal(&sev);
break;