diff options
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r-- | sys/compat/linux/linux_file.c | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 2cb2303..66e80c6 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -44,9 +44,9 @@ #include <sys/conf.h> #include <sys/tty.h> -#include <i386/linux/linux.h> -#include <i386/linux/linux_proto.h> -#include <i386/linux/linux_util.h> +#include <machine/../linux/linux.h> +#include <machine/../linux/linux_proto.h> +#include <compat/linux/linux_util.h> int linux_creat(struct proc *p, struct linux_creat_args *args) @@ -733,26 +733,6 @@ linux_symlink(struct proc *p, struct linux_symlink_args *args) } int -linux_execve(struct proc *p, struct linux_execve_args *args) -{ - struct execve_args bsd; - caddr_t sg; - - sg = stackgap_init(); - CHECKALTEXIST(p, &sg, args->path); - -#ifdef DEBUG - printf("Linux-emul(%d): execve(%s)\n", - p->p_pid, args->path); -#endif - bsd.fname = args->path; - bsd.argv = args->argp; - bsd.envv = args->envp; - - return execve(p, &bsd); -} - -int linux_readlink(struct proc *p, struct linux_readlink_args *args) { struct readlink_args bsd; |