]> granicus.if.org Git - file/commit
- Encapsulate the buffer, size and file descriptor in a struct buffer.
authorChristos Zoulas <christos@zoulas.com>
Thu, 2 Nov 2017 20:25:39 +0000 (20:25 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 2 Nov 2017 20:25:39 +0000 (20:25 +0000)
commit18726eb5fd61c19f6ba82aefeead820568dededd
tree470ecbf65ea84251948255a911418e9ceb964420
parent19f35b93a3d34c8b21027d3f953289338727c406
- Encapsulate the buffer, size and file descriptor in a struct buffer.
- Prepare for signed offset (negative offsets will be relative to the end
  of file).
- Fix name collision for file_err().
- fix file_encoding to not return a unicode buffer if NULL is passed.
12 files changed:
src/Makefile.am
src/apprentice.c
src/ascmagic.c
src/buffer.c [new file with mode: 0644]
src/compress.c
src/encoding.c
src/file.h
src/funcs.c
src/is_tar.c
src/readcdf.c
src/readelf.c
src/softmagic.c