1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-29 16:44:03 +00:00

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
This commit is contained in:
Andrew Gallatin 2002-01-23 22:46:14 +00:00
parent 97dd5500aa
commit 21e06996e4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89717
2 changed files with 8 additions and 4 deletions

View File

@ -61,11 +61,11 @@
18 UNIMPL LINUX
19 STD LINUX { int linux_lseek(l_uint fdes, l_off_t off, \
l_int whence); }
20 STD LINUX { int linux_getpid(void); }
20 NOPROTO BSD { int getpid(void); }
21 UNIMPL OSF1 osf1_mount
22 STD LINUX { int linux_umount(char *path, l_int flags); }
23 NOPROTO LINUX { int setuid(uid_t uid); }
24 STD LINUX { int linux_getuid(void); }
24 NOPROTO BSD { int getuid(void); }
25 UNIMPL LINUX
26 STD LINUX { int linux_ptrace(void); }
27 UNIMPL LINUX
@ -83,13 +83,13 @@
39 NOPROTO LINUX { int setpgid(int pid, int pgid); }
40 UNIMPL LINUX
41 NOPROTO LINUX { int dup(u_int fd); }
42 NOPROTO LINUX { int pipe(void); }
42 NOPROTO BSD { int pipe(void); }
43 UNIMPL OSF1 osf_set_program_attributes
44 UNIMPL LINUX
45 STD LINUX { int linux_open(char *path, l_int flags, \
l_int mode); }
46 UNIMPL LINUX
47 STD LINUX { int linux_getgid(void); }
47 NOPROTO BSD { int getgid(void); }
48 STD OSF1 { int osf1_sigprocmask(int how, u_long mask); }
49 UNIMPL LINUX
50 UNIMPL LINUX

View File

@ -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)
{