FreeBSD/sys/security/audit/bsm_token.c
/*
 * token ID                1 byte
 * status		   4 bytes
 * return value            4 bytes
 */
token ID                1 byte
status                  4 bytes
return value            4 bytes
token ID 1 byte status 4 bytes return value 4 bytes
token_t *
au_to_exit(int retval, int err)
{
	token_t *t;
	u_char *dptr = NULL;
	GET_TOKEN_AREA(t, dptr, sizeof(u_char) + 2 * sizeof(u_int32_t));
	ADD_U_CHAR(dptr, AUT_EXIT);
	ADD_U_INT32(dptr, err);
	ADD_U_INT32(dptr, retval);
	return (t);
}
token_t * au_to_exit ( int retval , int err ) { token_t * t ; u_char * dptr = NULL ; GET_TOKEN_AREA ( t , dptr , sizeof ( u_char ) + 2 * sizeof ( u_int32_t ) ) ; ADD_U_CHAR ( dptr , AUT_EXIT ) ; ADD_U_INT32 ( dptr , err ) ; ADD_U_INT32 ( dptr , retval ) ; return ( t ) ; }
token ID                1 byte
 status                  4 bytes
 return value            4 bytes
token ID 1 byte status 4 bytes return value 4 bytes