00001
00006 #ifndef FISH_WUTIL_H
00007 #define FISH_WUTIL_H
00008
00009 #include <stdlib.h>
00010 #include <stdio.h>
00011 #include <wchar.h>
00012 #include <dirent.h>
00013 #include <unistd.h>
00014 #include <sys/stat.h>
00015 #include <sys/types.h>
00016 #include <stdarg.h>
00017
00021 struct wdirent
00022 {
00026 wchar_t *d_name;
00027 }
00028 ;
00029
00030
00035 void wutil_init();
00036
00040 void wutil_destroy();
00041
00045 FILE *wfopen(const wchar_t *path, const char *mode);
00046
00050 FILE *wfreopen(const wchar_t *path, const char *mode, FILE *stream);
00051
00055 int wopen(const wchar_t *pathname, int flags, ...);
00056
00060 int wcreat(const wchar_t *pathname, mode_t mode);
00061
00062
00066 DIR *wopendir(const wchar_t *name);
00067
00071 int wstat(const wchar_t *file_name, struct stat *buf);
00072
00076 int lwstat(const wchar_t *file_name, struct stat *buf);
00077
00081 int waccess(const wchar_t *pathname, int mode);
00082
00086 void wperror(const wchar_t *s);
00087
00091 wchar_t *wgetcwd( wchar_t *buff, size_t sz );
00092
00096 int wchdir( const wchar_t * dir );
00097
00104 wchar_t *wrealpath(const wchar_t *pathname, wchar_t *resolved_path);
00105
00109 struct wdirent *wreaddir(DIR *dir );
00110
00114 wchar_t *wdirname( wchar_t *path );
00115
00119 wchar_t *wbasename( const wchar_t *path );
00120
00129 const wchar_t *wgettext( const wchar_t *in );
00130
00134 wchar_t *wgetenv( const wchar_t *name );
00135
00139 int wmkdir( const wchar_t *dir, int mode );
00140
00144 int wrename( const wchar_t *old, const wchar_t *new );
00145
00146 #endif