diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-25 01:50:59 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-25 01:50:59 +0000 |
commit | 176564c329a3abdd5f3d384cb9868e5e3d2e16de (patch) | |
tree | 2c0f95b715225d436266627cf6fd307384df198f | |
parent | 80cfdc8c968fc56c1ec0baa8fd9e0435108d2297 (diff) |
all functions need a return type and at least one arg, even if it's void
-rw-r--r-- | lib/libc/compat-43/sigblock.3 | 4 | ||||
-rw-r--r-- | lib/libc/compat-43/sigsetmask.3 | 4 | ||||
-rw-r--r-- | lib/libc/gen/getttyent.3 | 20 | ||||
-rw-r--r-- | lib/libc/gen/isinf.3 | 18 | ||||
-rw-r--r-- | lib/libc/gen/nice.3 | 4 | ||||
-rw-r--r-- | lib/libc/net/getnetent.3 | 8 | ||||
-rw-r--r-- | lib/libc/net/getprotoent.3 | 8 | ||||
-rw-r--r-- | lib/libc/net/getservent.3 | 6 | ||||
-rw-r--r-- | lib/libc/net/resolver.3 | 10 | ||||
-rw-r--r-- | lib/libc/stdio/getc.3 | 4 |
10 files changed, 50 insertions, 36 deletions
diff --git a/lib/libc/compat-43/sigblock.3 b/lib/libc/compat-43/sigblock.3 index 081fe1008db..f3fc487a642 100644 --- a/lib/libc/compat-43/sigblock.3 +++ b/lib/libc/compat-43/sigblock.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: sigblock.3,v 1.6 1999/05/23 14:10:58 aaron Exp $ +.\" $OpenBSD: sigblock.3,v 1.7 1999/05/25 01:50:57 aaron Exp $ .\" .Dd March 10, 1991 .Dt SIGBLOCK 3 @@ -42,7 +42,7 @@ .Ft int .Fn sigblock "int mask" .Ft int -.Fn sigmask signum +.Fn sigmask "int signum" .Sh DESCRIPTION .Bf -symbolic This interface is made obsolete by: diff --git a/lib/libc/compat-43/sigsetmask.3 b/lib/libc/compat-43/sigsetmask.3 index 5dc53e708ee..1f3c2154f4d 100644 --- a/lib/libc/compat-43/sigsetmask.3 +++ b/lib/libc/compat-43/sigsetmask.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: sigsetmask.3,v 1.6 1999/05/23 14:10:58 aaron Exp $ +.\" $OpenBSD: sigsetmask.3,v 1.7 1999/05/25 01:50:57 aaron Exp $ .\" .Dd March 10, 1991 .Dt SIGSETMASK 3 @@ -41,7 +41,7 @@ .Fd #include <signal.h> .Ft int .Fn sigsetmask "int mask" -.Fn sigmask signum +.Fn sigmask "int signum" .Sh DESCRIPTION .Bf -symbolic This interface is made obsoleted by: diff --git a/lib/libc/gen/getttyent.3 b/lib/libc/gen/getttyent.3 index 4d98f0cdfbd..52cd4c15291 100644 --- a/lib/libc/gen/getttyent.3 +++ b/lib/libc/gen/getttyent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getttyent.3,v 1.4 1999/05/23 14:11:00 aaron Exp $ +.\" $OpenBSD: getttyent.3,v 1.5 1999/05/25 01:50:57 aaron Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -43,16 +43,16 @@ .Sh SYNOPSIS .Fd #include <ttyent.h> .Ft struct ttyent * -.Fn getttyent +.Fn getttyent "void" .Ft struct ttyent * -.Fn getttynam "char *name" +.Fn getttynam "const char *name" .Ft int -.Fn setttyent void +.Fn setttyent "void" .Ft int -.Fn endttyent void +.Fn endttyent "void" .Sh DESCRIPTION The -.Fn getttyent , +.Fn getttyent and .Fn getttynam functions @@ -101,7 +101,8 @@ on this entry). Allow users with a uid of 0 to login on this terminal. .It Dv TTY_LOCAL If the terminal port's driver supports it, cause the line -to be treated as ``local.'' +to be treated as +.Dq local. .It Dv TTY_MDMBUF If the terminal port's driver supports it, use DTR/DCD hardware flow control on the line by default. @@ -116,8 +117,9 @@ carrier on the line. .It Fa ty_window The command to execute for a window system associated with the line. .It Fa ty_comment -Any trailing comment field, with any leading hash marks (``#'') or -whitespace removed. +Any trailing comment field, with any leading hash marks +.Pq Sq \&# +or whitespace removed. .El .Pp If any of the fields pointing to character strings are unspecified, diff --git a/lib/libc/gen/isinf.3 b/lib/libc/gen/isinf.3 index e3652932d09..1f16db4dd7e 100644 --- a/lib/libc/gen/isinf.3 +++ b/lib/libc/gen/isinf.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: isinf.3,v 1.3 1999/05/20 14:50:35 aaron Exp $ +.\" $OpenBSD: isinf.3,v 1.4 1999/05/25 01:50:57 aaron Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -41,21 +41,23 @@ .Sh SYNOPSIS .Fd #include <math.h> .Ft int -.Fn isinf double +.Fn isinf "double n" .Ft int -.Fn isnan double +.Fn isnan "double n" .Sh DESCRIPTION The -.Fn isninf +.Fn isinf function -returns 1 if the number is -.Dq \\*(If , -otherwise 0. +returns 1 if the number +.Fa n +is infinity, otherwise 0. .Pp The .Fn isnan function -returns 1 if the number is +returns 1 if the number +.Fa n +is .Dq not-a-number , otherwise 0. .Sh SEE ALSO diff --git a/lib/libc/gen/nice.3 b/lib/libc/gen/nice.3 index a349d5eb60e..623f382ee14 100644 --- a/lib/libc/gen/nice.3 +++ b/lib/libc/gen/nice.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nice.3,v 1.6 1999/05/23 14:11:00 aaron Exp $ +.\" $OpenBSD: nice.3,v 1.7 1999/05/25 01:50:57 aaron Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -39,7 +39,7 @@ .Nd set program scheduling priority .Sh SYNOPSIS .Fd #include <nlist.h> -.Fd int +.Ft int .Fn nice "int incr" .Sh DESCRIPTION .Bf -symbolic diff --git a/lib/libc/net/getnetent.3 b/lib/libc/net/getnetent.3 index 7a4e9cf5ba2..ddc9a8513b9 100644 --- a/lib/libc/net/getnetent.3 +++ b/lib/libc/net/getnetent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getnetent.3,v 1.6 1999/05/16 19:55:04 alex Exp $ +.\" $OpenBSD: getnetent.3,v 1.7 1999/05/25 01:50:58 aaron Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -44,13 +44,15 @@ .Sh SYNOPSIS .Fd #include <netdb.h> .Ft struct netent * -.Fn getnetent +.Fn getnetent "void" .Ft struct netent * .Fn getnetbyname "char *name" .Ft struct netent * .Fn getnetbyaddr "in_addr_t net" "int type" +.Ft void .Fn setnetent "int stayopen" -.Fn endnetent +.Ft void +.Fn endnetent "void" .Sh DESCRIPTION The .Fn getnetent , diff --git a/lib/libc/net/getprotoent.3 b/lib/libc/net/getprotoent.3 index 91c49d74392..46ab239c508 100644 --- a/lib/libc/net/getprotoent.3 +++ b/lib/libc/net/getprotoent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getprotoent.3,v 1.3 1999/05/23 14:11:01 aaron Exp $ +.\" $OpenBSD: getprotoent.3,v 1.4 1999/05/25 01:50:58 aaron Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -44,13 +44,15 @@ .Sh SYNOPSIS .Fd #include <netdb.h> .Ft struct protoent * -.Fn getprotoent +.Fn getprotoent "void" .Ft struct protoent * .Fn getprotobyname "char *name" .Ft struct protoent * .Fn getprotobynumber "int proto" +.Ft void .Fn setprotoent "int stayopen" -.Fn endprotoent +.Ft void +.Fn endprotoent "void" .Sh DESCRIPTION The .Fn getprotoent , diff --git a/lib/libc/net/getservent.3 b/lib/libc/net/getservent.3 index a8a69aab42c..6badd85337b 100644 --- a/lib/libc/net/getservent.3 +++ b/lib/libc/net/getservent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getservent.3,v 1.5 1999/05/23 14:11:01 aaron Exp $ +.\" $OpenBSD: getservent.3,v 1.6 1999/05/25 01:50:58 aaron Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -44,7 +44,7 @@ .Sh SYNOPSIS .Fd #include <netdb.h> .Ft struct servent * -.Fn getservent +.Fn getservent "void" .Ft struct servent * .Fn getservbyname "char *name" "char *proto" .Ft struct servent * @@ -52,7 +52,7 @@ .Ft void .Fn setservent "int stayopen" .Ft void -.Fn endservent void +.Fn endservent "void" .Sh DESCRIPTION The .Fn getservent , diff --git a/lib/libc/net/resolver.3 b/lib/libc/net/resolver.3 index 6778a6e0a85..0932c3b4603 100644 --- a/lib/libc/net/resolver.3 +++ b/lib/libc/net/resolver.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: resolver.3,v 1.9 1999/05/23 14:11:02 aaron Exp $ +.\" $OpenBSD: resolver.3,v 1.10 1999/05/25 01:50:58 aaron Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -48,6 +48,7 @@ .Fd #include <netinet/in.h> .Fd #include <arpa/nameser.h> .Fd #include <resolv.h> +.Ft int .Fo res_query .Fa "char *dname" .Fa "int class" @@ -55,6 +56,7 @@ .Fa "u_char *answer" .Fa "int anslen" .Fc +.Ft int .Fo res_search .Fa "char *dname" .Fa "int class" @@ -62,6 +64,7 @@ .Fa "u_char *answer" .Fa "int anslen" .Fc +.Ft int .Fo res_mkquery .Fa "int op" .Fa "char *dname" @@ -73,13 +76,15 @@ .Fa "char *buf" .Fa "int buflen" .Fc +.Ft int .Fo res_send .Fa "char *msg" .Fa "int msglen" .Fa "char *answer" .Fa "int anslen" .Fc -.Fn res_init +.Ft int +.Fn res_init "void" .Fo dn_comp .Fa "char *exp_dn" .Fa "char *comp_dn" @@ -87,6 +92,7 @@ .Fa "char **dnptrs" .Fa "char **lastdnptr" .Fc +.Ft int .Fo dn_expand .Fa "u_char *msg" .Fa "u_char *eomorig" diff --git a/lib/libc/stdio/getc.3 b/lib/libc/stdio/getc.3 index a98141b13a3..e5a065418d9 100644 --- a/lib/libc/stdio/getc.3 +++ b/lib/libc/stdio/getc.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getc.3,v 1.4 1999/05/16 19:55:08 alex Exp $ +.\" $OpenBSD: getc.3,v 1.5 1999/05/25 01:50:58 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -51,7 +51,7 @@ .Ft int .Fn getc "FILE *stream" .Ft int -.Fn getchar +.Fn getchar "void" .Ft int .Fn getw "FILE *stream" .Sh DESCRIPTION |