Module Name: src
Committed By: riz
Date: Tue Nov 6 20:07:34 UTC 2012
Modified Files:
src/sys/kern [netbsd-5]: sys_descrip.c
Log Message:
Pull up following revision(s) (requested by he in ticket #1815):
sys/kern/sys_descrip.c: revision 1.11
Fix the posix_fadvise return value... finally.
Tested martin on sparc64/m68k and me on hppa.
To generate a diff of this commit:
cvs rdiff -u -r1.7.4.1 -r1.7.4.2 src/sys/kern/sys_descrip.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/sys_descrip.c
diff -u src/sys/kern/sys_descrip.c:1.7.4.1 src/sys/kern/sys_descrip.c:1.7.4.2
--- src/sys/kern/sys_descrip.c:1.7.4.1 Mon Feb 2 02:53:51 2009
+++ src/sys/kern/sys_descrip.c Tue Nov 6 20:07:33 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_descrip.c,v 1.7.4.1 2009/02/02 02:53:51 snj Exp $ */
+/* $NetBSD: sys_descrip.c,v 1.7.4.2 2012/11/06 20:07:33 riz Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_descrip.c,v 1.7.4.1 2009/02/02 02:53:51 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_descrip.c,v 1.7.4.2 2012/11/06 20:07:33 riz Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -674,6 +674,8 @@ sys___posix_fadvise50(struct lwp *l,
syscallarg(int) advice;
} */
- return do_posix_fadvise(SCARG(uap, fd), SCARG(uap, offset),
+ *retval = do_posix_fadvise(SCARG(uap, fd), SCARG(uap, offset),
SCARG(uap, len), SCARG(uap, advice));
+
+ return 0;
}