home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !gcc / include / unixlib / h / utime < prev    next >
Encoding:
Text File  |  2006-09-17  |  988 b   |  43 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/clib/utime.h,v $
  4.  * $Date: 2002/09/24 21:02:37 $
  5.  * $Revision: 1.4 $
  6.  * $State: Exp $
  7.  * $Author: admin $
  8.  *
  9.  ***************************************************************************/
  10.  
  11. /* POSIX Standard: 5.6.6 Set File Access and Modification Times <utime.h> */
  12.  
  13. #ifndef    __UTIME_H
  14. #define    __UTIME_H  1
  15.  
  16. #ifndef __UNIXLIB_FEATURES_H
  17. #include <features.h>
  18. #endif
  19.  
  20. #ifndef __UNIXLIB_TYPES_H
  21. #include <unixlib/types.h>
  22. #endif
  23.  
  24. #define __need_time_t
  25. #include <time.h>
  26.  
  27. __BEGIN_DECLS
  28.  
  29. /* Structure describing file times.  */
  30. struct utimbuf
  31.   {
  32.     time_t actime;        /* Access time.  */
  33.     time_t modtime;        /* Modification time.  */
  34.   };
  35.  
  36. /* Set the access and modification times of FILE to those given in TIMES.
  37.    If TIMES is NULL, set them to the current time.  */
  38. extern int utime (const char *__file, const struct utimbuf *__times);
  39.  
  40. __END_DECLS
  41.  
  42. #endif
  43.