86fd2deef7f0519e069a7b2562ed07f12a55405b
[gnulib.git] / doc / posix-headers / sys_stat.texi
1 @node sys/stat.h
2 @section @file{sys/stat.h}
3
4 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html}
5
6 Gnulib module: sys_stat
7
8 Portability problems fixed by Gnulib:
9 @itemize
10 @item
11 Some macros, such as @code{S_IFMT} or @code{S_IFIFO}, are missing on some
12 platforms.
13 @item
14 The macros @code{S_ISBLK}, @code{S_ISCHR}, @code{S_ISDIR}, @code{S_ISFIFO},
15 @code{S_ISLNK}, @code{S_ISREG}, @code{S_ISSOCK} are broken on some platforms.
16 @item
17 Some platforms define macros, such as @code{S_ISDOOR}, that are not defined
18 on other platforms.
19 @item
20 The functions @code{lstat} and @code{mkdir} are not declared on some platforms:
21 mingw, MSVC 9.
22 @item
23 The macros @code{UTIME_NOW} and @code{UTIME_OMIT} are missing on some
24 platforms.
25 @item
26 On some platforms, @code{struct stat} does not include @code{st_atim},
27 @code{st_mtim}, or @code{st_ctim} members.  Use the gnulib module
28 @samp{stat-time} for accessors to portably get at subsecond resolution.
29 @end itemize
30
31 Portability problems not fixed by Gnulib:
32 @itemize
33 @item
34 The macro @code{S_IFBLK} is missing on some platforms:
35 MSVC 9.
36 @end itemize