summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-08-11 19:17:29 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-08-11 19:17:29 +0000
commit62375ca79c40b51e1070aea51862ed32d42afd51 (patch)
tree022964970c571fb3d1055e796078941d8d857d61
parent7e097daa933112e044c1b91b5489db3d94dec0d1 (diff)
Notes
-rw-r--r--sys/compat/linux/linux_misc.c11
-rw-r--r--sys/compat/linux/linux_uid16.c10
2 files changed, 0 insertions, 21 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index e5193226aab81..df2989f15be21 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1547,17 +1547,6 @@ linux_reboot(struct thread *td, struct linux_reboot_args *args)
}
-/*
- * The FreeBSD native getpid(2), getgid(2) and getuid(2) also modify
- * td->td_retval[1] when COMPAT_43 is defined. This clobbers registers that
- * are assumed to be preserved. The following lightweight syscalls fixes
- * this. See also linux_getgid16() and linux_getuid16() in linux_uid16.c
- *
- * linux_getpid() - MP SAFE
- * linux_getgid() - MP SAFE
- * linux_getuid() - MP SAFE
- */
-
int
linux_getpid(struct thread *td, struct linux_getpid_args *args)
{
diff --git a/sys/compat/linux/linux_uid16.c b/sys/compat/linux/linux_uid16.c
index 8b00084b43ab4..d58184ed44609 100644
--- a/sys/compat/linux/linux_uid16.c
+++ b/sys/compat/linux/linux_uid16.c
@@ -281,16 +281,6 @@ linux_getgroups16(struct thread *td, struct linux_getgroups16_args *args)
return (0);
}
-/*
- * The FreeBSD native getgid(2) and getuid(2) also modify td->td_retval[1]
- * when COMPAT_43 is defined. This clobbers registers that are assumed to
- * be preserved. The following lightweight syscalls fixes this. See also
- * linux_getpid(2), linux_getgid(2) and linux_getuid(2) in linux_misc.c
- *
- * linux_getgid16() - MP SAFE
- * linux_getuid16() - MP SAFE
- */
-
int
linux_getgid16(struct thread *td, struct linux_getgid16_args *args)
{