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.
9 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
12 #ifndef _WAPI_IO_PORTABILITY_H_
13 #define _WAPI_IO_PORTABILITY_H_
16 #include <sys/types.h>
23 extern int _wapi_open (const char *pathname, int flags, mode_t mode);
24 extern int _wapi_access (const char *pathname, int mode);
25 extern int _wapi_chmod (const char *pathname, mode_t mode);
26 extern int _wapi_utime (const char *filename, const struct utimbuf *buf);
27 extern int _wapi_unlink (const char *pathname);
28 extern int _wapi_rename (const char *oldpath, const char *newpath);
29 extern int _wapi_stat (const char *path, struct stat *buf);
30 extern int _wapi_lstat (const char *path, struct stat *buf);
31 extern int _wapi_mkdir (const char *pathname, mode_t mode);
32 extern int _wapi_rmdir (const char *pathname);
33 extern int _wapi_chdir (const char *path);
34 extern gchar *_wapi_basename (const gchar *filename);
35 extern gchar *_wapi_dirname (const gchar *filename);
36 extern GDir *_wapi_g_dir_open (const gchar *path, guint flags, GError **error);
37 extern gint _wapi_io_scandir (const gchar *dirname, const gchar *pattern,
42 #endif /* _WAPI_IO_PORTABILITY_H_ */