diff options
Diffstat (limited to 'lib/mlibc/options/glibc/generic/personality.cpp')
-rw-r--r-- | lib/mlibc/options/glibc/generic/personality.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/mlibc/options/glibc/generic/personality.cpp b/lib/mlibc/options/glibc/generic/personality.cpp deleted file mode 100644 index 3bfd9aa..0000000 --- a/lib/mlibc/options/glibc/generic/personality.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include <bits/ensure.h> -#include <errno.h> -#include <mlibc/glibc-sysdeps.hpp> -#include <sys/personality.h> - -int personality(unsigned long persona) { - int out = 0; - auto sysdep = MLIBC_CHECK_OR_ENOSYS(mlibc::sys_personality, -1); - - if(int e = sysdep(persona, &out); e) { - errno = e; - return -1; - } - return out; -} |