diff options
| author | christos <christos@NetBSD.org> | 2014-01-16 20:31:42 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2014-01-16 20:31:42 +0000 |
| commit | f3edbddfd4a4d4c0fc1a401fec00c1f1acc9e84e (patch) | |
| tree | 8e8c7332635060ab2e89658909bf67dba0ba3f75 /lib/libc/sys | |
| parent | 9164993e7a0867ccd8a36adac26c5aed8ae55a47 (diff) | |
"soon" is "now". Remove all __indr_reference crap.
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/Makefile.inc | 5 | ||||
| -rw-r--r-- | lib/libc/sys/_brk.c | 45 | ||||
| -rw-r--r-- | lib/libc/sys/_fork.c | 45 | ||||
| -rw-r--r-- | lib/libc/sys/_getcontext.c | 36 | ||||
| -rw-r--r-- | lib/libc/sys/_pipe.c | 45 | ||||
| -rw-r--r-- | lib/libc/sys/_sbrk.c | 45 |
6 files changed, 1 insertions, 220 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 43bee2416cd..3a036954ed9 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.221 2013/11/09 13:05:59 njoly Exp $ +# $NetBSD: Makefile.inc,v 1.222 2014/01/16 20:31:43 christos Exp $ # @(#)Makefile.inc 8.3 (Berkeley) 10/24/94 # sys sources @@ -69,9 +69,6 @@ ASM_GLUE+= tmp___${glue:.c=}50.S . endif .endfor -# namespace purity wrappers -SRCS+= _brk.c _fork.c _getcontext.c _pipe.c _sbrk.c - # modules with default implementations on all architectures: ASM= access.S acct.S \ bind.S \ diff --git a/lib/libc/sys/_brk.c b/lib/libc/sys/_brk.c deleted file mode 100644 index b0eb0b29f70..00000000000 --- a/lib/libc/sys/_brk.c +++ /dev/null @@ -1,45 +0,0 @@ -/* $NetBSD: _brk.c,v 1.6 2009/10/21 01:07:45 snj Exp $ */ - -/* - * Copyright (c) 1996 Christos Zoulas. 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. - * - * 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. - */ - -#include <sys/cdefs.h> -#if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: _brk.c,v 1.6 2009/10/21 01:07:45 snj Exp $"); -#endif /* LIBC_SCCS and not lint */ - -#if defined(__indr_reference) -__indr_reference(_brk, brk) -#else - -#include <unistd.h> -int _brk(void *); - -int -brk(void *addr) -{ - - return _brk(addr); -} -#endif diff --git a/lib/libc/sys/_fork.c b/lib/libc/sys/_fork.c deleted file mode 100644 index 34a629011a0..00000000000 --- a/lib/libc/sys/_fork.c +++ /dev/null @@ -1,45 +0,0 @@ -/* $NetBSD: _fork.c,v 1.5 2009/10/21 01:07:45 snj Exp $ */ - -/* - * Copyright (c) 1996 Christos Zoulas. 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. - * - * 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. - */ - -#include <sys/cdefs.h> -#if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: _fork.c,v 1.5 2009/10/21 01:07:45 snj Exp $"); -#endif /* LIBC_SCCS and not lint */ - -#if defined(__indr_reference) -__indr_reference(_fork, fork) -#else - -#include <unistd.h> -pid_t _fork(void); - -pid_t -fork(void) -{ - - return _fork(); -} -#endif diff --git a/lib/libc/sys/_getcontext.c b/lib/libc/sys/_getcontext.c deleted file mode 100644 index 76fd705aef6..00000000000 --- a/lib/libc/sys/_getcontext.c +++ /dev/null @@ -1,36 +0,0 @@ -/* $NetBSD: _getcontext.c,v 1.5 2009/10/21 01:07:45 snj Exp $ */ - -/* - * Copyright (c) 1996 Christos Zoulas. 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. - * - * 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. - */ - -#include <sys/cdefs.h> -#if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: _getcontext.c,v 1.5 2009/10/21 01:07:45 snj Exp $"); -#endif /* LIBC_SCCS and not lint */ - -#ifdef __indr_reference -__indr_reference(_getcontext, getcontext) -#else -#error requires either weak aliases or indirect references! -#endif diff --git a/lib/libc/sys/_pipe.c b/lib/libc/sys/_pipe.c deleted file mode 100644 index a68bc189893..00000000000 --- a/lib/libc/sys/_pipe.c +++ /dev/null @@ -1,45 +0,0 @@ -/* $NetBSD: _pipe.c,v 1.7 2009/10/21 01:07:45 snj Exp $ */ - -/* - * Copyright (c) 1996 Christos Zoulas. 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. - * - * 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. - */ - -#include <sys/cdefs.h> -#if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: _pipe.c,v 1.7 2009/10/21 01:07:45 snj Exp $"); -#endif /* LIBC_SCCS and not lint */ - -#if defined(__indr_reference) -__indr_reference(_pipe, pipe) -#else - -#include <unistd.h> -int _pipe(int *); - -int -pipe(int *fildes) -{ - - return _pipe(fildes); -} -#endif diff --git a/lib/libc/sys/_sbrk.c b/lib/libc/sys/_sbrk.c deleted file mode 100644 index 169916adead..00000000000 --- a/lib/libc/sys/_sbrk.c +++ /dev/null @@ -1,45 +0,0 @@ -/* $NetBSD: _sbrk.c,v 1.6 2009/10/21 01:07:45 snj Exp $ */ - -/* - * Copyright (c) 1996 Christos Zoulas. 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. - * - * 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. - */ - -#include <sys/cdefs.h> -#if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: _sbrk.c,v 1.6 2009/10/21 01:07:45 snj Exp $"); -#endif /* LIBC_SCCS and not lint */ - -#if defined(__indr_reference) -__indr_reference(_sbrk, sbrk) -#else - -#include <unistd.h> -void * _sbrk(intptr_t); - -void * -sbrk(intptr_t incr) -{ - - return _sbrk(incr); -} -#endif |
