Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc If LINT code path uses memcpy, it should also inclu...
details: https://anonhg.NetBSD.org/src/rev/98e347d8adfa
branches: trunk
changeset: 331417:98e347d8adfa
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Aug 10 17:55:08 2014 +0000
description:
If LINT code path uses memcpy, it should also include string.h.
diffstat:
lib/libc/compat/sys/compat___semctl13.c | 9 +++++----
lib/libc/compat/sys/compat_semctl.c | 7 +++++--
lib/libc/sys/semctl.c | 7 +++++--
3 files changed, 15 insertions(+), 8 deletions(-)
diffs (85 lines):
diff -r f081098e06d3 -r 98e347d8adfa lib/libc/compat/sys/compat___semctl13.c
--- a/lib/libc/compat/sys/compat___semctl13.c Sun Aug 10 17:49:04 2014 +0000
+++ b/lib/libc/compat/sys/compat___semctl13.c Sun Aug 10 17:55:08 2014 +0000
@@ -1,6 +1,4 @@
-/* $NetBSD: compat___semctl13.c,v 1.3 2011/01/31 22:51:39 christos Exp $ */
-
-/* $NetBSD: compat___semctl13.c,v 1.3 2011/01/31 22:51:39 christos Exp $ */
+/* $NetBSD: compat___semctl13.c,v 1.4 2014/08/10 17:55:08 joerg Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -39,7 +37,7 @@
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat___semctl13.c,v 1.3 2011/01/31 22:51:39 christos Exp $");
+__RCSID("$NetBSD: compat___semctl13.c,v 1.4 2014/08/10 17:55:08 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -49,6 +47,9 @@
#include <compat/sys/time.h>
#include <sys/sem.h>
#include <compat/sys/sem.h>
+#ifdef __lint__
+#include <string.h>
+#endif
__warn_references(__semctl13,
"warning: reference to compatibility __semctl13(); include <sys/sem.h> to generate correct reference")
diff -r f081098e06d3 -r 98e347d8adfa lib/libc/compat/sys/compat_semctl.c
--- a/lib/libc/compat/sys/compat_semctl.c Sun Aug 10 17:49:04 2014 +0000
+++ b/lib/libc/compat/sys/compat_semctl.c Sun Aug 10 17:55:08 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_semctl.c,v 1.3 2011/01/31 22:51:39 christos Exp $ */
+/* $NetBSD: compat_semctl.c,v 1.4 2014/08/10 17:55:08 joerg Exp $ */
/*
* Copyright (c) 1994, 1995 Christopher G. Demetriou
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat_semctl.c,v 1.3 2011/01/31 22:51:39 christos Exp $");
+__RCSID("$NetBSD: compat_semctl.c,v 1.4 2014/08/10 17:55:08 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#define __LIBC12_SOURCE__
@@ -46,6 +46,9 @@
#include <sys/null.h>
#include <compat/sys/sem.h>
#include <stdarg.h>
+#ifdef __lint__
+#include <string.h>
+#endif
int
semctl(int semid, int semnum, int cmd, ...)
diff -r f081098e06d3 -r 98e347d8adfa lib/libc/sys/semctl.c
--- a/lib/libc/sys/semctl.c Sun Aug 10 17:49:04 2014 +0000
+++ b/lib/libc/sys/semctl.c Sun Aug 10 17:55:08 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: semctl.c,v 1.15 2009/01/16 00:02:57 christos Exp $ */
+/* $NetBSD: semctl.c,v 1.16 2014/08/10 17:55:09 joerg Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,13 +30,16 @@
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: semctl.c,v 1.15 2009/01/16 00:02:57 christos Exp $");
+__RCSID("$NetBSD: semctl.c,v 1.16 2014/08/10 17:55:09 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <stdarg.h>
+#ifdef __lint__
+#include <string.h>
+#endif
/* The kernel version [... == union semun *] */
int ____semctl50(int, int, int, ...);
Home |
Main Index |
Thread Index |
Old Index