Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/freebsd32/freebsd32_misc.c
Show First 20 Lines • Show All 457 Lines • ▼ Show 20 Lines | freebsd32_fexecve(struct thread *td, struct freebsd32_fexecve_args *uap) | ||||
if (error == 0) { | if (error == 0) { | ||||
eargs.fd = uap->fd; | eargs.fd = uap->fd; | ||||
error = kern_execve(td, &eargs, NULL); | error = kern_execve(td, &eargs, NULL); | ||||
} | } | ||||
post_execve(td, error, oldvmspace); | post_execve(td, error, oldvmspace); | ||||
return (error); | return (error); | ||||
} | } | ||||
#if defined(COMPAT_FREEBSD11) | |||||
int | |||||
freebsd11_freebsd32_mknod(struct thread *td, | |||||
struct freebsd11_freebsd32_mknod_args *uap) | |||||
{ | |||||
return (kern_mknodat(td, AT_FDCWD, uap->path, UIO_USERSPACE, uap->mode, | |||||
uap->dev)); | |||||
} | |||||
int | int | ||||
freebsd11_freebsd32_mknodat(struct thread *td, | freebsd32_mknodat(struct thread *td, struct freebsd32_mknodat_args *uap) | ||||
struct freebsd11_freebsd32_mknodat_args *uap) | |||||
{ | { | ||||
return (kern_mknodat(td, uap->fd, uap->path, UIO_USERSPACE, uap->mode, | return (kern_mknodat(td, uap->fd, uap->path, UIO_USERSPACE, | ||||
uap->dev)); | uap->mode, PAIR32TO64(dev_t, uap->dev))); | ||||
} | } | ||||
#endif /* COMPAT_FREEBSD11 */ | |||||
int | int | ||||
freebsd32_mprotect(struct thread *td, struct freebsd32_mprotect_args *uap) | freebsd32_mprotect(struct thread *td, struct freebsd32_mprotect_args *uap) | ||||
{ | { | ||||
int prot; | int prot; | ||||
prot = uap->prot; | prot = uap->prot; | ||||
#if defined(__amd64__) | #if defined(__amd64__) | ||||
▲ Show 20 Lines • Show All 3,016 Lines • Show Last 20 Lines |