diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-10 20:59:10 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-10 20:59:10 +0000 |
commit | 4fdcc5c18044f7af0e4d892819e202090199bc4b (patch) | |
tree | d13512b25cf373d606ea059eae4f836085f3a99e /wsutil/file_util.c | |
parent | f2008e4dd388076f50caa024d1900afa2116b7b9 (diff) | |
download | wireshark-4fdcc5c18044f7af0e4d892819e202090199bc4b.tar.gz |
Rename ws_stat to ws_stat64, and make it take a pointer to a ws_statb64
as an argument, along the lines of ws_fstat64, and, on Windows, make it
use _wstati64, to handle 64-bit file sizes.
svn path=/trunk/; revision=36547
Diffstat (limited to 'wsutil/file_util.c')
-rw-r--r-- | wsutil/file_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wsutil/file_util.c b/wsutil/file_util.c index c9bb0dc647..47b8deff1a 100644 --- a/wsutil/file_util.c +++ b/wsutil/file_util.c @@ -222,8 +222,8 @@ ws_stdio_mkdir (const gchar *filename, * Since: 2.6 */ int -ws_stdio_stat (const gchar *filename, - struct stat *buf) +ws_stdio_stat64 (const gchar *filename, + ws_statb64 *buf) { wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL); int retval; @@ -243,7 +243,7 @@ ws_stdio_stat (const gchar *filename, (!g_path_is_absolute (filename) || len > (size_t) (g_path_skip_root (filename) - filename))) wfilename[len] = '\0'; - retval = _wstat (wfilename, (struct _stat *) buf); + retval = _wstati64 (wfilename, buf); save_errno = errno; g_free (wfilename); |