mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 19:57:37 +00:00
add personality syscall
This commit is contained in:
parent
a1990e1e83
commit
6fb88a955a
6
include/sys/personality.h
Normal file
6
include/sys/personality.h
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#ifndef _PERSONALITY_H
|
||||||
|
#define _PERSONALITY_H
|
||||||
|
|
||||||
|
int personality(unsigned long);
|
||||||
|
|
||||||
|
#endif
|
7
src/misc/personality.c
Normal file
7
src/misc/personality.c
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include "syscall.h"
|
||||||
|
#ifdef SYS_personality
|
||||||
|
int personality(unsigned long persona)
|
||||||
|
{
|
||||||
|
return syscall(SYS_personality, persona);
|
||||||
|
}
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user