home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / unix / unixlib_1 / !UnixLib37_src_clib_h_utime < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-09  |  1009 b   |  43 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/h/RCS/utime,v $
  4.  * $Date: 1996/10/30 21:57:16 $
  5.  * $Revision: 1.1 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: utime,v $
  10.  * Revision 1.1  1996/10/30 21:57:16  unixlib
  11.  * Initial revision
  12.  *
  13.  ***************************************************************************/
  14.  
  15. /* POSIX Standard: 5.6.6 Set File Access and Modification Times <utime.h> */
  16.  
  17. #ifndef    __UTIME_H
  18. #define    __UTIME_H    1
  19.  
  20. #include <stddef.h>
  21. #include <unixlib/types.h>
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. /* Structure describing file times.  */
  28. struct utimbuf
  29.   {
  30.     __time_t actime;        /* Access time.  */
  31.     __time_t modtime;        /* Modification time.  */
  32.   };
  33.  
  34. /* Set the access and modification times of FILE to those given in TIMES.
  35.    If TIMES is NULL, set them to the current time.  */
  36. extern int utime (const char *file, const struct utimbuf *times);
  37.  
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41.  
  42. #endif
  43.