-/* $OpenBSD: files.c,v 1.2 1997/01/22 06:43:51 millert Exp $ */
+/* $OpenBSD: files.c,v 1.3 1997/01/22 06:53:13 millert Exp $ */
/*-
* Copyright (c) 1993
#if 0
static char sccsid[] = "@(#)files.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: files.c,v 1.2 1997/01/22 06:43:51 millert Exp $";
+static char rcsid[] = "$OpenBSD: files.c,v 1.3 1997/01/22 06:53:13 millert Exp $";
#endif
#endif /* not lint */
} else if (!fp) {
if (fileno >= nfiles) return(EOF);
if (!(fp = fopen(filelist.names[fileno], "r")))
- err(2, "%s", filelist.names[fileno]);
+ err(2, filelist.names[fileno]);
++fileno;
}
while ((pos < end) && ((c = getc(fp)) != EOF)) {
return (EOF);
dbdesc = fopen(filelist.names[fileno], "r");
if (!dbdesc)
- err(2, "%s", filelist.names[fileno]);
+ err(2, filelist.names[fileno]);
++fileno;
get = seq;
}
-/* $OpenBSD: msort.c,v 1.2 1997/01/22 06:43:53 millert Exp $ */
+/* $OpenBSD: msort.c,v 1.3 1997/01/22 06:53:15 millert Exp $ */
/*-
* Copyright (c) 1993
#if 0
static char sccsid[] = "@(#)msort.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: msort.c,v 1.2 1997/01/22 06:43:53 millert Exp $";
+static char rcsid[] = "$OpenBSD: msort.c,v 1.3 1997/01/22 06:53:15 millert Exp $";
#endif
#endif /* not lint */
for (i = 0; i < last; i++)
if (!(l_fstack[i+MAXFCT-1-16].fp =
fopen(files.names[j + i], "r")))
- err(2, "%s", files.names[j+i]);
+ err(2, files.names[j+i]);
merge(MAXFCT-1-16, last, get, tout, put, ftbl);
}
else {
-/* $OpenBSD: sort.c,v 1.1 1997/01/20 19:39:55 millert Exp $ */
+/* $OpenBSD: sort.c,v 1.2 1997/01/22 06:53:16 millert Exp $ */
/*-
* Copyright (c) 1993
#if 0
static char sccsid[] = "@(#)sort.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: sort.c,v 1.1 1997/01/20 19:39:55 millert Exp $";
+static char rcsid[] = "$OpenBSD: sort.c,v 1.2 1997/01/22 06:53:16 millert Exp $";
#endif
#endif /* not lint */
argv[i] = devstdin;
}
} else if ((ch = access(argv[i], R_OK)))
- err(2, "%s", argv[i]);
+ err(2, argv[i]);
}
if (!(fldtab->flags & (I|D) || fldtab[1].icol.num)) {
SINGL_FLD = 1;
int outfd;
errno = 0;
if (access(outpath, W_OK))
- err(2, "%s", outpath);
+ err(2, outpath);
act.sa_handler = onsig;
(void)snprintf(toutpath, sizeof(toutpath), "%sXXXX", outpath);
if ((outfd = mkstemp(toutpath)) < 0 ||
fsort(-1, 0, filelist, argc-optind, outfp, fldtab);
if (outfile != outpath) {
if (access(outfile, 0))
- err(2, "%s", outfile);
+ err(2, outfile);
(void)unlink(outpath);
if (link(outfile, outpath))
err(2, "cannot link %s: output left in %s",
{
if (msg)
(void)fprintf(stderr, "sort: %s\n", msg);
- (void)fprintf(stderr, "usage: [-o output] [-cmubdfinr] [-t char] ");
- (void)fprintf(stderr, "[-T char] [-k keydef] ... [files]\n");
+ (void)fprintf(stderr, "usage: [-T dir] [-o output] [-cmubdfinr] ");
+ (void)fprintf(stderr, "[-t char] [-R char] [-k keydef] ... [files]\n");
exit(2);
}