--- Net2/sys/acct.h 2018/04/24 18:03:58 1.1.1.1 +++ Net2/sys/acct.h 2018/04/24 18:16:28 1.1.1.2 @@ -30,9 +30,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)acct.h 7.3 (Berkeley) 2/15/91 + * from: @(#)acct.h 7.3 (Berkeley) 2/15/91 + * acct.h,v 1.5 1993/06/27 05:58:59 andrew Exp */ +#ifndef _SYS_ACCT_H_ +#define _SYS_ACCT_H_ + /* * Accounting structures; these use a comp_t type which is a 3 bits base 8 * exponent, 13 bit fraction ``floating point'' number. Units are 1/AHZ @@ -66,5 +70,17 @@ struct acct { #define AHZ 64 #ifdef KERNEL -struct vnode *acctp; +#ifdef ACCOUNTING +extern int acct_on; +#endif + +void acct __P((struct proc *p)); +int acctopen __P((dev_t dev, int flags, int mode, struct proc *p)); +int acctclose __P((dev_t dev, int flag)); +int acctread __P((dev_t dev, struct uio *uio, int flag)); +int acctselect __P((dev_t dev, int rw, struct proc *p)); +void acctwakeup __P((void)); +int acctioctl __P((dev_t dev, int com, caddr_t data, int flag)); #endif + +#endif /* !_SYS_ACCT_H_ */