do_aio used to return -1 on error instead of errno.
Signed-off-by: Jeff Dike <[email protected]>
Index: test/arch/um/os-Linux/aio.c
===================================================================
--- test.orig/arch/um/os-Linux/aio.c 2005-09-14 15:47:30.000000000 -0400
+++ test/arch/um/os-Linux/aio.c 2005-09-14 15:48:04.000000000 -0400
@@ -117,6 +117,7 @@
err = io_submit(ctx, 1, &iocbp);
if(err > 0)
err = 0;
+ else err = -errno;
out:
return err;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
|
|