[BACK]Return to filesys-os.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rdistd

Diff for /src/usr.bin/rdistd/filesys-os.c between version 1.4 and 1.5

version 1.4, 1997/06/17 20:37:53 version 1.5, 1998/06/26 21:20:47
Line 34 
Line 34 
  */   */
   
 #ifndef lint  #ifndef lint
   #if 0
 static char RCSid[] =  static char RCSid[] =
   "$From: filesys-os.c,v 6.17 1996/01/17 21:02:45 mcooper Exp mcooper $";
   #else
   static char RCSid[] =
 "$OpenBSD$";  "$OpenBSD$";
   #endif
   
 static char sccsid[] = "@(#)filesys-os.c";  static char sccsid[] = "@(#)filesys-os.c";
   
Line 54 
Line 59 
 #if     FSI_TYPE == FSI_GETFSSTAT  #if     FSI_TYPE == FSI_GETFSSTAT
 static struct statfs   *mnt = NULL;  static struct statfs   *mnt = NULL;
 #if     FSTYPENAME  #if     FSTYPENAME
 #define f_type_eq(a, b) (! strcmp (((struct statfs *) (a))->f_fstypename, (b)))  #define f_type_eq(a, b) (! strcmp (((struct statfs *) (a))->f_fstypename, (b)))
 #else   /* !FSTYPENAME */  #else   /* !FSTYPENAME */
 #define f_type_eq(a, b) (((struct statfs *) a)->f_type == (b))  #define f_type_eq(a, b) (((struct statfs *) a)->f_type == (b))
 #endif /* !FSTYPENAME */  #endif  /* !FSTYPENAME */
 #endif  /* FSI_GETFSSTAT */  #endif  /* FSI_GETFSSTAT */
   
 #if     FSI_TYPE == FSI_MNTCTL  #if     FSI_TYPE == FSI_MNTCTL
Line 78 
Line 83 
         char *file;          char *file;
         char *mode;          char *mode;
 {  {
         u_int size;          ulong size;
   
         if (mntbuf)          if (mntbuf)
                 (void) free(mntbuf);                  (void) free(mntbuf);
Line 104 
Line 109 
         char *file;          char *file;
         char *mode;          char *mode;
 {  {
         int size;          long size;
   
         if (mntbuf)          if (mntbuf)
                 (void) free(mntbuf);                  (void) free(mntbuf);
Line 147 
Line 152 
                 mntstruct.me_flags |= MEFLAG_READONLY;                  mntstruct.me_flags |= MEFLAG_READONLY;
   
         mntstruct.me_path = vmt2dataptr(mnt, VMT_STUB);          mntstruct.me_path = vmt2dataptr(mnt, VMT_STUB);
         switch ((struct vmount*)mnt->vmt_gfstype) {          switch ((ulong)(struct vmount*)mnt->vmt_gfstype) {
               case MNT_NFS:                case MNT_NFS:
                 mntstruct.me_type = METYPE_NFS;                  mntstruct.me_type = METYPE_NFS;
                 break;                  break;
Line 187 
Line 192 
         if (mnt->f_flags & M_RDONLY)          if (mnt->f_flags & M_RDONLY)
                 mntstruct.me_flags |= MEFLAG_READONLY;                  mntstruct.me_flags |= MEFLAG_READONLY;
 #endif  #endif
         if (f_type_eq (mnt, MOUNT_NFS)) {          if (f_type_eq(mnt, MOUNT_NFS)) {
                 (void) sprintf(remote_dev, "%s", mnt->f_mntfromname);                  (void) sprintf(remote_dev, "%s", mnt->f_mntfromname);
                 mntstruct.me_path = remote_dev;                  mntstruct.me_path = remote_dev;
                 mntstruct.me_type = METYPE_NFS;                  mntstruct.me_type = METYPE_NFS;
         }          } else {
         else {  
                 mntstruct.me_path = mnt->f_mntonname;                  mntstruct.me_path = mnt->f_mntonname;
                 mntstruct.me_type = METYPE_OTHER;                  mntstruct.me_type = METYPE_OTHER;
         }          }
Line 348 
Line 352 
         char *mode;          char *mode;
 {  {
         startmounts = 0;          startmounts = 0;
           return(stdin);          /* XXX - need to return something! */
 }  }
   
 void endmountent(fptr)  void endmountent(fptr)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5