FreeBSD/sys/security/audit/bsm_token.c
/*
 * token ID                1 byte
 * sequence number         4 bytes
 */
token ID                1 byte
sequence number         4 bytes
token ID 1 byte sequence number 4 bytes
token_t *
au_to_seq(long audit_count)
{
	token_t *t;
	u_char *dptr = NULL;
	GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t));
	ADD_U_CHAR(dptr, AUT_SEQ);
	ADD_U_INT32(dptr, audit_count);
	return (t);
}
token_t * au_to_seq ( long audit_count ) { token_t * t ; u_char * dptr = NULL ; GET_TOKEN_AREA ( t , dptr , sizeof ( u_char ) + sizeof ( u_int32_t ) ) ; ADD_U_CHAR ( dptr , AUT_SEQ ) ; ADD_U_INT32 ( dptr , audit_count ) ; return ( t ) ; }
token ID                1 byte
 sequence number         4 bytes
token ID 1 byte sequence number 4 bytes