FreeBSD/sys/security/audit/audit_arg.c
/*
 * Store a path as given by the user process for auditing into the audit
 * record stored on the user thread.  This function will allocate the memory
 * to store the path info if not already available.  This memory will be
 * freed when the audit record is freed.
 */
Store a path as given by the user process for auditing into the audit
record stored on the user thread.  This function will allocate the memory
to store the path info if not already available.  This memory will be
freed when the audit record is freed.
Store a path as given by the user process for auditing into the audit record stored on the user thread . This function will allocate the memory to store the path info if not already available . This memory will be freed when the audit record is freed .
static void
audit_arg_upath(struct thread *td, int dirfd, char *upath, char **pathp)
{
	if (*pathp == NULL)
		*pathp = malloc(MAXPATHLEN, M_AUDITPATH, M_WAITOK);
	audit_canon_path(td, dirfd, upath, *pathp);
}
static void audit_arg_upath ( struct thread * td , int dirfd , char * upath , char * * pathp ) { if ( * pathp == NULL ) * pathp = malloc ( MAXPATHLEN , M_AUDITPATH , M_WAITOK ) ; audit_canon_path ( td , dirfd , upath , * pathp ) ; }
Store a path as given by the user process for auditing into the audit
 record stored on the user thread.
Store a path as given by the user process for auditing into the audit record stored on the user thread .