linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 9/10] UML - return a real error code
@ 2005-09-14 21:56 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2005-09-14 21:56 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, user-mode-linux-devel

do_aio used to return -1 on error instead of errno.

Signed-off-by: Jeff Dike <jdike@addtoit.com>

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;



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-14 22:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-14 21:56 [uml-devel] [PATCH 9/10] UML - return a real error code Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox