mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Rename UTIL_getFileStat() -> UTIL_statFile() and UTIL_getDirectoryStat() -> UTIL_statDir()
I want to introduce versions of many of these functions that take pre- populated `stat_t` objects and use those rather than doing their own redundant `stat()` internally. These functions will have `...Stat()` suffixes. So this commit renames these existing functions into the active voice, to avoid confusion.
This commit is contained in:
@ -1478,7 +1478,7 @@ static int FIO_compressFilename_dstFile(FIO_prefs_t* const prefs,
|
||||
addHandler(dstFileName);
|
||||
|
||||
if ( strcmp (srcFileName, stdinmark)
|
||||
&& UTIL_getFileStat(srcFileName, &statbuf))
|
||||
&& UTIL_statFile(srcFileName, &statbuf))
|
||||
transfer_permissions = 1;
|
||||
}
|
||||
|
||||
@ -2344,7 +2344,7 @@ static int FIO_decompressDstFile(FIO_prefs_t* const prefs,
|
||||
addHandler(dstFileName);
|
||||
|
||||
if ( strcmp(srcFileName, stdinmark) /* special case : don't transfer permissions from stdin */
|
||||
&& UTIL_getFileStat(srcFileName, &statbuf) )
|
||||
&& UTIL_statFile(srcFileName, &statbuf) )
|
||||
transfer_permissions = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user