summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2002-01-23 22:46:14 +0000
committergallatin <gallatin@FreeBSD.org>2002-01-23 22:46:14 +0000
commita91be5985c11ba7151db06a643728a469cd0b87d (patch)
tree07c16a6f488892d9af44deeb9c474b64f1d0d447 /sys/compat
parent153455a7d25042177840a132ce51d12a7daf8c3d (diff)
downloadFreeBSD-src-a91be5985c11ba7151db06a643728a469cd0b87d.zip
FreeBSD-src-a91be5985c11ba7151db06a643728a469cd0b87d.tar.gz
Linux/alpha uses the same BSDish return mechanism we do for
getpid, getuid, getgid and pipe, since they bootstrapped from OSF/1 and never cleaned up. Switch to the native syscalls on alpha so that the above functions work MFC after: 7 days
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 605b6ed..5be79bd 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1284,6 +1284,8 @@ linux_reboot(struct thread *td, struct linux_reboot_args *args)
return (reboot(td, &bsd_args));
}
+#ifndef __alpha__
+
/*
* The FreeBSD native getpid(2), getgid(2) and getuid(2) also modify
* td->td_retval[1] when COMPAT_43 or COMPAT_SUNOS is defined. This
@@ -1320,6 +1322,8 @@ linux_getuid(struct thread *td, struct linux_getuid_args *args)
return (0);
}
+#endif /*!__alpha__*/
+
int
linux_getsid(struct thread *td, struct linux_getsid_args *args)
{
OpenPOWER on IntegriCloud