1 /**
2  * D header file for POSIX.
3  *
4  * Copyright: Public Domain
5  * License:   Public Domain
6  * Authors:   Sean Kelly
7  * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
8  */
9 module tango.stdc.posix.utime;
10 
11 private import tango.stdc.posix.config;
12 public import tango.stdc.posix.sys.types; // for time_t
13 
14 extern (C):
15 
16 //
17 // Required
18 //
19 /*
20 struct utimbuf
21 {
22     time_t  actime;
23     time_t  modtime;
24 }
25 
26 int utime(in char*, in utimbuf*);
27 */
28 
29 version( linux )
30 {
31     struct utimbuf
32     {
33         time_t  actime;
34         time_t  modtime;
35     }
36 
37     int utime(in char*, in utimbuf*);
38 }
39 else version(OSX)
40 {
41     struct utimbuf
42     {
43         time_t  actime;
44         time_t  modtime;
45     }
46 
47     int utime(in char*, in utimbuf*);
48 }
49 else version( FreeBSD )
50 {
51     struct utimbuf
52     {
53         time_t  actime;
54         time_t  modtime;
55     }
56 
57     int utime(in char*, in utimbuf*);
58 }
59 else version( solaris )
60 {
61 	struct utimbuf
62 	{
63 		time_t actime;		/* access time */
64 		time_t modtime;		/* modification time */
65 	}
66 	
67 	int utime(in char*, in utimbuf*);
68 }