Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/ibcs2/ibcs2_misc.c
Show First 20 Lines • Show All 1,065 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
ibcs2_unlink(struct thread *td, struct ibcs2_unlink_args *uap) | ibcs2_unlink(struct thread *td, struct ibcs2_unlink_args *uap) | ||||
{ | { | ||||
char *path; | char *path; | ||||
int error; | int error; | ||||
CHECKALTEXIST(td, uap->path, &path); | CHECKALTEXIST(td, uap->path, &path); | ||||
error = kern_unlinkat(td, AT_FDCWD, path, UIO_SYSSPACE, 0); | error = kern_fdunlinkat(td, AT_FDCWD, path, FD_NONE, UIO_SYSSPACE, 0); | ||||
free(path, M_TEMP); | free(path, M_TEMP); | ||||
return (error); | return (error); | ||||
} | } | ||||
int | int | ||||
ibcs2_chdir(struct thread *td, struct ibcs2_chdir_args *uap) | ibcs2_chdir(struct thread *td, struct ibcs2_chdir_args *uap) | ||||
{ | { | ||||
char *path; | char *path; | ||||
Show All 32 Lines | |||||
int | int | ||||
ibcs2_rmdir(struct thread *td, struct ibcs2_rmdir_args *uap) | ibcs2_rmdir(struct thread *td, struct ibcs2_rmdir_args *uap) | ||||
{ | { | ||||
char *path; | char *path; | ||||
int error; | int error; | ||||
CHECKALTEXIST(td, uap->path, &path); | CHECKALTEXIST(td, uap->path, &path); | ||||
error = kern_rmdirat(td, AT_FDCWD, path, UIO_SYSSPACE); | error = kern_fdrmdirat(td, AT_FDCWD, path, FD_NONE, UIO_SYSSPACE); | ||||
free(path, M_TEMP); | free(path, M_TEMP); | ||||
return (error); | return (error); | ||||
} | } | ||||
int | int | ||||
ibcs2_mkdir(struct thread *td, struct ibcs2_mkdir_args *uap) | ibcs2_mkdir(struct thread *td, struct ibcs2_mkdir_args *uap) | ||||
{ | { | ||||
char *path; | char *path; | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |