Merge branch 'stable'
[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 The type @code{mode_t} is not defined on some platforms:
12 MSVC 9.
13 @item
14 Some macros, such as @code{S_IFMT} or @code{S_IFIFO}, are missing on some
15 platforms.
16 @item
17 The macros @code{S_ISBLK}, @code{S_ISCHR}, @code{S_ISDIR}, @code{S_ISFIFO},
18 @code{S_ISLNK}, @code{S_ISREG}, @code{S_ISSOCK} are broken on some platforms.
19 @item
20 Some platforms define macros, such as @code{S_ISDOOR}, that are not defined
21 on other platforms.
22 @item
23 The functions @code{lstat} and @code{mkdir} are not declared on some platforms:
24 mingw, MSVC 9.
25 @item
26 The macros @code{UTIME_NOW} and @code{UTIME_OMIT} are missing on some
27 platforms.
28 @item
29 On some platforms, @code{struct stat} does not include @code{st_atim},
30 @code{st_mtim}, or @code{st_ctim} members.  Use the gnulib module
31 @samp{stat-time} for accessors to portably get at subsecond resolution.
32 @end itemize
33
34 Portability problems not fixed by Gnulib:
35 @itemize
36 @item
37 The macro @code{S_IFBLK} is missing on some platforms:
38 MSVC 9.
39 @end itemize