FreeBSD/sys/kern/imgact_binmisc.c
/*
 * Remove the interpreter in the list with the given name. Return ENOENT
 * if not found.
 */
Remove the interpreter in the list with the given name. Return ENOENT
if not found.
Remove the interpreter in the list with the given name . Return ENOENT if not found .
static int
imgact_binmisc_remove_entry(char *name)
{
	imgact_binmisc_entry_t *ibe;
	sx_xlock(&interp_list_sx);
	if ((ibe = imgact_binmisc_find_entry(name)) == NULL) {
		sx_xunlock(&interp_list_sx);
		return (ENOENT);
	}
	SLIST_REMOVE(&interpreter_list, ibe, imgact_binmisc_entry, link);
	interp_list_entry_count--;
	sx_xunlock(&interp_list_sx);
	imgact_binmisc_destroy_entry(ibe);
	return (0);
}
static int imgact_binmisc_remove_entry ( char * name ) { imgact_binmisc_entry_t * ibe ; sx_xlock ( & interp_list_sx ) ; if ( ( ibe = imgact_binmisc_find_entry ( name ) ) == NULL ) { sx_xunlock ( & interp_list_sx ) ; return ( ENOENT ) ; } SLIST_REMOVE ( & interpreter_list , ibe , imgact_binmisc_entry , link ) ; interp_list_entry_count -- ; sx_xunlock ( & interp_list_sx ) ; imgact_binmisc_destroy_entry ( ibe ) ; return ( 0 ) ; }
Remove the interpreter in the list with the given name.
Remove the interpreter in the list with the given name .