diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2012-12-20 14:53:09 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2012-12-20 14:53:09 +0000 |
commit | 7e84abf005afa5952b046d11584d3ff36522c721 (patch) | |
tree | 286d014028d629d7a13a35ce19d42169ca2996c0 /wsutil/file_util.h | |
parent | a1cca8c54ac5fb3d0b9415c0ea86437f80458357 (diff) | |
download | wireshark-7e84abf005afa5952b046d11584d3ff36522c721.tar.gz wireshark-7e84abf005afa5952b046d11584d3ff36522c721.tar.bz2 wireshark-7e84abf005afa5952b046d11584d3ff36522c721.zip |
Add ws_fclose(), ws_fflush(), and ws_fdopen() to the fileutils.
Retire libpcap_fdopen(), libpcap_dump_flush(), and libpcap_dump_close().
svn path=/trunk/; revision=46636
Diffstat (limited to 'wsutil/file_util.h')
-rw-r--r-- | wsutil/file_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wsutil/file_util.h b/wsutil/file_util.h index a3867196ab..09c5c64af9 100644 --- a/wsutil/file_util.h +++ b/wsutil/file_util.h @@ -94,6 +94,9 @@ extern FILE * ws_stdio_freopen (const gchar *filename, const gchar *mode, FILE * #define ws_dup _dup #define ws_fstat64 _fstati64 /* use _fstati64 for 64-bit size support */ #define ws_lseek64 _lseeki64 /* use _lseeki64 for 64-bit offset support */ +#define ws_fdopen _fdopen +#define ws_fclose fclose +#define ws_fflush fflush /* DLL loading */ @@ -149,6 +152,9 @@ extern char *getenv_utf8(const char *varname); #define ws_dup dup #define ws_fstat64 fstat /* AC_SYS_LARGEFILE should make off_t 64-bit */ #define ws_lseek64 lseek /* AC_SYS_LARGEFILE should make off_t 64-bit */ +#define ws_fdopen fdopen +#define ws_fclose fclose +#define ws_fflush fflush #define O_BINARY 0 /* Win32 needs the O_BINARY flag for open() */ #endif /* _WIN32 */ |