diff --git a/sys/include/sys/descrip.h b/sys/include/sys/descrip.h index a012794..393db7f 100644 --- a/sys/include/sys/descrip.h +++ b/sys/include/sys/descrip.h @@ -35,6 +35,8 @@ #include #include +#include + /* Limits */ #define MAX_FILES 256 @@ -191,7 +193,7 @@ int ioctl(struct thread *, struct ioctl_args *); int getfd(struct thread *td, struct file **fp, int fd); -int_kern_openat(struct thread *,int, char *,int int); +int_kern_openat(struct thread *, int, char *, int); #endif diff --git a/sys/kernel/vfs_calls.c b/sys/kernel/vfs_calls.c index ffa489e..865771d 100644 --- a/sys/kernel/vfs_calls.c +++ b/sys/kernel/vfs_calls.c @@ -392,7 +392,7 @@ return (-1); } -int kern_openat(struct thread *thr, int fd, char *path, int flags, int mode) { +int kern_openat(struct thread *thr, int afd, char *path, int flags, int mode) { int error = 0x0; int fd = 0x0; struct file *nfp = 0x0;