[Libsysio-commit] b_lustre: libsysio/src fcntl.c
Brought to you by:
lward
|
From: Mei <me...@us...> - 2003-04-30 14:38:18
|
Update of /cvsroot/libsysio/libsysio/src
In directory sc8-pr-cvs1:/tmp/cvs-serv15360/src
Modified Files:
Tag: b_lustre
fcntl.c
Log Message:
temporarily solution in order to run IOR2: in fcntl() when failed find
valid file, just call the syscall instread of simply return error.
Index: fcntl.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/fcntl.c,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -w -b -B -p -r1.3 -r1.3.2.1
--- fcntl.c 4 Apr 2003 20:09:47 -0000 1.3
+++ fcntl.c 30 Apr 2003 14:38:11 -0000 1.3.2.1
@@ -46,6 +46,7 @@
#include <sys/types.h>
#include <fcntl.h>
#include <sys/queue.h>
+#include <syscall.h>
#include "sysio.h"
#include "inode.h"
@@ -61,8 +62,16 @@ fcntl(int fd, int cmd, ...)
err = 0;
fil = _sysio_fd_find(fd);
if (!fil) {
+ /* FIXME temorary solution to get IOR2 run. cleanup this
+ * later */
+ va_start(ap, cmd);
+ err = syscall(SYS_fcntl, fd, cmd, ap);
+ va_end(ap);
+ return err;
+#if 0
err = -EBADF;
goto out;
+#endif
}
switch (cmd) {
|