summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-09-02 12:51:56 +0000
committerphk <phk@FreeBSD.org>2000-09-02 12:51:56 +0000
commit80b5441ed1a3d05f1d8357fdb2fe0f6e5961ba9e (patch)
treead619be5c53a60d83f744c1ac346bc039cb33238 /sys
parent701b2dbfd57e022776356eff8bd36ca2055aeb7d (diff)
downloadFreeBSD-src-80b5441ed1a3d05f1d8357fdb2fe0f6e5961ba9e.zip
FreeBSD-src-80b5441ed1a3d05f1d8357fdb2fe0f6e5961ba9e.tar.gz
Purposely break kernel code which uses memset and memcpy to prevent people
from not noticing this is wrong just because they can't be bothered to testcompile LINT.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/param.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 97a8301..7a21558 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -257,4 +257,13 @@
void panic __P((const char *, ...)) __dead2 __printflike(1, 2);
#endif
+/*
+ * Stop people from using memset/memcpy in the kernel
+ */
+#ifdef _KERNEL
+double memset __P((int dont_use_memset_in_kernel, int a, int b, int c));
+double memcpy __P((int dont_use_memcpy_in_kernel, int a, int b, int c));
+#endif
+
+
#endif /* _SYS_PARAM_H_ */
OpenPOWER on IntegriCloud