summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/getdomainname.36
-rw-r--r--lib/libc/gen/getdomainname.c4
-rw-r--r--lib/libc/gen/gethostname.36
-rw-r--r--lib/libc/gen/gethostname.c4
-rw-r--r--lib/libc/gen/setdomainname.c6
-rw-r--r--lib/libc/gen/sethostname.c6
6 files changed, 16 insertions, 16 deletions
diff --git a/lib/libc/gen/getdomainname.3 b/lib/libc/gen/getdomainname.3
index bfbad8ea4e9..42c620c1ed1 100644
--- a/lib/libc/gen/getdomainname.3
+++ b/lib/libc/gen/getdomainname.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getdomainname.3,v 1.4 1997/03/29 04:22:37 millert Exp $
+.\" $OpenBSD: getdomainname.3,v 1.5 1998/05/13 08:50:54 deraadt Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -41,9 +41,9 @@
.Sh SYNOPSIS
.Fd #include <unistd.h>
.Ft int
-.Fn getdomainname "char *name" "int namelen"
+.Fn getdomainname "char *name" "size_t namelen"
.Ft int
-.Fn setdomainname "const char *name" "int namelen"
+.Fn setdomainname "const char *name" "size_t namelen"
.Sh DESCRIPTION
.Fn Getdomainname
returns the YP domain name for the current processor, as
diff --git a/lib/libc/gen/getdomainname.c b/lib/libc/gen/getdomainname.c
index 15e4104e230..670c1d1d459 100644
--- a/lib/libc/gen/getdomainname.c
+++ b/lib/libc/gen/getdomainname.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getdomainname.c,v 1.2 1996/08/19 08:23:22 tholo Exp $";
+static char rcsid[] = "$OpenBSD: getdomainname.c,v 1.3 1998/05/13 08:50:55 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -41,7 +41,7 @@ static char rcsid[] = "$OpenBSD: getdomainname.c,v 1.2 1996/08/19 08:23:22 tholo
int
getdomainname(name, namelen)
char *name;
- int namelen;
+ size_t namelen;
{
int mib[2];
size_t size;
diff --git a/lib/libc/gen/gethostname.3 b/lib/libc/gen/gethostname.3
index a8ed8499db4..881ba586e92 100644
--- a/lib/libc/gen/gethostname.3
+++ b/lib/libc/gen/gethostname.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: gethostname.3,v 1.4 1996/08/19 08:23:33 tholo Exp $
+.\" $OpenBSD: gethostname.3,v 1.5 1998/05/13 08:50:56 deraadt Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -41,9 +41,9 @@
.Sh SYNOPSIS
.Fd #include <unistd.h>
.Ft int
-.Fn gethostname "char *name" "int namelen"
+.Fn gethostname "char *name" "size_t namelen"
.Ft int
-.Fn sethostname "const char *name" "int namelen"
+.Fn sethostname "const char *name" "size_t namelen"
.Sh DESCRIPTION
.Fn Gethostname
returns the standard host name for the current processor, as
diff --git a/lib/libc/gen/gethostname.c b/lib/libc/gen/gethostname.c
index b300c6a6641..0abf43a90f0 100644
--- a/lib/libc/gen/gethostname.c
+++ b/lib/libc/gen/gethostname.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: gethostname.c,v 1.2 1996/08/19 08:23:35 tholo Exp $";
+static char rcsid[] = "$OpenBSD: gethostname.c,v 1.3 1998/05/13 08:50:58 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -41,7 +41,7 @@ static char rcsid[] = "$OpenBSD: gethostname.c,v 1.2 1996/08/19 08:23:35 tholo E
int
gethostname(name, namelen)
char *name;
- int namelen;
+ size_t namelen;
{
int mib[2];
size_t size;
diff --git a/lib/libc/gen/setdomainname.c b/lib/libc/gen/setdomainname.c
index 398743fa1b6..815ab68a197 100644
--- a/lib/libc/gen/setdomainname.c
+++ b/lib/libc/gen/setdomainname.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: setdomainname.c,v 1.3 1997/07/25 20:30:03 mickey Exp $";
+static char rcsid[] = "$OpenBSD: setdomainname.c,v 1.4 1998/05/13 08:50:59 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -40,12 +40,12 @@ static char rcsid[] = "$OpenBSD: setdomainname.c,v 1.3 1997/07/25 20:30:03 micke
#ifdef __STDC__
int
-setdomainname(const char *name, int namelen)
+setdomainname(const char *name, size_t namelen)
#else
int
setdomainname(name, namelen)
char *name;
- int namelen;
+ size_t namelen;
#endif
{
int mib[2];
diff --git a/lib/libc/gen/sethostname.c b/lib/libc/gen/sethostname.c
index c9786b41c34..cfadd83be91 100644
--- a/lib/libc/gen/sethostname.c
+++ b/lib/libc/gen/sethostname.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: sethostname.c,v 1.3 1997/07/25 20:30:03 mickey Exp $";
+static char rcsid[] = "$OpenBSD: sethostname.c,v 1.4 1998/05/13 08:51:00 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -40,12 +40,12 @@ static char rcsid[] = "$OpenBSD: sethostname.c,v 1.3 1997/07/25 20:30:03 mickey
#ifdef __STDC__
int
-sethostname(const char *name, int namelen)
+sethostname(const char *name, size_t namelen)
#else
int
sethostname(name, namelen)
char *name;
- int namelen;
+ size_t namelen;
#endif
{
int mib[2];