FreeBSD/sys/compat/linux/linux_misc.c
/*
 * UGH! This is just about the dumbest idea I've ever heard!!
 */
UGH. This is just about the dumbest idea I've ever heard
UGH . This is just about the dumbest idea I ' ve ever heard
int
linux_personality(struct thread *td, struct linux_personality_args *args)
{
	struct linux_pemuldata *pem;
	struct proc *p = td->td_proc;
	uint32_t old;
#ifdef DEBUG
	if (ldebug(personality))
		printf(ARGS(personality, "%u"), args->per);
#endif
	PROC_LOCK(p);
	pem = pem_find(p);
	old = pem->persona;
	if (args->per != 0xffffffff)
		pem->persona = args->per;
	PROC_UNLOCK(p);
	td->td_retval[0] = old;
	return (0);
}
int linux_personality ( struct thread * td , struct linux_personality_args * args ) { struct linux_pemuldata * pem ; struct proc * p = td -> td_proc ; uint32_t old ; #ifdef DEBUG if ( ldebug ( personality ) ) printf ( ARGS ( personality , " " ) , args -> per ) ; #endif PROC_LOCK ( p ) ; pem = pem_find ( p ) ; old = pem -> persona ; if ( args -> per != 0xffffffff ) pem -> persona = args -> per ; PROC_UNLOCK ( p ) ; td -> td_retval [ 0 ] = old ; return ( 0 ) ; }
UGH!
UGH!