DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: @ T a

⟦254feaee8⟧ TextFile

    Length: 1569 (0x621)
    Types: TextFile
    Notes: @(#)acct.h 13.1 (RC International) 91/02/02 */
    Names: »acct.h«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/include/sys/acct.h« 

TextFile

/*	@(#)acct.h	13.1 (RC International) 91/02/02	*/

#ifndef _ACCT_H
#define _ACCT_H

/*
 * 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;

struct	acct
{
	char	ac_flag;		/* Accounting flag */
	char	ac_stat;		/* Exit status */
	ushort	ac_uid;			/* Accounting user ID */
	ushort	ac_gid;			/* Accounting group ID */
	dev_t	ac_tty;			/* */
	time_t	ac_btime;		/* Beginning time */
	comp_t	ac_utime;		/* Accounting user time */
	comp_t	ac_stime;		/* Accounting system time */
	comp_t	ac_etime;		/* Accounting elapsed time */
	comp_t	ac_mem;			/* average memory usage */
	comp_t	ac_io;			/* number of disk IO blocks */
	comp_t	ac_rw;			/* block read or written */
	char	ac_comm[10];		/* Accounting command name */
	u_char	ac_type;		/* device type */
	u_short	ac_puid;		/* process pu id */
	union	ac_device
	{
	    struct rawdev acd_rawdev;	/* console */
	    struct rcomm  acd_rcomm;	/* communication device */
	    short	  acd_unit;	/* pseudo terminal */
	}	ac_device;		/* device specific information */
};

#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 ACCTF	0040		/* record type: 00 = acct */

/*
 * 1/AHZ is the granularity of the data encoded in the various
 * comp_t fields.  This is not necessarily equal to hz.
 */
#define	AHZ	64


#endif /* _ACCT_H */