FreeBSD/sys/kern/imgact_binmisc.c
/*
 * Enable the interpreter in the list with the given name. Return ENOENT
 * if not found.
 */
Enable the interpreter in the list with the given name. Return ENOENT
if not found.
Enable the interpreter in the list with the given name . Return ENOENT if not found .
static int
imgact_binmisc_enable_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);
	}
	ibe->ibe_flags |= IBF_ENABLED;
	sx_xunlock(&interp_list_sx);
	return (0);
}
static int imgact_binmisc_enable_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 ) ; } ibe -> ibe_flags |= IBF_ENABLED ; sx_xunlock ( & interp_list_sx ) ; return ( 0 ) ; }
Enable the interpreter in the list with the given name.
Enable the interpreter in the list with the given name .