summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1997-11-06 00:51:04 +0000
committercgd <cgd@NetBSD.org>1997-11-06 00:51:04 +0000
commit023cd79c6b90bc71d94c4091905809bfed71014f (patch)
tree6f52b448f701d6097265906c1fc6abdaca1a48f2 /lib/libc/string
parentfe47853f6fcecb27b3ca70ccc5a55b1e1a5efe25 (diff)
lint stubs for functions which ports use assembly versions. When using
an assembly version of a function, add the right lint stub to the Makefile.inc which specifies the source to build the function (see the arch/i386/*/Makefile.inc). Can't just lint the normal C versions of these functions, because some of them don't _have_ normal C versions and if that were done dependencies would get messed up.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/Lint_bcmp.c17
-rw-r--r--lib/libc/string/Lint_bcopy.c17
-rw-r--r--lib/libc/string/Lint_bzero.c16
-rw-r--r--lib/libc/string/Lint_ffs.c16
-rw-r--r--lib/libc/string/Lint_index.c17
-rw-r--r--lib/libc/string/Lint_memchr.c18
-rw-r--r--lib/libc/string/Lint_memcmp.c17
-rw-r--r--lib/libc/string/Lint_memcpy.c18
-rw-r--r--lib/libc/string/Lint_memmove.c18
-rw-r--r--lib/libc/string/Lint_memset.c18
-rw-r--r--lib/libc/string/Lint_rindex.c17
-rw-r--r--lib/libc/string/Lint_strcat.c17
-rw-r--r--lib/libc/string/Lint_strchr.c17
-rw-r--r--lib/libc/string/Lint_strcmp.c16
-rw-r--r--lib/libc/string/Lint_strcpy.c17
-rw-r--r--lib/libc/string/Lint_strlen.c16
-rw-r--r--lib/libc/string/Lint_strncmp.c17
-rw-r--r--lib/libc/string/Lint_strrchr.c17
-rw-r--r--lib/libc/string/Lint_swab.c17
19 files changed, 323 insertions, 0 deletions
diff --git a/lib/libc/string/Lint_bcmp.c b/lib/libc/string/Lint_bcmp.c
new file mode 100644
index 00000000000..248d0b64f8e
--- /dev/null
+++ b/lib/libc/string/Lint_bcmp.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_bcmp.c,v 1.1 1997/11/06 00:51:48 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+int
+bcmp(b1, b2, len)
+ const void *b1, *b2;
+ size_t len;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_bcopy.c b/lib/libc/string/Lint_bcopy.c
new file mode 100644
index 00000000000..c8511f855bd
--- /dev/null
+++ b/lib/libc/string/Lint_bcopy.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_bcopy.c,v 1.1 1997/11/06 00:51:51 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+void
+bcopy(src, dst, len)
+ const void *src;
+ void *dst;
+ size_t len;
+{
+}
diff --git a/lib/libc/string/Lint_bzero.c b/lib/libc/string/Lint_bzero.c
new file mode 100644
index 00000000000..e497654fa4b
--- /dev/null
+++ b/lib/libc/string/Lint_bzero.c
@@ -0,0 +1,16 @@
+/* $NetBSD: Lint_bzero.c,v 1.1 1997/11/06 00:51:55 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+void
+bzero(src, len)
+ void *src;
+ size_t len;
+{
+}
diff --git a/lib/libc/string/Lint_ffs.c b/lib/libc/string/Lint_ffs.c
new file mode 100644
index 00000000000..a372e96304a
--- /dev/null
+++ b/lib/libc/string/Lint_ffs.c
@@ -0,0 +1,16 @@
+/* $NetBSD: Lint_ffs.c,v 1.1 1997/11/06 00:51:57 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+int
+ffs(value)
+ int value;
+{
+ return(0);
+}
diff --git a/lib/libc/string/Lint_index.c b/lib/libc/string/Lint_index.c
new file mode 100644
index 00000000000..b7ea27c4590
--- /dev/null
+++ b/lib/libc/string/Lint_index.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_index.c,v 1.1 1997/11/06 00:52:00 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+char *
+index(src, c)
+ const char *src;
+ int c;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_memchr.c b/lib/libc/string/Lint_memchr.c
new file mode 100644
index 00000000000..cd1f30289b7
--- /dev/null
+++ b/lib/libc/string/Lint_memchr.c
@@ -0,0 +1,18 @@
+/* $NetBSD: Lint_memchr.c,v 1.1 1997/11/06 00:52:03 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+void *
+memchr(b, c, len)
+ const void *b;
+ int c;
+ size_t len;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_memcmp.c b/lib/libc/string/Lint_memcmp.c
new file mode 100644
index 00000000000..0f7899cd30c
--- /dev/null
+++ b/lib/libc/string/Lint_memcmp.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_memcmp.c,v 1.1 1997/11/06 00:52:06 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+int
+memcmp(b1, b2, len)
+ const void *b1, *b2;
+ size_t len;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_memcpy.c b/lib/libc/string/Lint_memcpy.c
new file mode 100644
index 00000000000..523fd8d8519
--- /dev/null
+++ b/lib/libc/string/Lint_memcpy.c
@@ -0,0 +1,18 @@
+/* $NetBSD: Lint_memcpy.c,v 1.1 1997/11/06 00:52:09 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+void *
+memcpy(dst, src, len)
+ void *dst;
+ const void *src;
+ size_t len;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_memmove.c b/lib/libc/string/Lint_memmove.c
new file mode 100644
index 00000000000..6a7a06968a1
--- /dev/null
+++ b/lib/libc/string/Lint_memmove.c
@@ -0,0 +1,18 @@
+/* $NetBSD: Lint_memmove.c,v 1.1 1997/11/06 00:52:12 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+void *
+memmove(dst, src, len)
+ void *dst;
+ const void *src;
+ size_t len;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_memset.c b/lib/libc/string/Lint_memset.c
new file mode 100644
index 00000000000..ebb634d3336
--- /dev/null
+++ b/lib/libc/string/Lint_memset.c
@@ -0,0 +1,18 @@
+/* $NetBSD: Lint_memset.c,v 1.1 1997/11/06 00:52:16 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+void *
+memset(b, c, len)
+ void *b;
+ int c;
+ size_t len;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_rindex.c b/lib/libc/string/Lint_rindex.c
new file mode 100644
index 00000000000..c53949f876a
--- /dev/null
+++ b/lib/libc/string/Lint_rindex.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_rindex.c,v 1.1 1997/11/06 00:52:18 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+char *
+rindex(src, c)
+ const char *src;
+ int c;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_strcat.c b/lib/libc/string/Lint_strcat.c
new file mode 100644
index 00000000000..53a8606bdbd
--- /dev/null
+++ b/lib/libc/string/Lint_strcat.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_strcat.c,v 1.1 1997/11/06 00:52:21 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+char *
+strcat(s, append)
+ char *s;
+ const char *append;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_strchr.c b/lib/libc/string/Lint_strchr.c
new file mode 100644
index 00000000000..61c456cae2c
--- /dev/null
+++ b/lib/libc/string/Lint_strchr.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_strchr.c,v 1.1 1997/11/06 00:52:23 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+char *
+strchr(src, c)
+ const char *src;
+ int c;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_strcmp.c b/lib/libc/string/Lint_strcmp.c
new file mode 100644
index 00000000000..d57e9eb2256
--- /dev/null
+++ b/lib/libc/string/Lint_strcmp.c
@@ -0,0 +1,16 @@
+/* $NetBSD: Lint_strcmp.c,v 1.1 1997/11/06 00:52:26 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+int
+strcmp(s1, s2)
+ const char *s1, *s2;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_strcpy.c b/lib/libc/string/Lint_strcpy.c
new file mode 100644
index 00000000000..70f046fe897
--- /dev/null
+++ b/lib/libc/string/Lint_strcpy.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_strcpy.c,v 1.1 1997/11/06 00:52:28 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+char *
+strcpy(dst, src)
+ char *dst;
+ const char *src;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_strlen.c b/lib/libc/string/Lint_strlen.c
new file mode 100644
index 00000000000..f0fe03b8282
--- /dev/null
+++ b/lib/libc/string/Lint_strlen.c
@@ -0,0 +1,16 @@
+/* $NetBSD: Lint_strlen.c,v 1.1 1997/11/06 00:52:31 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+size_t
+strlen(s)
+ const char *s;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_strncmp.c b/lib/libc/string/Lint_strncmp.c
new file mode 100644
index 00000000000..f6db9fb2e92
--- /dev/null
+++ b/lib/libc/string/Lint_strncmp.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_strncmp.c,v 1.1 1997/11/06 00:52:34 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+int
+strncmp(s1, s2, len)
+ const char *s1, *s2;
+ size_t len;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_strrchr.c b/lib/libc/string/Lint_strrchr.c
new file mode 100644
index 00000000000..865657e9a0b
--- /dev/null
+++ b/lib/libc/string/Lint_strrchr.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_strrchr.c,v 1.1 1997/11/06 00:52:38 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+char *
+strrchr(src, c)
+ const char *src;
+ int c;
+{
+ return (0);
+}
diff --git a/lib/libc/string/Lint_swab.c b/lib/libc/string/Lint_swab.c
new file mode 100644
index 00000000000..33e4205382a
--- /dev/null
+++ b/lib/libc/string/Lint_swab.c
@@ -0,0 +1,17 @@
+/* $NetBSD: Lint_swab.c,v 1.1 1997/11/06 00:52:42 cgd Exp $ */
+
+/*
+ * This file placed in the public domain.
+ * Chris Demetriou, November 5, 1997.
+ */
+
+#include <string.h>
+
+/*ARGSUSED*/
+void
+swab(src, dst, len)
+ const void *src;
+ void *dst;
+ size_t len;
+{
+}