diff options
author | Alon Bar-Lev | 2012-02-29 22:12:19 +0200 |
---|---|---|
committer | David Sommerseth | 2012-03-24 00:14:14 +0100 |
commit | 14a131ac1cfc95e5ba2518ff887d04c034aecc53 (patch) | |
tree | 20274d65fceef494e14f3ac0c5be0171d631dfb8 /src/openvpn/win32.c | |
parent | 72c7b12cb65cee69ea129cc520b26dcc64977a17 (diff) | |
download | openvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.zip openvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.tar.gz |
build: move wrappers into platform module
+ Some fixups within the platform.c functions.
- need to check environment set on Windows.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/win32.c')
-rw-r--r-- | src/openvpn/win32.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/openvpn/win32.c b/src/openvpn/win32.c index e94343b..e8e69dc 100644 --- a/src/openvpn/win32.c +++ b/src/openvpn/win32.c @@ -976,33 +976,6 @@ wide_string (const char* utf8, struct gc_arena *gc) return ucs16; } -FILE * -openvpn_fopen (const char *path, const char *mode) -{ - struct gc_arena gc = gc_new (); - FILE *f = _wfopen (wide_string (path, &gc), wide_string (mode, &gc)); - gc_free (&gc); - return f; -} - -int -openvpn_open (const char *path, int flags, int mode) -{ - struct gc_arena gc = gc_new (); - int fd = _wopen (wide_string (path, &gc), flags, mode); - gc_free (&gc); - return fd; -} - -int -openvpn_stat (const char *path, openvpn_stat_t *buf) -{ - struct gc_arena gc = gc_new (); - int res = _wstat (wide_string (path, &gc), buf); - gc_free (&gc); - return res; -} - /* * call ourself in another process */ |