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/ee9a9517dc8a
branches: trunk
changeset: 828672:ee9a9517dc8a
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 76b2e01fd57e -r ee9a9517dc8a 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