|
|
1.1 root 1: /*** 1.1.1.3 ! root 2: *sys/utime.h - definitions/declarations for utime() 1.1 root 3: * 1.1.1.3 ! root 4: * Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved. 1.1 root 5: * 6: *Purpose: 7: * This file defines the structure used by the utime routine to set 8: * new file access and modification times. NOTE - MS-DOS 9: * does not recognize access time, so this field will 10: * always be ignored and the modification time field will be 11: * used to set the new time. 12: * 13: ****/ 14: 15: #ifndef _INC_UTIME 16: 17: #ifdef __cplusplus 18: extern "C" { 19: #endif 20: 21: 1.1.1.3 ! root 22: /* ! 23: * Conditional macro definition for function calling type and variable type ! 24: * qualifiers. ! 25: */ ! 26: #if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) ) ! 27: ! 28: /* ! 29: * Definitions for MS C8-32 (386/486) compiler ! 30: */ ! 31: #define _CRTAPI1 __cdecl ! 32: #define _CRTAPI2 __cdecl ! 33: ! 34: #elif ( _MSC_VER == 600 ) ! 35: ! 36: /* ! 37: * Definitions for old MS C6-386 compiler ! 38: */ ! 39: #define _CRTAPI1 _cdecl ! 40: #define _CRTAPI2 _cdecl ! 41: #define _M_IX86 300 ! 42: ! 43: #else ! 44: ! 45: /* ! 46: * Other compilers (e.g., MIPS) ! 47: */ ! 48: #define _CRTAPI1 ! 49: #define _CRTAPI2 ! 50: 1.1.1.2 root 51: #endif 1.1 root 52: 1.1.1.3 ! root 53: 1.1 root 54: #ifndef _TIME_T_DEFINED 55: typedef long time_t; 56: #define _TIME_T_DEFINED 57: #endif 58: 59: /* define struct used by _utime() function */ 60: 61: #ifndef _UTIMBUF_DEFINED 62: struct _utimbuf { 63: time_t actime; /* access time */ 64: time_t modtime; /* modification time */ 65: }; 66: #if !__STDC__ 67: /* Non-ANSI name for compatibility */ 68: #define utimbuf _utimbuf 69: #endif 70: 71: #define _UTIMBUF_DEFINED 72: #endif 73: 74: /* function prototypes */ 75: 1.1.1.3 ! root 76: int _CRTAPI1 _utime(char *, struct _utimbuf *); ! 77: int _CRTAPI1 _futime(int, struct _utimbuf *); 1.1 root 78: 79: #if !__STDC__ 80: /* Non-ANSI name for compatibility */ 81: #define utime _utime 82: #endif 83: 84: #ifdef __cplusplus 85: } 86: #endif 87: 88: #define _INC_UTIME 89: #endif /* _INC_UTIME */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.