2 * io-portability.h: Optional filename mangling to try to cope with
3 * badly-written non-portable windows apps
6 * Dick Porter (dick@ximian.com)
8 * Copyright (C) 2006 Novell, Inc.
11 #ifndef _WAPI_IO_PORTABILITY_H_
12 #define _WAPI_IO_PORTABILITY_H_
15 #include <sys/types.h>
22 extern int _wapi_open (const char *pathname
, int flags
, mode_t mode
);
23 extern int _wapi_access (const char *pathname
, int mode
);
24 extern int _wapi_chmod (const char *pathname
, mode_t mode
);
25 extern int _wapi_utime (const char *filename
, const struct utimbuf
*buf
);
26 extern int _wapi_unlink (const char *pathname
);
27 extern int _wapi_rename (const char *oldpath
, const char *newpath
);
28 extern int _wapi_stat (const char *path
, struct stat
*buf
);
29 extern int _wapi_lstat (const char *path
, struct stat
*buf
);
30 extern int _wapi_mkdir (const char *pathname
, mode_t mode
);
31 extern int _wapi_rmdir (const char *pathname
);
32 extern int _wapi_chdir (const char *path
);
33 extern gchar
*_wapi_basename (const gchar
*filename
);
34 extern gchar
*_wapi_dirname (const gchar
*filename
);
35 extern GDir
*_wapi_g_dir_open (const gchar
*path
, guint flags
, GError
**error
);
36 extern gint
_wapi_io_scandir (const gchar
*dirname
, const gchar
*pattern
,
41 #endif /* _WAPI_IO_PORTABILITY_H_ */