FreeBSD/sys/kern/imgact_binmisc.c
/*
 * Retrieve the interpreter with the give name and populate the
 * ximgact_binmisc_entry structure.  Return ENOENT if not found.
 */
Retrieve the interpreter with the give name and populate the
ximgact_binmisc_entry structure.  Return ENOENT if not found.
Retrieve the interpreter with the give name and populate the ximgact_binmisc_entry structure . Return ENOENT if not found .
static int
imgact_binmisc_lookup_entry(char *name, ximgact_binmisc_entry_t *xbe)
{
	imgact_binmisc_entry_t *ibe;
	int error = 0;
	sx_slock(&interp_list_sx);
	if ((ibe = imgact_binmisc_find_entry(name)) == NULL) {
		sx_sunlock(&interp_list_sx);
		return (ENOENT);
	}
	error = imgact_binmisc_populate_xbe(xbe, ibe);
	sx_sunlock(&interp_list_sx);
	return (error);
}
static int imgact_binmisc_lookup_entry ( char * name , ximgact_binmisc_entry_t * xbe ) { imgact_binmisc_entry_t * ibe ; int error = 0 ; sx_slock ( & interp_list_sx ) ; if ( ( ibe = imgact_binmisc_find_entry ( name ) ) == NULL ) { sx_sunlock ( & interp_list_sx ) ; return ( ENOENT ) ; } error = imgact_binmisc_populate_xbe ( xbe , ibe ) ; sx_sunlock ( & interp_list_sx ) ; return ( error ) ; }
Retrieve the interpreter with the give name and populate the
 ximgact_binmisc_entry structure.
Retrieve the interpreter with the give name and populate the ximgact_binmisc_entry structure .