httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-apr/apr/file_io/unix fileacc.c
Date Wed, 19 May 1999 17:34:22 GMT
rbb         99/05/19 10:34:21

  Modified:    include  apr_file_io.h
               apr/file_io/unix fileacc.c
  Log:
  Added in a bunch of accessor functions for file information.
  
  Revision  Changes    Path
  1.27      +6 -0      apache-apr/include/apr_file_io.h
  
  Index: apr_file_io.h
  ===================================================================
  RCS file: /home/cvs/apache-apr/include/apr_file_io.h,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- apr_file_io.h	1999/05/13 18:38:05	1.26
  +++ apr_file_io.h	1999/05/19 17:34:20	1.27
  @@ -135,6 +135,12 @@
   time_t ap_dir_entry_mtime(ap_context_t *, ap_dir_t *);
   ap_filetype_e ap_dir_entry_ftype(ap_context_t *, ap_dir_t *);
   
  +ap_ssize_t ap_get_filesize(ap_context_t *, ap_file_t *);
  +ap_fileperms_t ap_get_fileperms(ap_context_t *, ap_file_t *);
  +time_t ap_get_fileatime(ap_context_t *, ap_file_t *);
  +time_t ap_get_filectime(ap_context_t *, ap_file_t *);
  +time_t ap_get_filemtime(ap_context_t *, ap_file_t *);
  +
   #ifdef __cplusplus
   }
   #endif
  
  
  
  1.7       +26 -0     apache-apr/apr/file_io/unix/fileacc.c
  
  Index: fileacc.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/file_io/unix/fileacc.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- fileacc.c	1999/05/12 19:15:29	1.6
  +++ fileacc.c	1999/05/19 17:34:21	1.7
  @@ -99,3 +99,29 @@
   
       return rv;
   }
  +
  +ap_ssize_t ap_get_filesize(ap_context_t *cont, struct file_t *file)
  +{
  +    return file->size;
  +}
  +
  +ap_fileperms_t ap_get_fileperms(ap_context_t *cont, struct file_t *file)
  +{
  +    return file->protection;
  +}
  +
  +time_t ap_get_fileatime(ap_context_t *cont, struct file_t *file)
  +{    
  +    return file->atime;
  +}
  +
  +time_t ap_get_filectime(ap_context_t *cont, struct file_t *file)
  +{    
  +    return file->ctime;
  +}
  +
  +time_t ap_get_filemtime(ap_context_t *cont, struct file_t *file)
  +{    
  +    return file->mtime;
  +}
  +
  
  
  

Mime
View raw message