add ifdefs for dev_bsize (almost working)
[unix-history] / usr / src / sys / ufs / ffs / dir.h
index b1deac4..218ee51 100644 (file)
@@ -1,4 +1,10 @@
-/*     dir.h   6.1     83/07/29        */
+/*
+ * Copyright (c) 1982, 1986 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)dir.h       7.2 (Berkeley) %G%
+ */
 
 /*
  * A directory consists of some number of blocks of DIRBLKSIZ
 
 /*
  * A directory consists of some number of blocks of DIRBLKSIZ
@@ -59,6 +65,9 @@ typedef struct _dirdesc {
        long    dd_size;
        char    dd_buf[DIRBLKSIZ];
 } DIR;
        long    dd_size;
        char    dd_buf[DIRBLKSIZ];
 } DIR;
+
+#define dirfd(dirp)    ((dirp)->dd_fd)
+
 #ifndef NULL
 #define NULL 0
 #endif
 #ifndef NULL
 #define NULL 0
 #endif