First set of licensing changes
[mono.git] / mono / io-layer / io-portability.h
1 /*
2  * io-portability.h:    Optional filename mangling to try to cope with
3  *                      badly-written non-portable windows apps
4  *
5  * Author:
6  *      Dick Porter (dick@ximian.com)
7  *
8  * Copyright (C) 2006 Novell, Inc.
9  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
10  */
11
12 #ifndef _WAPI_IO_PORTABILITY_H_
13 #define _WAPI_IO_PORTABILITY_H_
14
15 #include <glib.h>
16 #include <sys/types.h>
17 #include <utime.h>
18 #include <sys/stat.h>
19 #include <unistd.h>
20
21 G_BEGIN_DECLS
22
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,
38                               gchar ***namelist);
39
40 G_END_DECLS
41
42 #endif /* _WAPI_IO_PORTABILITY_H_ */