FreeBSD/sys/kern/imgact_binmisc.c
/*
 * Find the interpreter in the list by the given name.  Return NULL if not
 * found.
 */
Find the interpreter in the list by the given name.  Return NULL if not
found.
Find the interpreter in the list by the given name . Return NULL if not found .
static imgact_binmisc_entry_t *
imgact_binmisc_find_entry(char *name)
{
	imgact_binmisc_entry_t *ibe;
	sx_assert(&interp_list_sx, SA_LOCKED);
	SLIST_FOREACH(ibe, &interpreter_list, link) {
		if (strncmp(name, ibe->ibe_name, IBE_NAME_MAX) == 0)
			return (ibe);
	}
	return (NULL);
}
static imgact_binmisc_entry_t * imgact_binmisc_find_entry ( char * name ) { imgact_binmisc_entry_t * ibe ; sx_assert ( & interp_list_sx , SA_LOCKED ) ; SLIST_FOREACH ( ibe , & interpreter_list , link ) { if ( strncmp ( name , ibe -> ibe_name , IBE_NAME_MAX ) == 0 ) return ( ibe ) ; } return ( NULL ) ; }
Find the interpreter in the list by the given name.
Find the interpreter in the list by the given name .