(trunk, libt) #4160 - the slow slog to catch trunk up to mike.dld's 4160 diff continues. This step applies 4160-04b-dir.patch, which replaces native file operations with the tr_sys_dir_*() portability wrappers added in the previous commit.

This commit is contained in:
Jordan Lee
2014-09-21 17:55:39 +00:00
parent 51a90d0da0
commit d9d66e3e42
15 changed files with 129 additions and 271 deletions

View File

@@ -127,18 +127,6 @@ const char * tr_strip_positional_args (const char * fmt);
bool tr_wildmat (const char * text, const char * pattern) TR_GNUC_NONNULL (1,2);
/**
* Like mkdir, but makes parent directories as needed.
*
* @return zero on success, or -1 if an error occurred
* (in which case errno is set appropriately).
*/
int tr_mkdirp (const char * path, int permissions) TR_GNUC_NONNULL (1);
/** @brief Portability wrapper for mkdtemp () that uses the system implementation if available */
char* tr_mkdtemp (char * _template);
/**
* @brief Loads a file and returns its contents.
* On failure, NULL is returned and errno is set.