clean up awk syntax
[unix-history] / usr / src / include / ndbm.h
index 15d143b..396b929 100644 (file)
@@ -1,4 +1,10 @@
-/*     ndbm.h  4.4     84/09/05        */
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)ndbm.h      5.1 (Berkeley) %G%
+ */
 
 /*
  * Hashed key data base library.
 
 /*
  * Hashed key data base library.
@@ -31,6 +37,10 @@ typedef struct {
        /* use this one at your own risk! */
 #define dbm_clearerr(db)       ((db)->dbm_flags &= ~_DBM_IOERR)
 
        /* use this one at your own risk! */
 #define dbm_clearerr(db)       ((db)->dbm_flags &= ~_DBM_IOERR)
 
+/* for flock(2) and fstat(2) */
+#define dbm_dirfno(db) ((db)->dbm_dirf)
+#define dbm_pagfno(db) ((db)->dbm_pagf)
+
 typedef struct {
        char    *dptr;
        int     dsize;
 typedef struct {
        char    *dptr;
        int     dsize;