Implemented file sharing checks in the server.
Added set file time server request.
Overall clean up of the file handling (DOS device handling is now
broken, should be redone).
diff --git a/server/thread.c b/server/thread.c
index 76394b3..21614c9 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -55,6 +55,7 @@
no_read_fd,
no_write_fd,
no_flush,
+ no_get_file_info,
destroy_thread
};
@@ -145,8 +146,8 @@
struct thread *thread = (struct thread *)obj;
assert( obj->ops == &thread_ops );
- printf( "Thread pid=%d fd=%d name='%s'\n",
- thread->unix_pid, thread->client_fd, thread->name );
+ fprintf( stderr, "Thread pid=%d fd=%d name='%s'\n",
+ thread->unix_pid, thread->client_fd, thread->name );
}
static int thread_signaled( struct object *obj, struct thread *thread )