Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Match prior syscall behaviour



details:   https://anonhg.NetBSD.org/src/rev/d323606343ac
branches:  trunk
changeset: 358371:d323606343ac
user:      maya <maya%NetBSD.org@localhost>
date:      Tue Dec 26 05:45:50 2017 +0000

description:
Match prior syscall behaviour
hide __RCSID under the same macros as rest of libc

diffstat:

 lib/libc/sys/vadvise.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 3cc91e7e4f71 -r d323606343ac lib/libc/sys/vadvise.c
--- a/lib/libc/sys/vadvise.c    Tue Dec 26 03:58:03 2017 +0000
+++ b/lib/libc/sys/vadvise.c    Tue Dec 26 05:45:50 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vadvise.c,v 1.1 2017/12/25 11:03:30 kamil Exp $        */
+/*     $NetBSD: vadvise.c,v 1.2 2017/12/26 05:45:50 maya Exp $ */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -27,15 +27,18 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: vadvise.c,v 1.1 2017/12/25 11:03:30 kamil Exp $");
+#if defined(LIBC_SCCS) && !defined(lint)
+__RCSID("$NetBSD: vadvise.c,v 1.2 2017/12/26 05:45:50 maya Exp $");
+#endif
 
+#include <errno.h>
 int vadvise(int va);
 
 int
 vadvise(int va)
 {
-
        (void)va;
 
-       return 0;
+       errno = EINVAL;
+       return -1;
 }



Home | Main Index | Thread Index | Old Index