summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2012-09-04 03:10:43 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2012-09-04 03:10:43 +0000
commit59863132212aa5445eb86ee1a2bab3609b53e08a (patch)
tree3c56bc196f535625e8ac165a1f4d84e809e84178 /lib/libc
parentb8579dcb5c2fb1b397333d37c3af20f23ba5673f (diff)
remove lint leftovers; ok guenther@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/alpha/string/Makefile.inc3
-rw-r--r--lib/libc/arch/amd64/net/Makefile.inc3
-rw-r--r--lib/libc/arch/amd64/string/Makefile.inc4
-rw-r--r--lib/libc/arch/arm/string/Makefile.inc5
-rw-r--r--lib/libc/arch/i386/net/Makefile.inc3
-rw-r--r--lib/libc/arch/i386/string/Makefile.inc4
-rw-r--r--lib/libc/arch/m68k/net/Makefile.inc3
-rw-r--r--lib/libc/arch/m68k/string/Makefile.inc4
-rw-r--r--lib/libc/arch/mips64/net/Makefile.inc3
-rw-r--r--lib/libc/arch/mips64/string/Makefile.inc3
-rw-r--r--lib/libc/arch/sh/string/Makefile.inc4
-rw-r--r--lib/libc/arch/sparc/net/Makefile.inc3
-rw-r--r--lib/libc/arch/sparc/string/Makefile.inc3
-rw-r--r--lib/libc/arch/sparc64/string/Makefile.inc4
-rw-r--r--lib/libc/arch/vax/net/Makefile.inc3
-rw-r--r--lib/libc/arch/vax/string/Makefile.inc5
-rw-r--r--lib/libc/stdlib/Makefile.inc6
-rw-r--r--lib/libc/sys/Lint_Ovfork.c16
-rw-r--r--lib/libc/sys/Lint_brk.c16
-rw-r--r--lib/libc/sys/Lint_crt.c7
-rw-r--r--lib/libc/sys/Lint_environ.c7
-rw-r--r--lib/libc/sys/Lint_exect.c16
-rw-r--r--lib/libc/sys/Lint_fork.c16
-rw-r--r--lib/libc/sys/Lint_longjmp.c17
-rw-r--r--lib/libc/sys/Lint_sbrk.c16
-rw-r--r--lib/libc/sys/Lint_setjmp.c19
-rw-r--r--lib/libc/sys/Lint_setlogin.c16
-rw-r--r--lib/libc/sys/Lint_siglongjmp.c11
-rw-r--r--lib/libc/sys/Lint_sigpending.c16
-rw-r--r--lib/libc/sys/Lint_sigprocmask.c16
-rw-r--r--lib/libc/sys/Lint_sigreturn.c16
-rw-r--r--lib/libc/sys/Lint_sigsetjmp.c12
-rw-r--r--lib/libc/sys/Lint_sigsuspend.c16
-rw-r--r--lib/libc/sys/Lint_syscall.c17
-rw-r--r--lib/libc/sys/Makefile.inc40
-rw-r--r--lib/libc/sys/makelintstub.sh197
36 files changed, 18 insertions, 532 deletions
diff --git a/lib/libc/arch/alpha/string/Makefile.inc b/lib/libc/arch/alpha/string/Makefile.inc
index eee3fd281cc..96237f904b0 100644
--- a/lib/libc/arch/alpha/string/Makefile.inc
+++ b/lib/libc/arch/alpha/string/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.6 2007/05/15 18:42:31 otto Exp $
+# $OpenBSD: Makefile.inc,v 1.7 2012/09/04 03:10:42 okan Exp $
# $NetBSD: Makefile.inc,v 1.4 1996/07/15 03:13:18 cgd Exp $
SRCS+= bcmp.c bcopy.S bzero.S ffs.S index.c memchr.c memcmp.c memset.c \
@@ -6,4 +6,3 @@ SRCS+= bcmp.c bcopy.S bzero.S ffs.S index.c memchr.c memcmp.c memset.c \
strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
strspn.c strstr.c swab.c
SRCS+= memcpy.S memmove.S
-LSRCS+= bcopy.c bzero.c ffs.c
diff --git a/lib/libc/arch/amd64/net/Makefile.inc b/lib/libc/arch/amd64/net/Makefile.inc
index 4c046a624dd..8adcf1267d0 100644
--- a/lib/libc/arch/amd64/net/Makefile.inc
+++ b/lib/libc/arch/amd64/net/Makefile.inc
@@ -1,4 +1,3 @@
-# $OpenBSD: Makefile.inc,v 1.1 2004/01/28 01:44:45 mickey Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2012/09/04 03:10:42 okan Exp $
SRCS+= htonl.S htons.S ntohl.S ntohs.S
-LSRCS+= htonl.c htons.c ntohl.c ntohs.c
diff --git a/lib/libc/arch/amd64/string/Makefile.inc b/lib/libc/arch/amd64/string/Makefile.inc
index e9662393875..23abb07b50e 100644
--- a/lib/libc/arch/amd64/string/Makefile.inc
+++ b/lib/libc/arch/amd64/string/Makefile.inc
@@ -1,8 +1,6 @@
-# $OpenBSD: Makefile.inc,v 1.3 2012/01/17 02:34:18 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2012/09/04 03:10:42 okan Exp $
SRCS+= bcmp.c ffs.S index.c memchr.c memcmp.c bcopy.c bzero.c \
rindex.c strcat.c strcmp.c strcpy.c strcspn.c strlen.c \
strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
strspn.c strstr.c swab.c memset.c strlcpy.c strlcat.c
-
-LSRCS+= ffs.c
diff --git a/lib/libc/arch/arm/string/Makefile.inc b/lib/libc/arch/arm/string/Makefile.inc
index 3c26df61754..7c42bab3827 100644
--- a/lib/libc/arch/arm/string/Makefile.inc
+++ b/lib/libc/arch/arm/string/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.5 2007/05/17 04:32:00 drahn Exp $
+# $OpenBSD: Makefile.inc,v 1.6 2012/09/04 03:10:42 okan Exp $
# $NetBSD: Makefile.inc,v 1.5 2002/11/23 14:26:04 chris Exp $
SRCS+= memcpy.S _memcpy.S bcopy.S memmove.S memset.S bzero.S ffs.S strcmp.S
@@ -7,6 +7,3 @@ SRCS+= bcmp.c index.c memchr.c \
rindex.c strcat.c strcpy.c strcspn.c strlen.c \
strncat.c strncpy.c strpbrk.c strsep.c \
strspn.c strstr.c swab.c strlcpy.c strlcat.c
-
-LSRCS+= memcpy.c bcopy.c memmove.c memset.c bzero.c ffs.c strcmp.c strncmp.c \
- memcmp.c
diff --git a/lib/libc/arch/i386/net/Makefile.inc b/lib/libc/arch/i386/net/Makefile.inc
index 3e316359945..80584144bcc 100644
--- a/lib/libc/arch/i386/net/Makefile.inc
+++ b/lib/libc/arch/i386/net/Makefile.inc
@@ -1,4 +1,3 @@
-# $OpenBSD: Makefile.inc,v 1.3 1996/08/19 08:12:37 tholo Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2012/09/04 03:10:42 okan Exp $
SRCS+= htonl.S htons.S ntohl.S ntohs.S
-LSRCS+= htonl.c htons.c ntohl.c ntohs.c
diff --git a/lib/libc/arch/i386/string/Makefile.inc b/lib/libc/arch/i386/string/Makefile.inc
index d18a67fa921..dc565194977 100644
--- a/lib/libc/arch/i386/string/Makefile.inc
+++ b/lib/libc/arch/i386/string/Makefile.inc
@@ -1,9 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.5 2012/01/17 21:31:19 mikeb Exp $
+# $OpenBSD: Makefile.inc,v 1.6 2012/09/04 03:10:42 okan Exp $
SRCS+= bcmp.S bcopy.S bzero.S ffs.S index.S memchr.S memcmp.S memset.S \
rindex.S strcat.S strcmp.S strcpy.S strcspn.c strlcpy.c strlen.c \
strncat.c strncmp.S strncpy.c strpbrk.c strsep.c \
strspn.c strstr.c swab.S
SRCS+= memcpy.S memmove.S strchr.S strrchr.S
-LSRCS+= bcmp.c bcopy.c bzero.c ffs.c index.c memchr.c memcmp.c memset.c \
- rindex.c strcat.c strcmp.c strcpy.c strncmp.c swab.c
diff --git a/lib/libc/arch/m68k/net/Makefile.inc b/lib/libc/arch/m68k/net/Makefile.inc
index deb63a5ec57..80584144bcc 100644
--- a/lib/libc/arch/m68k/net/Makefile.inc
+++ b/lib/libc/arch/m68k/net/Makefile.inc
@@ -1,4 +1,3 @@
-# $OpenBSD: Makefile.inc,v 1.3 1996/08/19 08:14:56 tholo Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2012/09/04 03:10:42 okan Exp $
SRCS+= htonl.S htons.S ntohl.S ntohs.S
-LSRCS+= htonl.c htons.c ntohl.c ntohs.c
diff --git a/lib/libc/arch/m68k/string/Makefile.inc b/lib/libc/arch/m68k/string/Makefile.inc
index 808bdd512fb..8c8cbf4aa7a 100644
--- a/lib/libc/arch/m68k/string/Makefile.inc
+++ b/lib/libc/arch/m68k/string/Makefile.inc
@@ -1,9 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.6 1999/04/25 00:23:58 millert Exp $
+# $OpenBSD: Makefile.inc,v 1.7 2012/09/04 03:10:42 okan Exp $
SRCS+= bcmp.S bcopy.S bzero.S ffs.S index.S memchr.c memcmp.S memset.S \
rindex.S strcat.S strcmp.S strcpy.S strcspn.c strlcpy.S strlen.S \
strncat.c strncmp.S strncpy.S strpbrk.c strsep.c \
strspn.c strstr.c swab.S
SRCS+= memcpy.S memmove.S strchr.S strrchr.S
-LSRCS+= bcmp.c bcopy.c bzero.c ffs.c index.c memcmp.c memset.c rindex.c \
- strcmp.c strcpy.c strlcpy.c strlen.c strncmp.c strncpy.c swab.c
diff --git a/lib/libc/arch/mips64/net/Makefile.inc b/lib/libc/arch/mips64/net/Makefile.inc
index 21b5694f652..6e3a837c949 100644
--- a/lib/libc/arch/mips64/net/Makefile.inc
+++ b/lib/libc/arch/mips64/net/Makefile.inc
@@ -1,4 +1,3 @@
-# $OpenBSD: Makefile.inc,v 1.1 2004/08/11 17:30:59 pefo Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2012/09/04 03:10:42 okan Exp $
SRCS+= htonl.S htons.S
-LSRCS+= htonl.c htons.c
diff --git a/lib/libc/arch/mips64/string/Makefile.inc b/lib/libc/arch/mips64/string/Makefile.inc
index 1e0e847f1d0..43d895dd3be 100644
--- a/lib/libc/arch/mips64/string/Makefile.inc
+++ b/lib/libc/arch/mips64/string/Makefile.inc
@@ -1,7 +1,6 @@
-# $OpenBSD: Makefile.inc,v 1.1 2004/08/11 17:30:59 pefo Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2012/09/04 03:10:42 okan Exp $
SRCS+= bcmp.S bcopy.S bzero.S ffs.S index.S memchr.c memcmp.c memset.c \
rindex.S strcat.c strcmp.S strcpy.c strcspn.c strlcpy.c strlen.S \
strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
strspn.c strstr.c swab.c
-LSRCS+= bcmp.c bcopy.c bzero.c ffs.c index.c rindex.c strcmp.c strlen.c
diff --git a/lib/libc/arch/sh/string/Makefile.inc b/lib/libc/arch/sh/string/Makefile.inc
index 4dd96d5aee1..db779e0746f 100644
--- a/lib/libc/arch/sh/string/Makefile.inc
+++ b/lib/libc/arch/sh/string/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.2 2007/05/15 18:42:31 otto Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2012/09/04 03:10:42 okan Exp $
# $NetBSD: Makefile.inc,v 1.3 2002/11/20 14:23:54 itohy Exp $
SRCS+= bcmp.c bcopy.S bzero.S ffs.S index.c memchr.c memcmp.c memset.S \
@@ -6,5 +6,3 @@ SRCS+= bcmp.c bcopy.S bzero.S ffs.S index.c memchr.c memcmp.c memset.S \
strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
strspn.c strstr.c swab.c strlcpy.c strlcat.c
SRCS+= memcpy.S memmove.S
-
-LSRCS+= bcopy.c bzero.c ffs.c memset.c memcpy.c memmove.c
diff --git a/lib/libc/arch/sparc/net/Makefile.inc b/lib/libc/arch/sparc/net/Makefile.inc
index eda9e0d8494..80584144bcc 100644
--- a/lib/libc/arch/sparc/net/Makefile.inc
+++ b/lib/libc/arch/sparc/net/Makefile.inc
@@ -1,4 +1,3 @@
-# $OpenBSD: Makefile.inc,v 1.3 1996/08/19 08:17:48 tholo Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2012/09/04 03:10:42 okan Exp $
SRCS+= htonl.S htons.S ntohl.S ntohs.S
-LSRCS+= htonl.c htons.c ntohl.c ntohs.c
diff --git a/lib/libc/arch/sparc/string/Makefile.inc b/lib/libc/arch/sparc/string/Makefile.inc
index 5976b9ca922..18076ea0307 100644
--- a/lib/libc/arch/sparc/string/Makefile.inc
+++ b/lib/libc/arch/sparc/string/Makefile.inc
@@ -1,7 +1,6 @@
-# $OpenBSD: Makefile.inc,v 1.4 1999/04/25 00:23:59 millert Exp $
+# $OpenBSD: Makefile.inc,v 1.5 2012/09/04 03:10:42 okan Exp $
SRCS+= bcmp.c bcopy.c bzero.S ffs.S index.c memchr.c memcmp.c memset.c \
rindex.c strcat.c strcmp.c strcpy.c strcspn.c strlcpy.c strlen.S \
strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
strspn.c strstr.c swab.c
-LSRCS+= bzero.c ffs.c strlen.c
diff --git a/lib/libc/arch/sparc64/string/Makefile.inc b/lib/libc/arch/sparc64/string/Makefile.inc
index a70395148dd..126163a20dc 100644
--- a/lib/libc/arch/sparc64/string/Makefile.inc
+++ b/lib/libc/arch/sparc64/string/Makefile.inc
@@ -1,8 +1,6 @@
-# $OpenBSD: Makefile.inc,v 1.2 2007/05/15 18:42:31 otto Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2012/09/04 03:10:42 okan Exp $
SRCS+= bcmp.c ffs.S index.c memchr.c memcmp.c bcopy.c bzero.c \
rindex.c strcat.c strcmp.c strcpy.c strcspn.c strlen.S \
strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
strspn.c strstr.c swab.c memset.c strlcpy.c strlcat.c
-
-LSRCS+= ffs.c strlen.c
diff --git a/lib/libc/arch/vax/net/Makefile.inc b/lib/libc/arch/vax/net/Makefile.inc
index ddba438c7c9..d59c568e887 100644
--- a/lib/libc/arch/vax/net/Makefile.inc
+++ b/lib/libc/arch/vax/net/Makefile.inc
@@ -1,4 +1,3 @@
-# $OpenBSD: Makefile.inc,v 1.3 1996/08/19 08:18:36 tholo Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2012/09/04 03:10:42 okan Exp $
SRCS+= htonl.S htons.S ntohl.S ntohs.S
-LSRCS+= htonl.c htons.c ntohl.c ntohs.c
diff --git a/lib/libc/arch/vax/string/Makefile.inc b/lib/libc/arch/vax/string/Makefile.inc
index a5855d654ce..f0e2c4471c1 100644
--- a/lib/libc/arch/vax/string/Makefile.inc
+++ b/lib/libc/arch/vax/string/Makefile.inc
@@ -1,10 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.7 2007/05/17 04:32:00 drahn Exp $
+# $OpenBSD: Makefile.inc,v 1.8 2012/09/04 03:10:42 okan Exp $
SRCS+= bcmp.S bcopy.S bzero.S ffs.S index.S memchr.c memcmp.S memset.S \
rindex.c strcat.c strcmp.c strcpy.c strcspn.c strlcpy.c strlen.c \
strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
strspn.c strstr.c swab.c
SRCS+= memcpy.S memmove.S
-
-LSRCS+= bcmp.c bcopy.c bzero.c ffs.c index.c memcmp.c memset.c memcpy.c \
- memmove.c
diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc
index 81d19620261..f2fdedfb482 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.44 2010/05/18 22:24:55 tedu Exp $
+# $OpenBSD: Makefile.inc,v 1.45 2012/09/04 03:10:42 okan Exp $
# stdlib sources
.PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/stdlib ${LIBCSRCDIR}/stdlib
@@ -14,16 +14,12 @@ SRCS+= a64l.c abort.c atexit.c atoi.c atof.c atol.c atoll.c bsearch.c \
.if (${MACHINE_CPU} == "m68k")
SRCS+= abs.S div.c labs.c ldiv.c
-LSRCS+= abs.c
.elif (${MACHINE_CPU} == "i386")
SRCS+= abs.S div.S labs.S ldiv.S
-LSRCS+= abs.c div.c labs.c ldiv.c
.elif (${MACHINE_CPU} == "ns32k")
SRCS+= abs.S div.c labs.c ldiv.c
-LSRCS+= abs.c
.elif (${MACHINE_CPU} == "tahoe")
SRCS+= abs.S div.c labs.c ldiv.c
-LSRCS+= abs.c
.elif (${MACHINE_CPU} == "vax")
SRCS+= abs.c div.c labs.c ldiv.c
.elif (${MACHINE_CPU} == "alpha")
diff --git a/lib/libc/sys/Lint_Ovfork.c b/lib/libc/sys/Lint_Ovfork.c
deleted file mode 100644
index 0d94d3a64a9..00000000000
--- a/lib/libc/sys/Lint_Ovfork.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_Ovfork.c,v 1.2 2004/09/14 22:18:56 deraadt Exp $ */
-/* $NetBSD: Lint_Ovfork.c,v 1.1 1997/11/06 00:52:49 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <unistd.h>
-
-/*ARGSUSED*/
-pid_t
-vfork(void)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_brk.c b/lib/libc/sys/Lint_brk.c
deleted file mode 100644
index 6ce98c0675a..00000000000
--- a/lib/libc/sys/Lint_brk.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_brk.c,v 1.4 2008/04/24 20:43:20 kurt Exp $ */
-/* $NetBSD: Lint_brk.c,v 1.1 1997/11/06 00:52:52 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <unistd.h>
-
-/*ARGSUSED*/
-int
-brk(void *addr)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_crt.c b/lib/libc/sys/Lint_crt.c
deleted file mode 100644
index 6241a7a92f6..00000000000
--- a/lib/libc/sys/Lint_crt.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* $OpenBSD: Lint_crt.c,v 1.2 2007/09/08 19:42:36 otto Exp $ */
-
-/* Public domain, Theo de Raadt, 2005 */
-
-#include <unistd.h>
-
-char *__progname;
diff --git a/lib/libc/sys/Lint_environ.c b/lib/libc/sys/Lint_environ.c
deleted file mode 100644
index 2776ba4c913..00000000000
--- a/lib/libc/sys/Lint_environ.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* $OpenBSD: Lint_environ.c,v 1.1 2007/09/09 18:46:34 otto Exp $ */
-
-/* Public domain, Otto Moerbeek, 2007 */
-
-#include <stdlib.h>
-
-char **environ;
diff --git a/lib/libc/sys/Lint_exect.c b/lib/libc/sys/Lint_exect.c
deleted file mode 100644
index 65d49c4ec96..00000000000
--- a/lib/libc/sys/Lint_exect.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_exect.c,v 1.2 2004/09/14 22:18:56 deraadt Exp $ */
-/* $NetBSD: Lint_exect.c,v 1.1 1997/11/06 00:52:54 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <unistd.h>
-
-/*ARGSUSED*/
-int
-exect(const char *path, char * const *argv, char * const *envp)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_fork.c b/lib/libc/sys/Lint_fork.c
deleted file mode 100644
index 716f3d3824b..00000000000
--- a/lib/libc/sys/Lint_fork.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_fork.c,v 1.2 2004/09/14 22:18:56 deraadt Exp $ */
-/* $NetBSD: Lint_fork.c,v 1.1 1997/11/06 00:52:57 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <unistd.h>
-
-/*ARGSUSED*/
-pid_t
-fork(void)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_longjmp.c b/lib/libc/sys/Lint_longjmp.c
deleted file mode 100644
index 4b3b1b864f6..00000000000
--- a/lib/libc/sys/Lint_longjmp.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* $OpenBSD: Lint_longjmp.c,v 1.1 2007/09/09 19:22:45 otto Exp $ */
-
-/* Public domain, Otto Moerbeek, 2007 */
-
-#include <setjmp.h>
-
-/*ARGSUSED*/
-void
-longjmp(jmp_buf env, int val)
-{
-}
-
-/*ARGSUSED*/
-void
-_longjmp(jmp_buf env, int val)
-{
-}
diff --git a/lib/libc/sys/Lint_sbrk.c b/lib/libc/sys/Lint_sbrk.c
deleted file mode 100644
index 6be97b05a64..00000000000
--- a/lib/libc/sys/Lint_sbrk.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_sbrk.c,v 1.3 2005/11/28 16:54:07 deraadt Exp $ */
-/* $NetBSD: Lint_sbrk.c,v 1.1 1997/11/06 00:53:04 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <unistd.h>
-
-/*ARGSUSED*/
-void *
-sbrk(int incr)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_setjmp.c b/lib/libc/sys/Lint_setjmp.c
deleted file mode 100644
index a65e121f20d..00000000000
--- a/lib/libc/sys/Lint_setjmp.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* $OpenBSD: Lint_setjmp.c,v 1.1 2007/09/09 19:22:45 otto Exp $ */
-
-/* Public domain, Otto Moerbeek, 2007 */
-
-#include <setjmp.h>
-
-/*ARGSUSED*/
-int
-setjmp(jmp_buf env)
-{
- return 0;
-}
-
-/*ARGSUSED*/
-int
-_setjmp(jmp_buf env)
-{
- return 0;
-}
diff --git a/lib/libc/sys/Lint_setlogin.c b/lib/libc/sys/Lint_setlogin.c
deleted file mode 100644
index c5b9a7f154b..00000000000
--- a/lib/libc/sys/Lint_setlogin.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_setlogin.c,v 1.2 2004/09/14 22:18:56 deraadt Exp $ */
-/* $NetBSD: Lint_setlogin.c,v 1.1 1997/11/06 00:53:08 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <unistd.h>
-
-/*ARGSUSED*/
-int
-setlogin(const char *name)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_siglongjmp.c b/lib/libc/sys/Lint_siglongjmp.c
deleted file mode 100644
index efb56bf9876..00000000000
--- a/lib/libc/sys/Lint_siglongjmp.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* $OpenBSD: Lint_siglongjmp.c,v 1.1 2007/09/09 19:22:45 otto Exp $ */
-
-/* Public domain, Otto Moerbeek, 2007 */
-
-#include <setjmp.h>
-
-/*ARGSUSED*/
-void
-siglongjmp(sigjmp_buf env, int val)
-{
-}
diff --git a/lib/libc/sys/Lint_sigpending.c b/lib/libc/sys/Lint_sigpending.c
deleted file mode 100644
index 33358102299..00000000000
--- a/lib/libc/sys/Lint_sigpending.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_sigpending.c,v 1.2 2004/09/14 22:18:56 deraadt Exp $ */
-/* $NetBSD: Lint_sigpending.c,v 1.1 1997/11/06 00:53:11 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <signal.h>
-
-/*ARGSUSED*/
-int
-sigpending(sigset_t *set)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_sigprocmask.c b/lib/libc/sys/Lint_sigprocmask.c
deleted file mode 100644
index ea5ff0408c2..00000000000
--- a/lib/libc/sys/Lint_sigprocmask.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_sigprocmask.c,v 1.2 2004/09/14 22:18:56 deraadt Exp $ */
-/* $NetBSD: Lint_sigprocmask.c,v 1.1 1997/11/06 00:53:15 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <signal.h>
-
-/*ARGSUSED*/
-int
-sigprocmask(int how, const sigset_t *set, sigset_t *oset)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_sigreturn.c b/lib/libc/sys/Lint_sigreturn.c
deleted file mode 100644
index f50a2e5c2e4..00000000000
--- a/lib/libc/sys/Lint_sigreturn.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_sigreturn.c,v 1.2 2004/09/14 22:18:56 deraadt Exp $ */
-/* $NetBSD: Lint_sigreturn.c,v 1.1 1997/11/06 00:53:18 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <signal.h>
-
-/*ARGSUSED*/
-int
-sigreturn(struct sigcontext *scp)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_sigsetjmp.c b/lib/libc/sys/Lint_sigsetjmp.c
deleted file mode 100644
index cd38e37eb20..00000000000
--- a/lib/libc/sys/Lint_sigsetjmp.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* $OpenBSD: Lint_sigsetjmp.c,v 1.1 2007/09/09 19:22:45 otto Exp $ */
-
-/* Public domain, Otto Moerbeek, 2007 */
-
-#include <setjmp.h>
-
-/*ARGSUSED*/
-int
-sigsetjmp(sigjmp_buf env, int savemask)
-{
- return 0;
-}
diff --git a/lib/libc/sys/Lint_sigsuspend.c b/lib/libc/sys/Lint_sigsuspend.c
deleted file mode 100644
index 0a573a282fd..00000000000
--- a/lib/libc/sys/Lint_sigsuspend.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* $OpenBSD: Lint_sigsuspend.c,v 1.2 2004/09/14 22:18:56 deraadt Exp $ */
-/* $NetBSD: Lint_sigsuspend.c,v 1.1 1997/11/06 00:53:20 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <signal.h>
-
-/*ARGSUSED*/
-int
-sigsuspend(const sigset_t *sigmask)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Lint_syscall.c b/lib/libc/sys/Lint_syscall.c
deleted file mode 100644
index 367a7aac179..00000000000
--- a/lib/libc/sys/Lint_syscall.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* $OpenBSD: Lint_syscall.c,v 1.2 2002/02/19 19:39:37 millert Exp $ */
-/* $NetBSD: Lint_syscall.c,v 1.1 1997/11/06 00:53:22 cgd Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <unistd.h>
-#include <stdarg.h>
-
-/*ARGSUSED*/
-int
-syscall(int arg1, ...)
-{
- return (0);
-}
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index 10b7b053eed..6b2fb42ce1d 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.106 2012/08/23 06:19:48 deraadt Exp $
+# $OpenBSD: Makefile.inc,v 1.107 2012/09/04 03:10:42 okan Exp $
# $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 6/17/93
@@ -10,18 +10,6 @@ SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S \
sbrk.S sigpending.S sigprocmask.S sigreturn.S \
sigsuspend.S syscall.S tfork_thread.S
-LSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c Lint_sbrk.c \
- Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \
- Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c \
- Lint_setjmp.c Lint_longjmp.c \
- Lint_sigsetjmp.c Lint_siglongjmp.c
-DPSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \
- Lint_sbrk.c \
- Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \
- Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c \
- Lint_setjmp.c Lint_longjmp.c \
- Lint_sigsetjmp.c Lint_siglongjmp.c
-
# glue to offer userland wrappers for some syscalls
SRCS+= posix_madvise.c
@@ -175,32 +163,6 @@ ${PSEUDO_NOERR}: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/SYS.h /usr/include/sys/syscal
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
-# Lint stubs for all automatically-generated assembly stubs (GENERATED)
-#LSRCS+= LintSysNormal.c LintSysNoerr.c LintSysPseudoNoerr.c
-#DPSRCS+= LintSysNormal.c LintSysNoerr.c LintSysPseudoNoerr.c
-LSRCS+= LintSysNormal.c LintSysPseudoNoerr.c
-DPSRCS+= LintSysNormal.c LintSysPseudoNoerr.c
-
-CLEANFILES+= LintSysNormal.c LintSysNoerr.c LintSysPseudoNoerr.c
-
-LintSysNormal.c: ${LIBCSRCDIR}/sys/makelintstub.sh \
- ${DESTDIR}/usr/include/sys/syscall.h
- @echo creating ${.TARGET}
- @sh ${LIBCSRCDIR}/sys/makelintstub.sh -o ${.TARGET} \
- -s ${DESTDIR}/usr/include/sys/syscall.h ${ASM}
-
-LintSysNoerr.c: ${LIBCSRCDIR}/sys/makelintstub.sh \
- ${DESTDIR}/usr/include/sys/syscall.h
- @echo creating ${.TARGET}
- @sh ${LIBCSRCDIR}/sys/makelintstub.sh -o ${.TARGET} -n \
- -s ${DESTDIR}/usr/include/sys/syscall.h ${NOERR}
-
-LintSysPseudoNoerr.c: ${LIBCSRCDIR}/sys/makelintstub.sh \
- ${DESTDIR}/usr/include/sys/syscall.h
- @echo creating ${.TARGET}
- @sh ${LIBCSRCDIR}/sys/makelintstub.sh -o ${.TARGET} -p \
- -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO_NOERR}
-
MAN+= __get_tcb.2 __thrsigdivert.2 __thrsleep.2 _exit.2 accept.2 \
access.2 acct.2 adjfreq.2 adjtime.2 bind.2 brk.2 chdir.2 \
chflags.2 chmod.2 chown.2 chroot.2 clock_gettime.2 close.2 \
diff --git a/lib/libc/sys/makelintstub.sh b/lib/libc/sys/makelintstub.sh
deleted file mode 100644
index e36332e2859..00000000000
--- a/lib/libc/sys/makelintstub.sh
+++ /dev/null
@@ -1,197 +0,0 @@
-#!/bin/sh -
-# $OpenBSD: makelintstub.sh,v 1.10 2012/08/23 06:19:48 deraadt Exp $
-# $NetBSD: makelintstub,v 1.2 1997/11/05 05:46:18 thorpej Exp $
-#
-# Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. All advertising materials mentioning features or use of this software
-# must display the following acknowledgement:
-# This product includes software developed for the NetBSD Project
-# by Christopher G. Demetriou.
-# 4. The name of the author may not be used to endorse or promote products
-# derived from this software without specific prior written permission
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-usage()
-{
-
- echo "usage: $0 [-n|-p] [-o filename] object ..."
- exit 1
-}
-
-header()
-{
-
- cat <<- __EOF__
- /*
- * THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT EDIT.
- */
-
- #include <sys/param.h>
- #include <sys/time.h>
- #include <sys/mount.h>
- #include <sys/stat.h>
- #include <ufs/ufs/quota.h>
- #include <ufs/ufs/inode.h>
- #include <sys/resource.h>
- #include <sys/poll.h>
- #include <sys/uio.h>
- #include <sys/ipc.h>
- #include <sys/msg.h>
- #include <sys/sem.h>
- #include <sys/shm.h>
- #include <sys/socket.h>
- #include <sys/ioctl.h>
- #include <sys/ktrace.h>
- #include <sys/mman.h>
- #include <sys/event.h>
- #include <sys/wait.h>
- #include <stdio.h>
- #undef DIRBLKSIZ
- #include <dirent.h>
- #include <fcntl.h>
- #include <signal.h>
- #include <unistd.h>
- #ifdef __STDC__
- #include <stdarg.h>
- #else
- #include <varargs.h>
- #endif
- #include <err.h>
-
- __EOF__
-}
-
-syscall_stub()
-{
-
- syscallhdr="$1"
- syscallname="$2"
- funcname="$3"
-
- arglist=$(printf '#include "%s"\n' "$syscallhdr" | cpp -C | \
- grep '^/\* syscall: "'"$syscallname"'" ' | \
- sed -e 's,^/\* syscall: ,,;s, \*/$,,')
-
- eval set -f -- "$arglist"
-
- if [ $# -lt 4 ]; then
- echo syscall $syscallname not found! 1>&2
- exit 1
- fi
-
- syscallname=$1
- shift 2 # kill name and "ret:"
- returntype=$1
- shift 2 # kill return type and "args:"
-
- if [ "`eval echo -n \\$$#`" = "..." ]; then
- varargs=YES
- nargs=$(($# - 1))
- else
- varargs=NO
- nargs=$#
- fi
- nargswithva=$#
-
- echo "/*ARGSUSED*/"
- echo "$returntype"
-
- # do ANSI C function header
-
- echo -n "$funcname("
- if [ $nargs -eq 0 ]; then
- echo -n "void"
- else
- i=1
- while [ $i -le $nargs ]; do
- eval echo -n \""\$$i"\"
- echo -n " arg$i"
- if [ $i -lt $nargswithva ]; then
- echo -n ", "
- fi
- i=$(($i + 1))
- done
- fi
- if [ $varargs = YES ]; then
- echo -n "..."
- fi
- echo ")"
- echo "{"
- if [ "$returntype" != "void" ]; then
- echo " return (($returntype)0);"
- fi
- echo "}"
-}
-
-trailer()
-{
-
- cat <<- __EOF__
- /* END */
- __EOF__
-}
-
-pflag=NO
-nflag=NO
-oarg=""
-syscallhdr=/usr/include/sys/syscall.h
-
-args=`getopt no:ps: $*`
-if test $? -ne 0; then
- usage
-fi
-set -- $args
-
-for i; do
- case "$i" in
- -n) nflag=YES; shift;;
- -o) oarg=$2; shift; shift;;
- -p) pflag=YES; shift;;
- -s) syscallhdr=$2; shift; shift;;
- --) shift; break;;
- esac
-done
-
-if [ $pflag = YES ] && [ $nflag = YES ]; then
- echo "$0: -n flag and -p flag may not be used together"
- echo ""
- usage
-fi
-
-if [ "X$oarg" != "X" ]; then
- exec > $oarg
-fi
-
-header
-for syscall; do
- fnname=`echo $syscall | sed -e 's,\.o$,,'`
- if [ $pflag = YES ]; then
- scname=`echo $fnname | sed -e 's,^_,,'`
- else
- scname=$fnname
- fi
- syscall_stub $syscallhdr $scname $fnname
- echo ""
-done
-trailer
-
-exit 0