BSD 4_2 development
[unix-history] / usr / src / sys / h / acct.h
index 23bff90..8ce9fbd 100644 (file)
@@ -1,10 +1,12 @@
-/*     acct.h  4.1     11/9/80 */
+/*     acct.h  6.1     83/07/29        */
 
 /*
 
 /*
- * Accounting structures
+ * Accounting structures;
+ * these use a comp_t type which is a 3 bits base 8
+ * exponent, 13 bit fraction ``floating point'' number.
  */
  */
+typedef        u_short comp_t;
 
 
-typedef        unsigned short comp_t;  /* "floating pt": 3 bits base 8 exp, 13 bits fraction */
 struct acct
 {
        char    ac_comm[10];            /* Accounting command name */
 struct acct
 {
        char    ac_comm[10];            /* Accounting command name */
@@ -20,8 +22,13 @@ struct       acct
        char    ac_flag;                /* Accounting flag */
 };
 
        char    ac_flag;                /* Accounting flag */
 };
 
-extern struct  acct    acctbuf;
-extern struct  inode   *acctp;         /* inode of accounting file */
+#define        AFORK   0001            /* has executed fork, but no exec */
+#define        ASU     0002            /* used super-user privileges */
+#define        ACOMPAT 0004            /* used compatibility mode */
+#define        ACORE   0010            /* dumped core */
+#define        AXSIG   0020            /* killed by a signal */
 
 
-#define        AFORK   01              /* has executed fork, but no exec */
-#define        ASU     02              /* used super-user privileges */
+#ifdef KERNEL
+struct acct    acctbuf;
+struct inode   *acctp;
+#endif