]> git.proxmox.com Git - libgit2.git/commit - src/posix.h
fileops: Cleanup
authorVicent Marti <tanoku@gmail.com>
Mon, 4 Jul 2011 09:43:34 +0000 (11:43 +0200)
committerVicent Marti <tanoku@gmail.com>
Tue, 5 Jul 2011 00:04:03 +0000 (02:04 +0200)
commitf79026b4912bcd2336667f4c1663c06e233f0b32
tree645b776032e924b587fad986aa3f3dc08c98d4c5
parent678e9e045becdc5d75f2ce2259ed01c3531ee181
fileops: Cleanup

Cleaned up the structure of the whole OS-abstraction layer.

fileops.c now contains a set of utility methods for file management used
by the library. These are abstractions on top of the original POSIX
calls.

There's a new file called `posix.c` that contains
emulations/reimplementations of all the POSIX calls the library uses.
These are prefixed with `p_`. There's a specific posix file for each
platform (win32 and unix).

All the path-related methods have been moved from `utils.c` to `path.c`
and have their own prefix.
33 files changed:
src/blob.c
src/config.c
src/config_file.c
src/filebuf.c
src/fileops.c
src/fileops.h
src/index.c
src/map.h
src/odb.c
src/odb_loose.c
src/odb_pack.c
src/path.c [new file with mode: 0644]
src/path.h [new file with mode: 0644]
src/posix.c [new file with mode: 0644]
src/posix.h [new file with mode: 0644]
src/refs.c
src/repository.c
src/tag.c
src/tree.c
src/unix/map.c
src/unix/posix.h [new file with mode: 0644]
src/util.c
src/util.h
src/win32/fileops.c [deleted file]
src/win32/map.c
src/win32/posix.c [new file with mode: 0644]
src/win32/posix.h [new file with mode: 0644]
tests/t00-core.c
tests/t03-objwrite.c
tests/t06-index.c
tests/t10-refs.c
tests/t12-repo.c
tests/test_helpers.c