aboutsummaryrefslogtreecommitdiff
path: root/bin/dd/dd.h
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>1999-07-13 18:44:56 +0000
committerBrian Feldman <green@FreeBSD.org>1999-07-13 18:44:56 +0000
commit769e5815e35ed2064f409557f24b80ba0900b573 (patch)
tree8ae2a8b0e2e228abe9e2a1af3094427a3d7b7e29 /bin/dd/dd.h
parent4dc0c8f521c9c0928e74fd8b720af751b896f91a (diff)
downloadsrc-769e5815e35ed2064f409557f24b80ba0900b573.tar.gz
src-769e5815e35ed2064f409557f24b80ba0900b573.zip
Implement seekability for disk devices (not just regular files).
Also, fix pos_out() to do the same checks pos_in() did. Done for: jdp, luigi, the good of the world
Notes
Notes: svn path=/head/; revision=48802
Diffstat (limited to 'bin/dd/dd.h')
-rw-r--r--bin/dd/dd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/dd/dd.h b/bin/dd/dd.h
index bc3fd603e2ed..9344d3d1eed8 100644
--- a/bin/dd/dd.h
+++ b/bin/dd/dd.h
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)dd.h 8.3 (Berkeley) 4/2/94
- * $Id: dd.h,v 1.8 1998/02/11 02:23:31 asami Exp $
+ * $Id: dd.h,v 1.10 1999/06/20 14:58:51 green Exp $
*/
/* Input/output stream state. */
@@ -49,7 +49,8 @@ typedef struct {
#define ISCHR 0x01 /* character device (warn on short) */
#define ISPIPE 0x02 /* pipe (not truncatable) */
#define ISTAPE 0x04 /* tape (not seekable) */
-#define NOREAD 0x08 /* not readable */
+#define ISDISK 0x08 /* disk (valid to seek on) */
+#define NOREAD 0x10 /* not readable */
u_int flags;
char *name; /* name */