linux_misc.c (34e05ebe7281cdb7f4378339ab183e33780d801f) linux_misc.c (23e8912c6087b3b6690566258c3a06f55a51eb2c)
1/*-
2 * Copyright (c) 2002 Doug Rabson
3 * Copyright (c) 1994-1995 Søren Schmidt
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 1186 unchanged lines hidden (view full) ---

1195}
1196
1197/*
1198 * UGH! This is just about the dumbest idea I've ever heard!!
1199 */
1200int
1201linux_personality(struct thread *td, struct linux_personality_args *args)
1202{
1/*-
2 * Copyright (c) 2002 Doug Rabson
3 * Copyright (c) 1994-1995 Søren Schmidt
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 1186 unchanged lines hidden (view full) ---

1195}
1196
1197/*
1198 * UGH! This is just about the dumbest idea I've ever heard!!
1199 */
1200int
1201linux_personality(struct thread *td, struct linux_personality_args *args)
1202{
1203 struct linux_pemuldata *pem;
1204 struct proc *p = td->td_proc;
1205 uint32_t old;
1206
1203#ifdef DEBUG
1204 if (ldebug(personality))
1207#ifdef DEBUG
1208 if (ldebug(personality))
1205 printf(ARGS(personality, "%lu"), (unsigned long)args->per);
1209 printf(ARGS(personality, "%u"), args->per);
1206#endif
1210#endif
1207 if (args->per != 0)
1208 return (EINVAL);
1209
1211
1210 /* Yes Jim, it's still a Linux... */
1211 td->td_retval[0] = 0;
1212 PROC_LOCK(p);
1213 pem = pem_find(p);
1214 old = pem->persona;
1215 if (args->per != 0xffffffff)
1216 pem->persona = args->per;
1217 PROC_UNLOCK(p);
1218
1219 td->td_retval[0] = old;
1212 return (0);
1213}
1214
1215struct l_itimerval {
1216 l_timeval it_interval;
1217 l_timeval it_value;
1218};
1219

--- 1297 unchanged lines hidden ---
1220 return (0);
1221}
1222
1223struct l_itimerval {
1224 l_timeval it_interval;
1225 l_timeval it_value;
1226};
1227

--- 1297 unchanged lines hidden ---