apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/file_io/unix filestat.c
Date Wed, 24 Jan 2001 21:11:52 GMT
trawick     01/01/24 13:11:52

  Modified:    file_io/unix filestat.c
  Log:
  get filestat.c to compile again
  
  Revision  Changes    Path
  1.41      +12 -12    apr/file_io/unix/filestat.c
  
  Index: filestat.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filestat.c,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- filestat.c	2001/01/24 19:48:11	1.40
  +++ filestat.c	2001/01/24 21:11:52	1.41
  @@ -86,20 +86,20 @@
   { 
       finfo->valid = APR_FINFO_MIN | APR_FINFO_IDENT | APR_FINFO_NLINK
                    | APR_FINFO_OWNER | APR_FINFO_PROT;
  -    finfo->protection = apr_unix_mode2perms(info.st_mode);
  -    finfo->filetype = filetype_from_mode(info.st_mode);
  -    finfo->user = info.st_uid;
  -    finfo->group = info.st_gid;
  -    finfo->size = info.st_size;
  -    finfo->inode = info.st_ino;
  -    finfo->device = info.st_dev;
  -    finfo->nlink = info.st_nlink;
  -    apr_ansi_time_to_apr_time(&finfo->atime, info.st_atime);
  -    apr_ansi_time_to_apr_time(&finfo->mtime, info.st_mtime);
  -    apr_ansi_time_to_apr_time(&finfo->ctime, info.st_ctime);
  +    finfo->protection = apr_unix_mode2perms(info->st_mode);
  +    finfo->filetype = filetype_from_mode(info->st_mode);
  +    finfo->user = info->st_uid;
  +    finfo->group = info->st_gid;
  +    finfo->size = info->st_size;
  +    finfo->inode = info->st_ino;
  +    finfo->device = info->st_dev;
  +    finfo->nlink = info->st_nlink;
  +    apr_ansi_time_to_apr_time(&finfo->atime, info->st_atime);
  +    apr_ansi_time_to_apr_time(&finfo->mtime, info->st_mtime);
  +    apr_ansi_time_to_apr_time(&finfo->ctime, info->st_ctime);
       /* ### needs to be revisited  
        * if (wanted & APR_FINFO_CSIZE) {
  -     *   finfo->csize = info.st_blocks * 512;
  +     *   finfo->csize = info->st_blocks * 512;
        *   finfo->valid |= APR_FINFO_CSIZE;
        * }
        */
  
  
  

Mime
View raw message