From f9d3835e37ef52edc81ab34243babdcdc2369783 Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Sun, 8 Feb 1998 22:45:16 +0000 Subject: Better lint(1) framework. Mostly from cgd@NetBSD --- lib/libc/arch/alpha/protolib.h | 46 ------- lib/libc/arch/i386/protolib.h | 58 --------- lib/libc/arch/m68k/protolib.h | 57 --------- lib/libc/arch/mips/protolib.h | 47 -------- lib/libc/arch/ns32k/protolib.h | 51 -------- lib/libc/arch/sparc/protolib.h | 48 -------- lib/libc/arch/vax/protolib.h | 50 -------- lib/libc/sys/Lint_Ovfork.c | 16 +++ lib/libc/sys/Lint_brk.c | 17 +++ lib/libc/sys/Lint_exect.c | 19 +++ lib/libc/sys/Lint_fork.c | 16 +++ lib/libc/sys/Lint_pipe.c | 17 +++ lib/libc/sys/Lint_ptrace.c | 20 ++++ lib/libc/sys/Lint_sbrk.c | 17 +++ lib/libc/sys/Lint_setlogin.c | 17 +++ lib/libc/sys/Lint_sigpending.c | 17 +++ lib/libc/sys/Lint_sigprocmask.c | 19 +++ lib/libc/sys/Lint_sigreturn.c | 17 +++ lib/libc/sys/Lint_sigsuspend.c | 17 +++ lib/libc/sys/Lint_syscall.c | 27 +++++ lib/libc/sys/Makefile.inc | 38 +++++- lib/libc/sys/makelintstub.sh | 228 +++++++++++++++++++++++++++++++++++ lib/libc/sys/protolib.c | 260 ---------------------------------------- 23 files changed, 498 insertions(+), 621 deletions(-) delete mode 100644 lib/libc/arch/alpha/protolib.h delete mode 100644 lib/libc/arch/i386/protolib.h delete mode 100644 lib/libc/arch/m68k/protolib.h delete mode 100644 lib/libc/arch/mips/protolib.h delete mode 100644 lib/libc/arch/ns32k/protolib.h delete mode 100644 lib/libc/arch/sparc/protolib.h delete mode 100644 lib/libc/arch/vax/protolib.h create mode 100644 lib/libc/sys/Lint_Ovfork.c create mode 100644 lib/libc/sys/Lint_brk.c create mode 100644 lib/libc/sys/Lint_exect.c create mode 100644 lib/libc/sys/Lint_fork.c create mode 100644 lib/libc/sys/Lint_pipe.c create mode 100644 lib/libc/sys/Lint_ptrace.c create mode 100644 lib/libc/sys/Lint_sbrk.c create mode 100644 lib/libc/sys/Lint_setlogin.c create mode 100644 lib/libc/sys/Lint_sigpending.c create mode 100644 lib/libc/sys/Lint_sigprocmask.c create mode 100644 lib/libc/sys/Lint_sigreturn.c create mode 100644 lib/libc/sys/Lint_sigsuspend.c create mode 100644 lib/libc/sys/Lint_syscall.c create mode 100644 lib/libc/sys/makelintstub.sh delete mode 100644 lib/libc/sys/protolib.c (limited to 'lib/libc') diff --git a/lib/libc/arch/alpha/protolib.h b/lib/libc/arch/alpha/protolib.h deleted file mode 100644 index 3e70b648f5d..00000000000 --- a/lib/libc/arch/alpha/protolib.h +++ /dev/null @@ -1,46 +0,0 @@ -/* $OpenBSD: protolib.h,v 1.2 1996/11/13 20:47:49 niklas Exp $ */ - -/* - * Copyright (c) 1995 Jochen Pohl - * 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 by Jochen Pohl for - * The NetBSD project. - * 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. - */ - -#include -#include - -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -double fabs(double); -void longjmp(jmp_buf, int); -void _longjmp(jmp_buf, int); -int setjmp(jmp_buf); -int _setjmp(jmp_buf); -void siglongjmp(sigjmp_buf, int); -int sigsetjmp(sigjmp_buf, int); diff --git a/lib/libc/arch/i386/protolib.h b/lib/libc/arch/i386/protolib.h deleted file mode 100644 index 0eed605f6d6..00000000000 --- a/lib/libc/arch/i386/protolib.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 1995 Jochen Pohl - * 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 by Jochen Pohl for - * The NetBSD project. - * 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. - * - * $OpenBSD: protolib.h,v 1.2 1996/09/15 10:09:08 tholo Exp $ - */ - -#include -#include -#include -#include -#include - -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -void *alloca(size_t); -int exect(const char *, char * const [], char * const []); -double fabs(double); -int __flt_rounds(void); -fp_except fpgetmask(void); -fp_rnd fpgetround(void); -fp_except fpgetsticky(void); -fp_except fpsetmask(fp_except); -fp_rnd fpsetround(fp_rnd); -void _longjmp(jmp_buf, int); -void longjmp(jmp_buf, int); -double modf(double, double *); -int _setjmp(jmp_buf); -int setjmp(jmp_buf); -void siglongjmp(sigjmp_buf, int); -int sigsetjmp(sigjmp_buf, int); diff --git a/lib/libc/arch/m68k/protolib.h b/lib/libc/arch/m68k/protolib.h deleted file mode 100644 index 18305bd8890..00000000000 --- a/lib/libc/arch/m68k/protolib.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 1995 Jochen Pohl - * 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 by Jochen Pohl for - * The NetBSD project. - * 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. - * - * $OpenBSD: protolib.h,v 1.1 1996/03/25 23:31:24 tholo Exp $ - */ - -#include -#include -#include -#include -#include - -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -void *alloca(size_t); -double fabs(double); -int __flt_rounds(void); -fp_except fpgetmask(void); -fp_rnd fpgetround(void); -fp_except fpgetsticky(void); -fp_except fpsetmask(fp_except); -fp_rnd fpsetround(fp_rnd); -void _longjmp(jmp_buf, int); -void longjmp(jmp_buf, int); -double modf(double, double *); -int _setjmp(jmp_buf); -int setjmp(jmp_buf); -void siglongjmp(sigjmp_buf, int); -int sigsetjmp(sigjmp_buf, int); diff --git a/lib/libc/arch/mips/protolib.h b/lib/libc/arch/mips/protolib.h deleted file mode 100644 index d14f39dfca6..00000000000 --- a/lib/libc/arch/mips/protolib.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 1995 Jochen Pohl - * 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 by Jochen Pohl for - * The NetBSD project. - * 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. - * - * $OpenBSD: protolib.h,v 1.1 1996/03/25 23:31:28 tholo Exp $ - */ - -#include -#include - -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -double fabs(double); -int isinf(double); -double ldexp(double, int); -void longjmp(jmp_buf, int); -void _longjmp(jmp_buf, int); -double modf(double, double *); -int setjmp(jmp_buf); -int _setjmp(jmp_buf); diff --git a/lib/libc/arch/ns32k/protolib.h b/lib/libc/arch/ns32k/protolib.h deleted file mode 100644 index b0424e71eb4..00000000000 --- a/lib/libc/arch/ns32k/protolib.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 1995 Jochen Pohl - * 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 by Jochen Pohl for - * The NetBSD project. - * 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. - * - * $OpenBSD: protolib.h,v 1.1 1996/03/25 23:31:32 tholo Exp $ - */ - -#include -#include -#include - -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -void *alloca(size_t); -double fabs(double); -double frexp(double, int *); -double ldexp(double, int); -void longjmp(jmp_buf, int); -void _longjmp(jmp_buf, int); -double modf(double, double *); -int setjmp(jmp_buf); -int _setjmp(jmp_buf); -void siglongjmp(sigjmp_buf, int); -int sigsetjmp(sigjmp_buf, int); diff --git a/lib/libc/arch/sparc/protolib.h b/lib/libc/arch/sparc/protolib.h deleted file mode 100644 index 62c87e353aa..00000000000 --- a/lib/libc/arch/sparc/protolib.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 1995 Jochen Pohl - * 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 by Jochen Pohl for - * The NetBSD project. - * 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. - * - * $OpenBSD: protolib.h,v 1.1 1996/03/25 23:31:36 tholo Exp $ - */ - -#include -#include -#include - -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -double fabs(double); -void longjmp(jmp_buf, int); -void _longjmp(jmp_buf, int); -double modf(double, double *); -int setjmp(jmp_buf); -int _setjmp(jmp_buf); -void siglongjmp(sigjmp_buf, int); -int sigsetjmp(sigjmp_buf, int); diff --git a/lib/libc/arch/vax/protolib.h b/lib/libc/arch/vax/protolib.h deleted file mode 100644 index c0fde949493..00000000000 --- a/lib/libc/arch/vax/protolib.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 1995 Jochen Pohl - * 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 by Jochen Pohl for - * The NetBSD project. - * 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. - * - * $OpenBSD: protolib.h,v 1.1 1996/03/25 23:31:40 tholo Exp $ - */ - -#include -#include -#include - -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -void *alloca(size_t); -double fabs(double); -void longjmp(jmp_buf, int); -void _longjmp(jmp_buf, int); -double ldexp(double, int); -double modf(double, double *); -int setjmp(jmp_buf); -int _setjmp(jmp_buf); -void siglongjmp(sigjmp_buf, int); -int sigsetjmp(sigjmp_buf, int); diff --git a/lib/libc/sys/Lint_Ovfork.c b/lib/libc/sys/Lint_Ovfork.c new file mode 100644 index 00000000000..9d5c25cf684 --- /dev/null +++ b/lib/libc/sys/Lint_Ovfork.c @@ -0,0 +1,16 @@ +/* $OpenBSD: Lint_Ovfork.c,v 1.1 1998/02/08 22:45:08 tholo 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 + +/*ARGSUSED*/ +pid_t +vfork() +{ + return (0); +} diff --git a/lib/libc/sys/Lint_brk.c b/lib/libc/sys/Lint_brk.c new file mode 100644 index 00000000000..665d423abb9 --- /dev/null +++ b/lib/libc/sys/Lint_brk.c @@ -0,0 +1,17 @@ +/* $OpenBSD: Lint_brk.c,v 1.1 1998/02/08 22:45:09 tholo 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 + +/*ARGSUSED*/ +char * +brk(addr) + const char *addr; +{ + return (0); +} diff --git a/lib/libc/sys/Lint_exect.c b/lib/libc/sys/Lint_exect.c new file mode 100644 index 00000000000..4b5d807586e --- /dev/null +++ b/lib/libc/sys/Lint_exect.c @@ -0,0 +1,19 @@ +/* $OpenBSD: Lint_exect.c,v 1.1 1998/02/08 22:45:09 tholo 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 + +/*ARGSUSED*/ +int +exect(path, argv, envp) + 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 new file mode 100644 index 00000000000..07f960ca7d0 --- /dev/null +++ b/lib/libc/sys/Lint_fork.c @@ -0,0 +1,16 @@ +/* $OpenBSD: Lint_fork.c,v 1.1 1998/02/08 22:45:10 tholo 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 + +/*ARGSUSED*/ +pid_t +fork() +{ + return (0); +} diff --git a/lib/libc/sys/Lint_pipe.c b/lib/libc/sys/Lint_pipe.c new file mode 100644 index 00000000000..df07e3e95b3 --- /dev/null +++ b/lib/libc/sys/Lint_pipe.c @@ -0,0 +1,17 @@ +/* $OpenBSD: Lint_pipe.c,v 1.1 1998/02/08 22:45:10 tholo Exp $ */ +/* $NetBSD: Lint_pipe.c,v 1.1 1997/11/06 00:52:59 cgd Exp $ */ + +/* + * This file placed in the public domain. + * Chris Demetriou, November 5, 1997. + */ + +#include + +/*ARGSUSED*/ +int +pipe(filedes) + int filedes[2]; +{ + return (0); +} diff --git a/lib/libc/sys/Lint_ptrace.c b/lib/libc/sys/Lint_ptrace.c new file mode 100644 index 00000000000..895f672b081 --- /dev/null +++ b/lib/libc/sys/Lint_ptrace.c @@ -0,0 +1,20 @@ +/* $OpenBSD: Lint_ptrace.c,v 1.1 1998/02/08 22:45:10 tholo Exp $ */ +/* $NetBSD: Lint_ptrace.c,v 1.1 1997/11/06 00:53:02 cgd Exp $ */ + +/* + * This file placed in the public domain. + * Chris Demetriou, November 5, 1997. + */ + +#include + +/*ARGSUSED*/ +int +ptrace(request, pid, addr, data) + int request; + pid_t pid; + caddr_t addr; + int data; +{ + return (0); +} diff --git a/lib/libc/sys/Lint_sbrk.c b/lib/libc/sys/Lint_sbrk.c new file mode 100644 index 00000000000..13624c124be --- /dev/null +++ b/lib/libc/sys/Lint_sbrk.c @@ -0,0 +1,17 @@ +/* $OpenBSD: Lint_sbrk.c,v 1.1 1998/02/08 22:45:11 tholo 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 + +/*ARGSUSED*/ +char * +sbrk(incr) + int incr; +{ + return (0); +} diff --git a/lib/libc/sys/Lint_setlogin.c b/lib/libc/sys/Lint_setlogin.c new file mode 100644 index 00000000000..8c0e114432b --- /dev/null +++ b/lib/libc/sys/Lint_setlogin.c @@ -0,0 +1,17 @@ +/* $OpenBSD: Lint_setlogin.c,v 1.1 1998/02/08 22:45:12 tholo 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 + +/*ARGSUSED*/ +int +setlogin(name) + const char *name; +{ + return (0); +} diff --git a/lib/libc/sys/Lint_sigpending.c b/lib/libc/sys/Lint_sigpending.c new file mode 100644 index 00000000000..cede2075161 --- /dev/null +++ b/lib/libc/sys/Lint_sigpending.c @@ -0,0 +1,17 @@ +/* $OpenBSD: Lint_sigpending.c,v 1.1 1998/02/08 22:45:12 tholo 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 + +/*ARGSUSED*/ +int +sigpending(set) + sigset_t *set; +{ + return (0); +} diff --git a/lib/libc/sys/Lint_sigprocmask.c b/lib/libc/sys/Lint_sigprocmask.c new file mode 100644 index 00000000000..3a420cb3cbe --- /dev/null +++ b/lib/libc/sys/Lint_sigprocmask.c @@ -0,0 +1,19 @@ +/* $OpenBSD: Lint_sigprocmask.c,v 1.1 1998/02/08 22:45:13 tholo 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 + +/*ARGSUSED*/ +int +sigprocmask(how, set, oset) + 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 new file mode 100644 index 00000000000..61e9cdfc5d5 --- /dev/null +++ b/lib/libc/sys/Lint_sigreturn.c @@ -0,0 +1,17 @@ +/* $OpenBSD: Lint_sigreturn.c,v 1.1 1998/02/08 22:45:13 tholo 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 + +/*ARGSUSED*/ +int +sigreturn(scp) + struct sigcontext *scp; +{ + return (0); +} diff --git a/lib/libc/sys/Lint_sigsuspend.c b/lib/libc/sys/Lint_sigsuspend.c new file mode 100644 index 00000000000..8f6f819f4f1 --- /dev/null +++ b/lib/libc/sys/Lint_sigsuspend.c @@ -0,0 +1,17 @@ +/* $OpenBSD: Lint_sigsuspend.c,v 1.1 1998/02/08 22:45:14 tholo 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 + +/*ARGSUSED*/ +int +sigsuspend(sigmask) + const sigset_t *sigmask; +{ + return (0); +} diff --git a/lib/libc/sys/Lint_syscall.c b/lib/libc/sys/Lint_syscall.c new file mode 100644 index 00000000000..d1afedad86c --- /dev/null +++ b/lib/libc/sys/Lint_syscall.c @@ -0,0 +1,27 @@ +/* $OpenBSD: Lint_syscall.c,v 1.1 1998/02/08 22:45:14 tholo 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 +#ifdef __STDC__ +#include +#else +#include +#endif + +/*ARGSUSED*/ +int +#ifdef __STDC__ +syscall(int arg1, ...) +#else +syscall(arg1, va_alist) + int arg1; + va_dcl +#endif +{ + return (0); +} diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 4aa099044a7..cac4a5837f4 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.24 1997/11/13 07:11:13 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.25 1998/02/08 22:45:14 tholo Exp $ # $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 @@ -10,6 +10,15 @@ SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S pipe.S ptrace.S \ sbrk.S setlogin.S sigpending.S sigprocmask.S sigreturn.S \ sigsuspend.S syscall.S +LSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \ + Lint_pipe.c Lint_ptrace.c Lint_sbrk.c Lint_setlogin.c \ + Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \ + Lint_sigsuspend.c Lint_syscall.c +DPSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \ + Lint_pipe.c Lint_ptrace.c Lint_sbrk.c Lint_setlogin.c \ + Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \ + Lint_sigsuspend.c Lint_syscall.c + # glue to provide compatibility between GCC 1.X and 2.X and for compat # with old syscall interfaces. SRCS+= ftruncate.c lseek.c mmap.c semctl.c truncate.c \ @@ -107,10 +116,31 @@ ${PSEUDO}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h @${LD} -X -r ${.TARGET}.o -o ${.TARGET} @rm -f ${.TARGET}.o -LSRCS+= protolib.c +# 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 +DPSRCS+= LintSysNormal.c + +CLEANFILES+= LintSysNormal.c LintSysNoerr.c LintSysPseudo.c + +LintSysNormal.c: ${.CURDIR}/sys/makelintstub.sh \ + ${DESTDIR}/usr/include/sys/syscall.h + @echo creating ${.TARGET} + @sh ${.CURDIR}/sys/makelintstub.sh -o ${.TARGET} \ + -s ${DESTDIR}/usr/include/sys/syscall.h ${ASM} -protolib.ln: - ${LINT} ${LINTFLAGS} ${CFLAGS:M-[IDU]*} ${AINC} -i ${.IMPSRC} +LintSysNoerr.c: ${.CURDIR}/sys/makelintstub.sh \ + ${DESTDIR}/usr/include/sys/syscall.h + @echo creating ${.TARGET} + @sh ${.CURDIR}/sys/makelintstub.sh -o ${.TARGET} -n \ + -s ${DESTDIR}/usr/include/sys/syscall.h ${NOERR} + +LintSysPseudoNoerr.c: ${.CURDIR}/sys/makelintstub.sh \ + ${DESTDIR}/usr/include/sys/syscall.h + @echo creating ${.TARGET} + @sh ${.CURDIR}/sys/makelintstub.sh -o ${.TARGET} -p \ + -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDONOERR} MAN+= accept.2 access.2 acct.2 adjtime.2 bind.2 brk.2 chdir.2 chflags.2 \ chmod.2 chown.2 chroot.2 clock_gettime.2 close.2 connect.2 dup.2 \ diff --git a/lib/libc/sys/makelintstub.sh b/lib/libc/sys/makelintstub.sh new file mode 100644 index 00000000000..b5deb3fe59f --- /dev/null +++ b/lib/libc/sys/makelintstub.sh @@ -0,0 +1,228 @@ +#!/bin/sh - +# $OpenBSD: makelintstub.sh,v 1.1 1998/02/08 22:45:15 tholo 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 + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #undef DIRBLKSIZ + #include + #include + #include + #include + #ifdef __STDC__ + #include + #else + #include + #endif + + __EOF__ +} + +syscall_stub() +{ + + syscallhdr="$1" + syscallname="$2" + funcname="$3" + + arglist="`printf '#include "'"$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:" + + cat <<- __EOF__ + /*ARGSUSED*/ + $returntype + __EOF__ + + if [ "`eval echo -n \\$$#`" = "..." ]; then + varargs=YES + nargs=$(($# - 1)) + else + varargs=NO + nargs=$# + fi + nargswithva=$# + + # do ANSI C function header + if [ $varargs = YES ]; then + echo "#ifdef __STDC__" + + echo -n "$funcname(" + 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 + if [ $varargs = YES ]; then + echo -n "..." + fi + echo ")" + + # do K&R C function header + echo "#else" + fi + + echo -n "$funcname(" + i=1 + while [ $i -le $nargs ]; do + echo -n "arg$i" + if [ $i -lt $nargswithva ]; then + echo -n ", " + fi + i=$(($i + 1)) + done + if [ $varargs = YES ]; then + echo -n "va_alist" + fi + echo ")" + i=1 + while [ $i -le $nargs ]; do + eval echo -n \"" \$$i"\" + echo " arg$i;" + i=$(($i + 1)) + done + if [ $varargs = YES ]; then + echo " va_dcl" + fi + + # do function body + if [ $varargs = YES ]; then + echo "#endif" + fi + echo "{" + if [ "$returntype" != "void" ]; then + echo " return (($returntype)0);" + fi + echo "}" +} + +trailer() +{ + + cat <<- __EOF__ + /* END */ + __EOF__ +} + +set -- `getopt no:ps: $*` + +pflag=NO +nflag=NO +oarg="" +syscallhdr=/usr/include/sys/syscall.h + +if test $? -ne 0; then + usage +fi +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 diff --git a/lib/libc/sys/protolib.c b/lib/libc/sys/protolib.c deleted file mode 100644 index f41c2984783..00000000000 --- a/lib/libc/sys/protolib.c +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Copyright (c) 1995 Jochen Pohl - * 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 by Jochen Pohl for - * The NetBSD Project. - * 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. - */ - -#if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: protolib.c,v 1.5 1997/12/27 12:04:18 tholo Exp $"; -#endif /* LIBC_SCCS and not lint */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "protolib.h" - -struct blockinfo; - -/* - * Don't include anything after protolib.h, - * both LINTLIBRARY and PROTOLIB1 are active. - */ - -int syscall(int, ...); /* 0 */ -void _exit(int); /* 1 */ -pid_t fork(void); /* 2 */ -ssize_t read(int, void *, size_t); /* 3 */ -ssize_t write(int, const void *, size_t); /* 4 */ -int open(const char *, int, ...); /* 5 */ -int close(int); /* 6 */ -pid_t wait4(pid_t, int *, int, struct rusage *); /* 7 */ - -int link(const char *, const char *); /* 9 */ -int unlink(const char *); /* 10 */ - -int chdir(const char *); /* 12 */ -int fchdir(int); /* 13 */ -int mknod(const char *, mode_t, dev_t); /* 14 */ -int chmod(const char *, mode_t); /* 15 */ -int chown(const char *, uid_t, gid_t); /* 16 */ -char *brk(const char *); /* 17 */ -int getfsstat(struct statfs *, long, int); /* 18 */ - -pid_t getpid(void); /* 20 */ -int mount(const char *, const char *, int, void *); /* 21 */ -int unmount(const char *, int); /* 22 */ -int setuid(uid_t); /* 23 */ -uid_t getuid(void); /* 24 */ -uid_t geteuid(void); /* 25 */ -int ptrace(int, pid_t, caddr_t, int); /* 26 */ -ssize_t recvmsg(int, struct msghdr *, int); /* 27 */ -ssize_t sendmsg(int, const struct msghdr *, int); /* 28 */ -ssize_t recvfrom(int, void *, size_t, int, struct sockaddr *, /* 29 */ - int *); -int accept(int, struct sockaddr *, int *); /* 30 */ -int getpeername(int, struct sockaddr *, int *); /* 31 */ -int getsockname(int, struct sockaddr *, int *); /* 32 */ -int access(const char *, int); /* 33 */ -int chflags(const char *, u_long); /* 34 */ -int fchflags(int, u_long); /* 35 */ -void sync(void); /* 36 */ -int kill(pid_t, int); /* 37 */ - -pid_t getppid(void); /* 39 */ - -int dup(int); /* 41 */ -int pipe(int *); /* 42 */ -gid_t getegid(void); /* 43 */ -int profil(char *, size_t, u_long, u_int); /* 44 */ -int ktrace(const char *, int, int, pid_t); /* 45 */ -int sigaction(int, const struct sigaction *, /* 46 */ - struct sigaction *); -gid_t getgid(void); /* 47 */ -int sigprocmask(int, const sigset_t *, sigset_t *); /* 48 */ -int _getlogin(char *, u_int); /* 49 */ -int setlogin(const char *); /* 50 */ -int acct(const char *); /* 51 */ -int sigpending(sigset_t *); /* 52 */ -int sigaltstack(const struct sigaltstack *, /* 53 */ - struct sigaltstack *); -int ioctl(int, u_long, ...); /* 54 */ -int reboot(int); /* 55 */ -int revoke(const char *); /* 56 */ -int symlink(const char *, const char *); /* 57 */ -int readlink(const char *, char *, int); /* 58 */ -int execve(const char *, char *const [], char *const []); /* 59 */ -mode_t umask(mode_t); /* 60 */ -int chroot(const char *); /* 61 */ - -int msync(void *, size_t, int); /* 65 */ -pid_t vfork(void); /* 66 */ - -char *sbrk(int); /* 69 */ -char *sstk(int); /* 70 */ - -int vadvise(int); /* 72 */ -int munmap(void *, size_t); /* 73 */ -int mprotect(void *, size_t, int); /* 74 */ -int madvise(void *, size_t, int); /* 75 */ - -int mincore(void *, size_t, char *); /* 78 */ -int getgroups(int, gid_t *); /* 79 */ -int setgroups(int, const gid_t *); /* 80 */ -pid_t getpgrp(void); /* 81 */ -int setpgid(pid_t, pid_t); /* 82 */ -int setitimer(int, const struct itimerval *, /* 83 */ - struct itimerval *); - -int swapon(const char *); /* 85 */ -int getitimer(int, struct itimerval *); /* 86 */ - -int dup2(int, int); /* 90 */ - -int fcntl(int, int, ...); /* 92 */ -int select(int, fd_set *, fd_set *, fd_set *, /* 93 */ - struct timeval *); - -int fsync(int); /* 95 */ -int setpriority(int, int, int); /* 96 */ -int socket(int, int, int); /* 97 */ -int connect(int, const struct sockaddr *, int); /* 98 */ - -int getpriority(int, int); /* 100 */ - -int sigreturn(struct sigcontext *); /* 103 */ -int bind(int, const struct sockaddr *, int); /* 104 */ -int setsockopt(int, int, int, const void *, int); /* 105 */ -int listen(int, int); /* 106 */ - -int sigsuspend(const sigset_t *); /* 111 */ - -int vtrace(int, int); /* 115 */ -int gettimeofday(struct timeval *, struct timezone *); /* 116 */ -int getrusage(int, struct rusage *); /* 117 */ -int getsockopt(int, int, int, void *, int *); /* 118 */ - -ssize_t readv(int, const struct iovec *, int); /* 120 */ -ssize_t writev(int, const struct iovec *, int); /* 121 */ -int settimeofday(const struct timeval *, /* 122 */ - const struct timezone *); -int fchown(int, uid_t, gid_t); /* 123 */ -int fchmod(int, mode_t); /* 124 */ - -int rename(const char *, const char *); /* 128 */ - -int flock(int, int); /* 131 */ -int mkfifo(const char *, mode_t); /* 132 */ -ssize_t sendto(int, const void *, size_t, int, /* 133 */ - const struct sockaddr *, int); -int shutdown(int, int); /* 134 */ -int socketpair(int, int, int, int *); /* 135 */ -int mkdir(const char *, mode_t); /* 136 */ -int rmdir(const char *); /* 137 */ -int utimes(const char *, const struct timeval *); /* 138 */ - -int adjtime(const struct timeval *, struct timeval *); /* 140 */ - -pid_t setsid(void); /* 147 */ -int quotactl(const char *, int, int, char *); /* 148 */ - -int nfssvc(int, void *); /* 155 */ - -int statfs(const char *, struct statfs *); /* 157 */ -int fstatfs(int, struct statfs *); /* 158 */ - -int getfh(const char *, fhandle_t *); /* 161 */ - -int sysarch(int, char *); /* 165 */ - -int ntp_adjtime(struct timex *); /* 176 */ -int ntp_gettime(struct ntptimeval *); /* 177 */ - -int setgid(gid_t); /* 181 */ -int setegid(gid_t); /* 182 */ -int seteuid(uid_t); /* 183 */ -int lfs_bmapv(fsid_t *, struct block_info *, int); /* 184 */ -int lfs_markv(fsid_t *, struct block_info *, int); /* 185 */ -int lfs_segclean(fsid_t *, u_long); /* 186 */ -int lfs_segwait(fsid_t *, struct timeval *); /* 187 */ -int stat(const char *, struct stat *); /* 188 */ -int fstat(int, struct stat *); /* 189 */ -int lstat(const char *, struct stat *); /* 190 */ -long pathconf(const char *, int); /* 191 */ -long fpathconf(int, int); /* 192 */ - -int getrlimit(int, struct rlimit *); /* 194 */ -int setrlimit(int, const struct rlimit *); /* 195 */ -int getdirentries(int, char *, int, long *); /* 196 */ - -quad_t __syscall(quad_t, ...); /* 198 */ - -int __sysctl(int *, u_int, void *, size_t *, void *, /* 202 */ - size_t); -int mlock(void *, size_t); /* 203 */ -int munlock(void *, size_t); /* 204 */ -int undelete(const char *); /* 205 */ - -int __semctl(int, int, int, union semun *); /* 220 */ -int semget(key_t, int, int); /* 221 */ -int semop(int, struct sembuf *, u_int); /* 222 */ -int semconfig(int); /* 223 */ -int msgctl(int, int, struct msqid_ds *); /* 224 */ -int msgget(key_t, int); /* 225 */ -int msgsnd(int, void *, size_t, int); /* 226 */ -int msgrcv(int, void *, size_t, long, int); /* 227 */ -void *shmat(int, void *, int); /* 228 */ -int shmctl(int, int, struct shmid_ds *); /* 229 */ -int shmdt(void *); /* 230 */ -int shmget(key_t, int, int); /* 231 */ - -int minherit(void *, size_t, int); /* 250 */ -int rfork(int); /* 251 */ -int poll(struct pollfd *, unsigned long, int); /* 252 */ -int issetugid(void); /* 253 */ -- cgit v1.2.3