summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.h
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-07-13 18:44:56 +0000
committergreen <green@FreeBSD.org>1999-07-13 18:44:56 +0000
commitac63841b827307ed6eac081c9536253d8c1fb21b (patch)
treea8f689318a437158780b279a77fc4790cfa02e2b /bin/dd/dd.h
parentf091c51c34a496d3062026be39d6948fa02b6c6e (diff)
downloadFreeBSD-src-ac63841b827307ed6eac081c9536253d8c1fb21b.zip
FreeBSD-src-ac63841b827307ed6eac081c9536253d8c1fb21b.tar.gz
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
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 bc3fd60..9344d3d 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 */
OpenPOWER on IntegriCloud