More manpage tweaks.

This commit is contained in:
jtc 1993-12-15 20:32:47 +00:00
parent 77e8bced10
commit 412e7d5328
6 changed files with 22 additions and 21 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" from: @(#)setuid.3 6.4 (Berkeley) 4/19/91 .\" from: @(#)setuid.3 6.4 (Berkeley) 4/19/91
.\" $Id: setuid.3,v 1.2 1993/07/30 08:38:36 mycroft Exp $ .\" $Id: setuid.3,v 1.3 1993/12/15 20:32:47 jtc Exp $
.\" .\"
.Dd April 19, 1991 .Dd April 19, 1991
.Dt SETUID 3 .Dt SETUID 3
@ -45,6 +45,7 @@
.Nd set user and group ID .Nd set user and group ID
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <sys/types.h> .Fd #include <sys/types.h>
.Fd #include <unistd.h>
.Ft int .Ft int
.Fn setuid "uid_t uid" .Fn setuid "uid_t uid"
.Ft int .Ft int

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" from: @(#)tcsetattr.3 5.2 (Berkeley) 3/4/92 .\" from: @(#)tcsetattr.3 5.2 (Berkeley) 3/4/92
.\" $Id: tcsetattr.3,v 1.3 1993/11/30 00:50:58 jtc Exp $ .\" $Id: tcsetattr.3,v 1.4 1993/12/15 20:32:49 jtc Exp $
.\" .\"
.Dd "March 4, 1992" .Dd "March 4, 1992"
.Dt TCSETATTR 3 .Dt TCSETATTR 3
@ -48,11 +48,11 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <termios.h> .Fd #include <termios.h>
.Ft speed_t .Ft speed_t
.Fn cfgetispeed "struct termios *t" .Fn cfgetispeed "const struct termios *t"
.Ft int .Ft int
.Fn cfsetispeed "struct termios *t" "speed_t speed" .Fn cfsetispeed "struct termios *t" "speed_t speed"
.Ft speed_t .Ft speed_t
.Fn cfgetospeed "struct termios *t" .Fn cfgetospeed "const struct termios *t"
.Ft int .Ft int
.Fn cfsetospeed "struct termios *t" "speed_t speed" .Fn cfsetospeed "struct termios *t" "speed_t speed"
.Ft void .Ft void
@ -62,7 +62,7 @@
.Ft int .Ft int
.Fn tcgetattr "int fd" "struct termios *t" .Fn tcgetattr "int fd" "struct termios *t"
.Ft int .Ft int
.Fn tcsetattr "int fd" "int action" "struct termios *t" .Fn tcsetattr "int fd" "int action" "const struct termios *t"
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm cfmakeraw , .Nm cfmakeraw ,

View File

@ -34,7 +34,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91 .\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91
.\" $Id: strftime.3,v 1.3 1993/08/19 16:39:47 jtc Exp $ .\" $Id: strftime.3,v 1.4 1993/12/15 20:33:00 jtc Exp $
.\" .\"
.Dd June 29, 1991 .Dd June 29, 1991
.Dt STRFTIME 3 .Dt STRFTIME 3
@ -43,9 +43,7 @@
.Nm strftime .Nm strftime
.Nd format date and time .Nd format date and time
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <time.h> .Fd #include <time.h>
.Fd #include <string.h>
.Ft size_t .Ft size_t
.Fn strftime "char *buf" "size_t maxsize" "const char *format" "const struct tm *timeptr" .Fn strftime "char *buf" "size_t maxsize" "const char *format" "const struct tm *timeptr"
.Sh DESCRIPTION .Sh DESCRIPTION

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" from: @(#)kill.2 6.6 (Berkeley) 3/10/91 .\" from: @(#)kill.2 6.6 (Berkeley) 3/10/91
.\" $Id: kill.2,v 1.4 1993/11/29 21:25:16 jtc Exp $ .\" $Id: kill.2,v 1.5 1993/12/15 20:40:35 jtc Exp $
.\" .\"
.Dd March 10, 1991 .Dd March 10, 1991
.Dt KILL 2 .Dt KILL 2
@ -39,7 +39,8 @@
.Nm kill .Nm kill
.Nd send signal to a process .Nd send signal to a process
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <sys/signal.h> .Fd #include <sys/types.h>
.Fd #include <signal.h>
.Ft int .Ft int
.Fn kill "pid_t pid" "int sig" .Fn kill "pid_t pid" "int sig"
.Sh DESCRIPTION .Sh DESCRIPTION

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" from: @(#)setpgid.2 6.3 (Berkeley) 3/10/91 .\" from: @(#)setpgid.2 6.3 (Berkeley) 3/10/91
.\" $Id: setpgid.2,v 1.4 1993/11/29 21:25:34 jtc Exp $ .\" $Id: setpgid.2,v 1.5 1993/12/15 20:40:37 jtc Exp $
.\" .\"
.Dd March 10, 1991 .Dd March 10, 1991
.Dt SETPGRP 2 .Dt SETPGRP 2
@ -42,9 +42,9 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <unistd.h> .Fd #include <unistd.h>
.Ft int .Ft int
.Fn setpgid pid_tpid pid_tpgrp .Fn setpgid "pid_t pid" "pid_t pgrp"
.Ft int .Ft int
.Fn setpgrp pid_tpid pid_tpgrp .Fn setpgrp "pid_t pid" "pid_t pgrp"
.Sh DESCRIPTION .Sh DESCRIPTION
.Fn Setpgid .Fn Setpgid
sets the process group of the specified process sets the process group of the specified process

View File

@ -30,11 +30,11 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" from: @(#)uname.2 6.6 (Berkeley) 3/10/91 .\" from: @(#)uname.2 6.6 (Berkeley) 3/10/91
.\" $Id: uname.2,v 1.4 1993/11/29 21:25:51 jtc Exp $ .\" $Id: uname.2,v 1.5 1993/12/15 20:40:38 jtc Exp $
.\" .\"
.Dd March 29, 1993 .Dd March 29, 1993
.Dt UNAME 2 .Dt UNAME 2
.Os Posix .Os
.Sh NAME .Sh NAME
.Nm uname .Nm uname
.Nd get host information .Nd get host information
@ -77,18 +77,19 @@ further identify the operating system.
.Fa Machine .Fa Machine
contains the standard name that identifies the hardware contains the standard name that identifies the hardware
that the UNIX system is running on. that the UNIX system is running on.
.Sn ERRORS .Sh RETURN VALUE
Upon successful completion a value of 0 is returned.
Otherwise, a value of -1 is returned and
.Va errno
is set to indicate the error.
.Sh ERRORS
.Bl -tag -width Er .Bl -tag -width Er
.It Bq Er EFAULT .It Bq Er EFAULT
.Fn Uname .Fn Uname
will fail if will fail if
.Fa name .Fa name
points to an invalid address. points to an invalid address.
.Sh RETURN VALUE .El
Upon successful completion a value of 0 is returned.
Otherwise, a value of -1 is returned and
.Va errno
is set to indicate the error.
.Sh SEE ALSO .Sh SEE ALSO
.Xr hostname 1 , .Xr hostname 1 ,
.Xr machine 1 , .Xr machine 1 ,