diff options
author | green <green@FreeBSD.org> | 1999-09-12 18:56:12 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-09-12 18:56:12 +0000 |
commit | e40ba941364b555156f97e792df57b178b8d291c (patch) | |
tree | 841889466b6e74e92a217d795e01cf9d1cb79530 /bin/dd/position.c | |
parent | 347920f6fbdf6bb321a5895694e2ed2ae9b260ee (diff) | |
download | FreeBSD-src-e40ba941364b555156f97e792df57b178b8d291c.zip FreeBSD-src-e40ba941364b555156f97e792df57b178b8d291c.tar.gz |
ISDISK -> ISSEEK
Allow a device type of D_DISK or D_MEM to be ISSEEK.
Diffstat (limited to 'bin/dd/position.c')
-rw-r--r-- | bin/dd/position.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/position.c b/bin/dd/position.c index 6c0f684..09b69a8 100644 --- a/bin/dd/position.c +++ b/bin/dd/position.c @@ -68,7 +68,7 @@ pos_in() size_t bcnt; /* If not a character, pipe or tape device, try to seek on it. */ - if (!(in.flags & (ISCHR|ISPIPE|ISTAPE)) || in.flags & ISDISK) { + if (!(in.flags & (ISCHR|ISPIPE|ISTAPE)) || in.flags & ISSEEK) { errno = 0; if (lseek(in.fd, in.offset * in.dbsz, SEEK_CUR) == -1 && errno != 0) @@ -126,7 +126,7 @@ pos_out() ssize_t n; /* If not a character, pipe or tape device, try to seek on it. */ - if (!(out.flags & (ISCHR|ISPIPE|ISTAPE)) || out.flags & ISDISK) { + if (!(out.flags & (ISCHR|ISPIPE|ISTAPE)) || out.flags & ISSEEK) { errno = 0; if (lseek(out.fd, out.offset * out.dbsz, SEEK_SET) == -1 && errno != 0) |