diff --git a/sys/fs/vfs/file.c b/sys/fs/vfs/file.c index 91a829b..79fb3a7 100644 --- a/sys/fs/vfs/file.c +++ b/sys/fs/vfs/file.c @@ -42,9 +42,9 @@ static struct spinLock fdTable_lock = SPIN_LOCK_INITIALIZER ; -static fileDescriptor_t *fdTable = 0x0; +fileDescriptor_t *fdTable = 0x0; -static fileDescriptor_t *vfs_fileTable = 0x0; +fileDescriptor_t *vfs_fileTable = 0x0; int sys_fwrite(struct thread *td, struct sys_fwrite_args *uap) { char *t = uap->buf; diff --git a/sys/include/vfs/file.h b/sys/include/vfs/file.h index 71e5fd9..b69789d 100644 --- a/sys/include/vfs/file.h +++ b/sys/include/vfs/file.h @@ -88,7 +88,7 @@ uint32_t fdSize; } userFileDescriptor; -extern static fileDescriptor_t *fdTable; +extern fileDescriptor_t *fdTable; fileDescriptor_t *fopen(const char *, const char *); int fclose(fileDescriptor_t *); diff --git a/sys/kernel/vfs_calls.c b/sys/kernel/vfs_calls.c index 03b3e94..fe567ef 100644 --- a/sys/kernel/vfs_calls.c +++ b/sys/kernel/vfs_calls.c @@ -48,10 +48,6 @@ int fd = 0x0; struct file *nfp = 0x0; -#ifdef DEBUG_OPENAT - kprintf("openat"); -#endif - error = falloc(td, &nfp, &fd); if (error) @@ -92,7 +88,7 @@ td->td_retval[0] = fd; } - //kprintf("[sOA: 0x%X:%s:%s:]", args->flag, args->mode, args->path, td->td_retval[0]); + kprintf("[sOA: 0x%X:%s:%s:]", args->flag, args->mode, args->path, td->td_retval[0]); //kprintf("sys_openat: %i, 0x%X, 0x%X", fd, nfp, nfp->fd); return (error); }