From 348a09008175c5a0411aa65e3c1e6c43ed7879b7 Mon Sep 17 00:00:00 2001 From: jtc Date: Wed, 15 Dec 1993 18:08:12 +0000 Subject: [PATCH] Add explicit return types and needed header files to SYNOPSIS section. --- lib/libc/sys/madvise.2 | 5 ++++- lib/libc/sys/mincore.2 | 5 ++++- lib/libc/sys/mprotect.2 | 5 ++++- lib/libc/sys/msync.2 | 5 ++++- lib/libc/sys/munmap.2 | 5 ++++- lib/libc/sys/sigaction.2 | 3 ++- 6 files changed, 22 insertions(+), 6 deletions(-) diff --git a/lib/libc/sys/madvise.2 b/lib/libc/sys/madvise.2 index d185ffe6e69e..edcac2227963 100644 --- a/lib/libc/sys/madvise.2 +++ b/lib/libc/sys/madvise.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)madvise.2 6.1 (Berkeley) 5/27/91 -.\" $Id: madvise.2,v 1.3 1993/08/05 21:31:41 jtc Exp $ +.\" $Id: madvise.2,v 1.4 1993/12/15 18:08:12 jtc Exp $ .\" .Dd May 27, 1991 .Dt MADVISE 2 @@ -39,6 +39,9 @@ .Nm madvise .Nd give advise about use of memory .Sh SYNOPSIS +.Fd #include +.Fd #include +.Ft int .Fn madvise "caddr_t addr" "int len" "int behav" .Sh DESCRIPTION The diff --git a/lib/libc/sys/mincore.2 b/lib/libc/sys/mincore.2 index e514b0413598..46df9bdabc85 100644 --- a/lib/libc/sys/mincore.2 +++ b/lib/libc/sys/mincore.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)mincore.2 6.1 (Berkeley) 5/27/91 -.\" $Id: mincore.2,v 1.3 1993/08/05 21:31:42 jtc Exp $ +.\" $Id: mincore.2,v 1.4 1993/12/15 18:08:14 jtc Exp $ .\" .Dd May 27, 1991 .Dt MINCORE 2 @@ -39,6 +39,9 @@ .Nm mincore .Nd determine residency of memory pages .Sh SYNOPSIS +.Fd #include +.Fd #include +.Ft int .Fn mincore "caddr_t addr" "int len" "char *vec" .Sh DESCRIPTION The diff --git a/lib/libc/sys/mprotect.2 b/lib/libc/sys/mprotect.2 index a4cb56bd9c87..711e7ae97a53 100644 --- a/lib/libc/sys/mprotect.2 +++ b/lib/libc/sys/mprotect.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)mprotect.2 6.1 (Berkeley) 5/27/91 -.\" $Id: mprotect.2,v 1.3 1993/08/05 21:31:43 jtc Exp $ +.\" $Id: mprotect.2,v 1.4 1993/12/15 18:08:16 jtc Exp $ .\" .Dd May 27, 1991 .Dt MPROTECT 2 @@ -39,6 +39,9 @@ .Nm mprotect .Nd control the protection of pages .Sh SYNOPSIS +.Fd #include +.Fd #include +.Ft int .Fn mprotect "caddr_t addr" "int len" "int prot" .Sh DESCRIPTION The diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2 index 6645ad55a7ab..3e9b65a6f19c 100644 --- a/lib/libc/sys/msync.2 +++ b/lib/libc/sys/msync.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)msync.2 6.1 (Berkeley) 5/27/91 -.\" $Id: msync.2,v 1.3 1993/08/05 21:31:44 jtc Exp $ +.\" $Id: msync.2,v 1.4 1993/12/15 18:08:17 jtc Exp $ .\" .Dd May 27, 1991 .Dt MSYNC 2 @@ -39,6 +39,9 @@ .Nm msync .Nd synchronize a mapped region .Sh SYNOPSIS +.Fd #include +.Fd #include +.Ft int .Fn msync "caddr_t addr" "int len" .Sh DESCRIPTION The diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2 index 3b94f90799c3..f4659a13c72d 100644 --- a/lib/libc/sys/munmap.2 +++ b/lib/libc/sys/munmap.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)munmap.2 6.1 (Berkeley) 5/27/91 -.\" $Id: munmap.2,v 1.3 1993/08/05 21:31:46 jtc Exp $ +.\" $Id: munmap.2,v 1.4 1993/12/15 18:08:18 jtc Exp $ .\" .Dd May 27, 1991 .Dt MUNMAP 2 @@ -39,6 +39,9 @@ .Nm munmap .Nd remove a mapping .Sh SYNOPSIS +.Fd #include +.Fd #include +.Ft int .Fn munmap "caddr_t addr" "int len" .Sh DESCRIPTION The diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2 index 622ea3bb0f0c..ef4d4a635a30 100644 --- a/lib/libc/sys/sigaction.2 +++ b/lib/libc/sys/sigaction.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)sigaction.2 6.3 (Berkeley) 7/23/91 -.\" $Id: sigaction.2,v 1.3 1993/10/15 00:05:58 jtc Exp $ +.\" $Id: sigaction.2,v 1.4 1993/12/15 18:08:20 jtc Exp $ .\" .Dd July 23, 1991 .Dt SIGACTION 2 @@ -47,6 +47,7 @@ struct sigaction { int sa_flags; }; .Ed +.Ft int .Fn sigaction "int sig" "struct sigaction *act" "struct sigaction *oact" .Sh DESCRIPTION The system defines a set of signals that may be delivered to a process.