MLINKS= hexdump.1 hd.1
LINKS= ${BINDIR}/hexdump ${BINDIR}/od
LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd
WARNS?= 6
WARNS?= 1
.include <bsd.prog.mk>
#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
return;
}
if (S_ISREG(sb.st_mode)) {
/* try to seek first; fall back on ESPIPE */
if (fseeko(stdin, skip, SEEK_SET))
if (fseeko(stdin, skip, SEEK_SET) == 0) {
err(1, "%s", fname);
address += skip;
skip = 0;
} else {
if (errno != ESPIPE)
for (cnt = 0; cnt < skip; ++cnt)
if (getchar() == EOF)
break;