]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
um: Do not rely on libc to provide modify_ldt()
authorHans-Werner Hilse <hwhilse@gmail.com>
Mon, 29 Jun 2015 09:50:32 +0000 (11:50 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 19 Oct 2015 20:53:37 +0000 (22:53 +0200)
commit37e81a016cc847c03ea71570fea29f12ca390bee
treefd4477a5b50a25ed09e7df34469392840030288c
parent0b5aedfe0e6654ec54f35109e1929a1cf7fc4cdd
um: Do not rely on libc to provide modify_ldt()

modify_ldt() was declared as an external symbol. Despite the man
page for this syscall telling that there is no wrapper in glibc,
since version 2.1 there actually is, so linking to the glibc
works.

Since modify_ldt() is not a POSIX interface, other libc
implementations do not always provide a wrapper function.
Even glibc headers do not provide a corresponding declaration.

So go the recommended way to call this using syscall().

Signed-off-by: Hans-Werner Hilse <hwhilse@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/x86/um/ldt.c