diff options
| author | lukem <lukem@NetBSD.org> | 1997-10-17 10:18:36 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 1997-10-17 10:18:36 +0000 |
| commit | fcfec169dfa9801fd49404fe2b6af0cc2fc99ef6 (patch) | |
| tree | 34ca7fc3aba01f15c9ad22a2355a6c7a0ab218ca /usr.sbin | |
| parent | e5436d326b011a4ffef5064cb599b0554b99a2a4 (diff) | |
WARNSify
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/lastlogin/lastlogin.8 | 10 | ||||
| -rw-r--r-- | usr.sbin/lastlogin/lastlogin.c | 18 | ||||
| -rw-r--r-- | usr.sbin/mdconfig/mdconfig.8 | 15 | ||||
| -rw-r--r-- | usr.sbin/mdconfig/mdconfig.c | 20 | ||||
| -rw-r--r-- | usr.sbin/mdsetimage/exec_aout.c | 5 | ||||
| -rw-r--r-- | usr.sbin/mdsetimage/exec_ecoff.c | 5 | ||||
| -rw-r--r-- | usr.sbin/mdsetimage/exec_elf32.c | 5 | ||||
| -rw-r--r-- | usr.sbin/mdsetimage/exec_elf64.c | 6 |
8 files changed, 54 insertions, 30 deletions
diff --git a/usr.sbin/lastlogin/lastlogin.8 b/usr.sbin/lastlogin/lastlogin.8 index 588106f28de..97df99bd65e 100644 --- a/usr.sbin/lastlogin/lastlogin.8 +++ b/usr.sbin/lastlogin/lastlogin.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: lastlogin.8,v 1.1.1.1 1997/02/11 18:36:51 phil Exp $ +.\" $NetBSD: lastlogin.8,v 1.2 1997/10/17 10:18:36 lukem Exp $ .\" .\" Copyright (c) 1996 John M. Vinopal .\" All rights reserved. @@ -37,10 +37,10 @@ .Nm lastlogin .Nd indicate last login time of users .Sh SYNOPSIS -.Nm lastlogin +.Nm .Op user ... .Sh DESCRIPTION -.Nm Lastlogin +.Nm will list the last login session of specified .Ar users , or for all users by default. Each line of output contains @@ -53,9 +53,9 @@ are given, the session information for each user is printed in the order given on the command line. Otherwise, information for all users is printed, sorted by uid. .Pp -.Nm Lastlogin +.Nm differs from -.Nm last +.Xr last 1 in that it only prints information regarding the very last login session. The last login database is never turned over or deleted in standard usage. .Sh FILES diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c index 2ef2025a50b..d95688b1bd4 100644 --- a/usr.sbin/lastlogin/lastlogin.c +++ b/usr.sbin/lastlogin/lastlogin.c @@ -1,4 +1,4 @@ -/* $NetBSD: lastlogin.c,v 1.2 1997/03/27 17:25:49 christos Exp $ */ +/* $NetBSD: lastlogin.c,v 1.3 1997/10/17 10:18:41 lukem Exp $ */ /* * Copyright (c) 1996 John M. Vinopal * All rights reserved. @@ -31,20 +31,26 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> +#ifndef lint +__RCSID("$NetBSD: lastlogin.c,v 1.3 1997/10/17 10:18:41 lukem Exp $"); +#endif + #include <sys/types.h> -#include <utmp.h> -#include <errno.h> #include <err.h> +#include <errno.h> #include <pwd.h> -#include <time.h> #include <stdio.h> #include <stdlib.h> +#include <time.h> +#include <utmp.h> extern char *__progname; static char *logfile = _PATH_LASTLOG; -static void output __P((struct passwd *, struct lastlog *)); -static void usage __P((void)); + int main __P((int, char **)); +static void output __P((struct passwd *, struct lastlog *)); +static void usage __P((void)); int main(argc, argv) diff --git a/usr.sbin/mdconfig/mdconfig.8 b/usr.sbin/mdconfig/mdconfig.8 index b926f7ab3cf..558987f9cb5 100644 --- a/usr.sbin/mdconfig/mdconfig.8 +++ b/usr.sbin/mdconfig/mdconfig.8 @@ -1,5 +1,5 @@ .\" -.\" $NetBSD: mdconfig.8,v 1.2 1997/01/02 00:22:44 pk Exp $ +.\" $NetBSD: mdconfig.8,v 1.3 1997/10/17 10:24:17 lukem Exp $ .\" .\" Copyright (c) 1995 Gordon W. Ross .\" All rights reserved. @@ -33,26 +33,27 @@ .Nm mdconfig .Nd configure MEMORY disks .Sh SYNOPSIS -.Nm mdconfig Fl c +.Nm +.Fl c .Op Fl v .Ar special_file .Ar 512-byte-blocks .Sh DESCRIPTION The -.Nm mdconfig +.Nm command configures memory disk devices. It will associate the special file .Ar special_file with a range of user-virtual memory allocated by the -.Nm mdconfig +.Nm process itself. The -.Nm mdconfig +.Nm command should be run in the background. If successful, the command will not return. Otherwise, an error message will be printed. .Pp To "unconfigure" the memory disk, just kill the background -.Nm mdconfig +.Nm process started earlier. .Sh FILES .Bl -tag -width /etc/rmd?? -compact @@ -68,7 +69,7 @@ Configures the memory disk with one megabyte of user-space memory. .Sh BUGS The special device will become inoperative if the -.Nm mdconfig +.Nm process is killed while the special device is open. .Sh SEE ALSO .Xr swapon 8 , diff --git a/usr.sbin/mdconfig/mdconfig.c b/usr.sbin/mdconfig/mdconfig.c index 869ab7aaa8e..ace1b0e7be3 100644 --- a/usr.sbin/mdconfig/mdconfig.c +++ b/usr.sbin/mdconfig/mdconfig.c @@ -1,4 +1,4 @@ -/* $NetBSD: mdconfig.c,v 1.2 1997/01/02 00:22:45 pk Exp $ */ +/* $NetBSD: mdconfig.c,v 1.3 1997/10/17 10:24:24 lukem Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -30,6 +30,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <sys/cdefs.h> +#ifndef lint +__RCSID("$NetBSD: mdconfig.c,v 1.3 1997/10/17 10:24:24 lukem Exp $"); +#endif + /* * This program exists for the sole purpose of providing * user-space memory for the new memory-disk driver (md). @@ -37,19 +42,26 @@ * (But this design allows any filesystem format!) */ -#include <fcntl.h> -#include <stdio.h> +#include <sys/types.h> +#include <sys/ioctl.h> #include <sys/mman.h> #include <sys/param.h> #include <dev/md.h> +#include <fcntl.h> +#include <stdio.h> +#include <stdlib.h> + +int main __P((int, char **)); + +int main(argc, argv) int argc; char **argv; { struct md_conf md; - int nblks, fd, error; + int nblks, fd; if (argc <= 2) { fprintf(stderr, "usage: mdconfig <device> <%d-byte-blocks>\n", diff --git a/usr.sbin/mdsetimage/exec_aout.c b/usr.sbin/mdsetimage/exec_aout.c index 8db6d7a5b46..e96ee145aa4 100644 --- a/usr.sbin/mdsetimage/exec_aout.c +++ b/usr.sbin/mdsetimage/exec_aout.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_aout.c,v 1.2 1997/09/30 06:20:16 scottr Exp $ */ +/* $NetBSD: exec_aout.c,v 1.3 1997/10/17 10:28:21 lukem Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -30,8 +30,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint -static char *rcsid = "$NetBSD: exec_aout.c,v 1.2 1997/09/30 06:20:16 scottr Exp $"; +__RCSID("$NetBSD: exec_aout.c,v 1.3 1997/10/17 10:28:21 lukem Exp $"); #endif /* not lint */ #include <sys/types.h> diff --git a/usr.sbin/mdsetimage/exec_ecoff.c b/usr.sbin/mdsetimage/exec_ecoff.c index 932bd1db28d..d08184fbf32 100644 --- a/usr.sbin/mdsetimage/exec_ecoff.c +++ b/usr.sbin/mdsetimage/exec_ecoff.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_ecoff.c,v 1.1 1996/10/04 00:18:56 cgd Exp $ */ +/* $NetBSD: exec_ecoff.c,v 1.2 1997/10/17 10:28:26 lukem Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -30,8 +30,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint -static char *rcsid = "$NetBSD: exec_ecoff.c,v 1.1 1996/10/04 00:18:56 cgd Exp $"; +__RCSID("$NetBSD: exec_ecoff.c,v 1.2 1997/10/17 10:28:26 lukem Exp $"); #endif /* not lint */ #include <sys/types.h> diff --git a/usr.sbin/mdsetimage/exec_elf32.c b/usr.sbin/mdsetimage/exec_elf32.c index 4d3ed9b8962..f2fd7b028c3 100644 --- a/usr.sbin/mdsetimage/exec_elf32.c +++ b/usr.sbin/mdsetimage/exec_elf32.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_elf32.c,v 1.1 1996/10/04 00:18:57 cgd Exp $ */ +/* $NetBSD: exec_elf32.c,v 1.2 1997/10/17 10:28:30 lukem Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -30,8 +30,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint -static char *rcsid = "$NetBSD: exec_elf32.c,v 1.1 1996/10/04 00:18:57 cgd Exp $"; +__RCSID("$NetBSD: exec_elf32.c,v 1.2 1997/10/17 10:28:30 lukem Exp $"); #endif /* not lint */ #ifndef ELFSIZE diff --git a/usr.sbin/mdsetimage/exec_elf64.c b/usr.sbin/mdsetimage/exec_elf64.c index 95cdbc25467..f1cede5b69b 100644 --- a/usr.sbin/mdsetimage/exec_elf64.c +++ b/usr.sbin/mdsetimage/exec_elf64.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_elf64.c,v 1.1 1996/10/04 00:18:57 cgd Exp $ */ +/* $NetBSD: exec_elf64.c,v 1.2 1997/10/17 10:28:35 lukem Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -30,8 +30,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint -static char *e64rcsid = "$NetBSD: exec_elf64.c,v 1.1 1996/10/04 00:18:57 cgd Exp $"; +__IDSTRING(e64rcsid, + "$NetBSD: exec_elf64.c,v 1.2 1997/10/17 10:28:35 lukem Exp $"); #endif /* not lint */ #define ELFSIZE 64 |
