1 /* Provide a complete sys/stat header file.
2 Copyright (C) 2006 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
19 #ifndef _gl_SYS_STAT_H
20 #define _gl_SYS_STAT_H
22 /* This file is supposed to be used on platforms where <sys/stat.h> is
23 incomplete. It is intended to provide definitions and prototypes
24 needed by an application. Start with what the system provides. */
25 #include @ABSOLUTE_SYS_STAT_H@
27 /* mingw does not support symlinks, therefore it does not have lstat. But
28 without links, stat does just fine. */
33 /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments.
34 Additionally, it declares _mkdir (and depending on compile flags, an
35 alias mkdir), only in the nonstandard io.h. */
36 #if ! HAVE_DECL_MKDIR && HAVE_IO_H
40 rpl_mkdir (char const *name, mode_t mode)
45 # define mkdir rpl_mkdir
48 #endif /* _gl_SYS_STAT_H */