]> Zhao Yanbai Git Server - minix.git/commitdiff
isofs: unbreak lseek
authorDavid van Moolenbroek <david@minix3.org>
Tue, 22 Nov 2011 10:46:55 +0000 (11:46 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 22 Nov 2011 10:46:55 +0000 (11:46 +0100)
servers/iso9660fs/proto.h
servers/iso9660fs/table.c
servers/iso9660fs/utility.c

index 98966f07cb7bfd8d3f82a8cde1d50800db1ad164..916ac0f8e54d95eadfd97d1e8002d517da62e8b6 100644 (file)
@@ -65,5 +65,6 @@ _PROTOTYPE(int create_v_pri, (struct iso9660_vd_pri *v_pri, char *buffer,
                              unsigned long address)                    );
 
 /* utility.c */
-_PROTOTYPE(int no_sys, (void));
+_PROTOTYPE(int do_noop, (void)                                         );
+_PROTOTYPE(int no_sys, (void)                                          );
 
index 2bc05669270da0ba9b40c2dc65440f1471691405..5f306cf5de2b0de832e26806af8de082b364d3a6 100644 (file)
@@ -9,36 +9,36 @@
 
 PUBLIC _PROTOTYPE (int (*fs_call_vec[]), (void) ) = {
   no_sys,                      /* 0: not used */
-  no_sys,                      /* 1 */
+  no_sys,                      /* 1: not used */
   fs_putnode,                  /* 2 */
   no_sys,                      /* 3: not used */
-  no_sys,                      /* 8: not used */
+  no_sys,                      /* 4: not used */
+  no_sys,                      /* 5: not used */
+  no_sys,                      /* 6: not used */
+  do_noop,                     /* 7 */
+  fs_stat,                     /* 8 */
   no_sys,                      /* 9: not used */
-  no_sys,                      /* 10: not used */
+  fs_fstatfs,                  /* 10 */
+  fs_bread,                    /* 11 */
+  no_sys,                      /* 12: not used */
+  no_sys,                      /* 13: not used */
   no_sys,                      /* 14: not used */
-  fs_stat,                     /* 15 */
-  no_sys,                      /* 19: not used */
-  fs_fstatfs,                  /* 21 */
-  fs_bread,                    /* 22 */
+  fs_unmount,                  /* 15 */
+  fs_sync,                     /* 16 */
+  fs_new_driver,               /* 17 */
+  no_sys,                      /* 18: not_used */
+  fs_read,                     /* 19 */
+  no_sys,                      /* 20: not used */
+  no_sys,                      /* 21: not used */
+  no_sys,                      /* 22: not used */
   no_sys,                      /* 23: not used */
   no_sys,                      /* 24: not used */
+  no_sys,                      /* 25: not used */
+  fs_lookup,                   /* 26 */
+  fs_mountpoint,               /* 27 */
+  fs_readsuper,                        /* 28 */
   no_sys,                      /* 29: not used */
-  fs_unmount,                  /* 32 */
-  fs_sync,                     /* 34 */
-  fs_new_driver,               /* 37 */
-  no_sys,                      /* 41: not_used */
-  fs_read,                     /* 42 */
-  no_sys,                      /* 43: not used */
-  no_sys,                      /* 44: not used */
-  no_sys,                      /* 45: not used */
-  no_sys,                      /* 46: not used */
-  no_sys,                      /* 47: not used */
-  no_sys,                      /* 48: not used */
-  fs_lookup,                   /* 49 */
-  fs_mountpoint,               /* 50 */
-  fs_readsuper,                        /* 51 */
-  no_sys,                      /* 52: not used */
-  no_sys,                      /* 53: not used */
-  fs_getdents,                 /* 54 */
-  fs_statvfs,     /* 32 */
+  no_sys,                      /* 30: not used */
+  fs_getdents,                 /* 31 */
+  fs_statvfs,                  /* 32 */
 };
index 65f140081108135ffef2e4e04b0d64b1e0c2b04d..63a2bd4ddc9ad960d07bf7536c8d3c9416491cde 100644 (file)
@@ -5,10 +5,19 @@
 #include <minix/callnr.h>
 #include <minix/vfsif.h>
 
+/*===========================================================================*
+ *                             do_noop                                      *
+ *===========================================================================*/
+PUBLIC int do_noop(void)
+{
+/* Do not do anything. */
+  return(OK);
+}
+
 /*===========================================================================*
  *                             no_sys                                       *
  *===========================================================================*/
-PUBLIC int no_sys()
+PUBLIC int no_sys(void)
 {
 /* Somebody has used an illegal system call number */
   return(EINVAL);