Merge branch '1447-date-tests-again' into 'master'
[glib.git] / glib / gstdioprivate.h
bloba100abb5e4dbc25b3588a62bf4786217ae7b99f1
1 /* gstdioprivate.h - Private GLib stdio functions
3 * Copyright 2017 Руслан Ижбулатов
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library 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 GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; if not, see <http://www.gnu.org/licenses/>.
19 #ifndef __G_STDIOPRIVATE_H__
20 #define __G_STDIOPRIVATE_H__
22 G_BEGIN_DECLS
24 #if defined (G_OS_WIN32)
26 struct _GWin32PrivateStat
28 guint32 volume_serial;
29 guint64 file_index;
30 guint64 attributes;
31 guint64 allocated_size;
32 guint32 reparse_tag;
34 guint32 st_dev;
35 guint32 st_ino;
36 guint16 st_mode;
37 guint16 st_uid;
38 guint16 st_gid;
39 guint32 st_nlink;
40 guint64 st_size;
41 guint64 st_ctime;
42 guint64 st_atime;
43 guint64 st_mtime;
46 typedef struct _GWin32PrivateStat GWin32PrivateStat;
48 int g_win32_stat_utf8 (const gchar *filename,
49 GWin32PrivateStat *buf);
51 int g_win32_lstat_utf8 (const gchar *filename,
52 GWin32PrivateStat *buf);
54 int g_win32_readlink_utf8 (const gchar *filename,
55 gchar *buf,
56 gsize buf_size);
58 int g_win32_fstat (int fd,
59 GWin32PrivateStat *buf);
61 #endif
63 G_END_DECLS
65 #endif /* __G_STDIOPRIVATE_H__ */