2010-02-13 Jb Evain <jbevain@novell.com>
[mono-project.git] / mono / io-layer / io-portability.h
blob8beb367f2e638097cd9f3c6d1c5817b49f1fadc7
1 /*
2 * io-portability.h: Optional filename mangling to try to cope with
3 * badly-written non-portable windows apps
5 * Author:
6 * Dick Porter (dick@ximian.com)
8 * Copyright (C) 2006 Novell, Inc.
9 */
11 #ifndef _WAPI_IO_PORTABILITY_H_
12 #define _WAPI_IO_PORTABILITY_H_
14 #include <glib.h>
15 #include <sys/types.h>
16 #include <utime.h>
17 #include <sys/stat.h>
18 #include <unistd.h>
20 G_BEGIN_DECLS
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,
37 gchar ***namelist);
39 G_END_DECLS
41 #endif /* _WAPI_IO_PORTABILITY_H_ */