Put includes in alphabetical order. various cosmetics.

This commit is contained in:
Philippe Charnier 1997-09-15 06:33:52 +00:00
parent 14b374a5c4
commit 55c5024e9c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29449
2 changed files with 18 additions and 17 deletions

View File

@ -1,7 +1,7 @@
.\" Copyright (c) 1997 Robert Nordier .\" Copyright (c) 1997 Robert Nordier
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" $Id: ckdist.1,v 1.2 1997/01/20 16:47:04 rnordier Exp $ .\" $Id: ckdist.1,v 1.1.1.1 1997/01/21 12:58:53 jkh Exp $
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
@ -36,10 +36,10 @@
.Bq Fl d Ar dir .Bq Fl d Ar dir
.Bq Fl n Ar name .Bq Fl n Ar name
.Bq Fl t Ar type .Bq Fl t Ar type
.Ar file ... .Ar
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm ckdist .Nm
utility reads "checksum" files (which are assumed to specify components utility reads "checksum" files (which are assumed to specify components
of a software distribution) and verifies the integrity of the of a software distribution) and verifies the integrity of the
distribution by validating the checksum of each component file. distribution by validating the checksum of each component file.
@ -75,8 +75,8 @@ Look for distribution components in the directory
.It Fl n Ar name .It Fl n Ar name
Access distribution components using the filename Access distribution components using the filename
.Ar name . .Ar name .
(When accessing .inf file components, append the appropriate When accessing .inf file components, append the appropriate
extension to the filename.) extension to the filename.
.It Fl t Ar type .It Fl t Ar type
Assume that all specified checksum files are of the format Assume that all specified checksum files are of the format
.Ar type , .Ar type ,
@ -92,5 +92,5 @@ a distribution, and 2 if usage errors, inaccessible input files, or
other system errors were encountered. other system errors were encountered.
.Sh NOTES .Sh NOTES
Both BSD and DOS versions of Both BSD and DOS versions of
.Nm ckdist .Nm
are available. are available.

View File

@ -2,8 +2,6 @@
* Copyright (c) 1997 Robert Nordier * Copyright (c) 1997 Robert Nordier
* All rights reserved. * All rights reserved.
* *
* $Id: ckdist.c,v 1.6 1997/01/20 16:47:06 rnordier Exp $
*
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -27,18 +25,22 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <fts.h>
#include <err.h> #include <err.h>
#include <md5.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h>
#include <fts.h>
#include <md5.h>
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <unistd.h>
extern int crc(int fd, u_long * cval, u_long * clen); extern int crc(int fd, u_long * cval, u_long * clen);
@ -131,7 +133,7 @@ main(int argc, char *argv[])
if (stat(opt_dir, &sb)) if (stat(opt_dir, &sb))
err(2, opt_dir); err(2, opt_dir);
if (!S_ISDIR(sb.st_mode)) if (!S_ISDIR(sb.st_mode))
errx(2, "%s: Not a directory", opt_dir); errx(2, "%s: not a directory", opt_dir);
} }
rval = 0; rval = 0;
do { do {
@ -433,7 +435,6 @@ static void
usage(void) usage(void)
{ {
fprintf(stderr, fprintf(stderr,
"usage: ckdist [-airsx] [-d dir] [-n name] [-t type] file" "usage: ckdist [-airsx] [-d dir] [-n name] [-t type] file ...\n");
" ...\n");
exit(2); exit(2);
} }