Blame glib/gstdioprivate.h

Packit ae235b
/* gstdioprivate.h - Private GLib stdio functions
Packit ae235b
 *
Packit ae235b
 * Copyright 2017 Руслан Ижбулатов
Packit ae235b
 *
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General Public License
Packit ae235b
 * along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __G_STDIOPRIVATE_H__
Packit ae235b
#define __G_STDIOPRIVATE_H__
Packit ae235b
Packit ae235b
G_BEGIN_DECLS
Packit ae235b
Packit ae235b
#if defined (G_OS_WIN32)
Packit ae235b
Packit ae235b
struct _GWin32PrivateStat
Packit ae235b
{
Packit ae235b
  guint32 volume_serial;
Packit ae235b
  guint64 file_index;
Packit ae235b
  guint64 attributes;
Packit ae235b
  guint64 allocated_size;
Packit ae235b
  guint32 reparse_tag;
Packit ae235b
Packit ae235b
  guint32 st_dev;
Packit ae235b
  guint32 st_ino;
Packit ae235b
  guint16 st_mode;
Packit ae235b
  guint16 st_uid;
Packit ae235b
  guint16 st_gid;
Packit ae235b
  guint32 st_nlink;
Packit ae235b
  guint64 st_size;
Packit ae235b
  guint64 st_ctime;
Packit ae235b
  guint64 st_atime;
Packit ae235b
  guint64 st_mtime;
Packit ae235b
};
Packit ae235b
Packit ae235b
typedef struct _GWin32PrivateStat GWin32PrivateStat;
Packit ae235b
Packit ae235b
int g_win32_stat_utf8     (const gchar       *filename,
Packit ae235b
                           GWin32PrivateStat *buf);
Packit ae235b
Packit ae235b
int g_win32_lstat_utf8    (const gchar       *filename,
Packit ae235b
                           GWin32PrivateStat *buf);
Packit ae235b
Packit ae235b
int g_win32_readlink_utf8 (const gchar *filename,
Packit ae235b
                           gchar       *buf,
Packit ae235b
                           gsize        buf_size);
Packit ae235b
Packit ae235b
int g_win32_fstat         (int                fd,
Packit ae235b
                           GWin32PrivateStat *buf);
Packit ae235b
Packit ae235b
#endif
Packit ae235b
Packit ae235b
G_END_DECLS
Packit ae235b
Packit ae235b
#endif /* __G_STDIOPRIVATE_H__ */