summaryrefslogtreecommitdiff
path: root/src/futils.c
Commit message (Collapse)AuthorAgeFilesLines
* futils: use GIT_ASSERTEdward Thomson2020-11-271-4/+3
|
* runtime: move init/shutdown into the "runtime"Edward Thomson2020-10-111-1/+1
| | | | | Provide a mechanism for system components to register for initialization and shutdown of the libgit2 runtime.
* mwindow: localize mutexEdward Thomson2020-10-111-0/+1
| | | | | | Move the mwindow mutex into the mwindow code itself, initializing it in the mwindow global initialization function instead of in the global initializer.
* futils: fix order of declared parameters for `git_futils_fake_symlink`pks/futils-symlink-argsPatrick Steinhardt2020-05-121-3/+3
| | | | | | | | | While the function `git_futils_fake_symlink` is declared with arguments `new, old`, the implementation uses the reverse order `old, new`. Let's fix the ordering issues to be `new, old` for both, which matches what symlink(3P) has. While at it, we also rename these parameters: `old` and `new` doesn't really make a lot of sense in the context of symlinks, which is why this commit renames them to be called `target` and `path`.
* mmap: use a 64-bit signed type `off64_t` for mmapEdward Thomson2019-11-251-1/+1
| | | | Prefer `off64_t` to `git_off_t` for internal visibility.
* filestamp: use `uint64_t` for object sizeEdward Thomson2019-11-221-3/+3
| | | | | Instead of using a signed type (`off_t`) use an unsigned `uint64_t` for the size of the files.
* futils_filesize: use `uint64_t` for object sizeEdward Thomson2019-11-221-6/+10
| | | | | Instead of using a signed type (`off_t`) use `uint64_t` for the maximum size of files.
* fileops: correct error return on p_lstat failures when mkdirEtienne Samson2019-11-091-0/+1
| | | | | | IIRC I got a strange return once from lstat, which translated in a weird error class/message being reported. As a safety measure, enforce a -1 return in that case.
* fileops: rename to "futils.h" to match function signaturesPatrick Steinhardt2019-07-201-0/+1183
Our file utils functions all have a "futils" prefix, e.g. `git_futils_touch`. One would thus naturally guess that their definitions and implementation would live in files "futils.h" and "futils.c", respectively, but in fact they live in "fileops.h". Rename the files to match expectations.