lix/src/libutil
Eelco Dolstra ef92a14bfe * Include config.h before the C library headers, because it defines
_FILE_OFFSET_BITS=64.  Without it, functions like stat() fail on
  large file sizes.  This happened with a Nix store on squashfs:

  $ nix-store --dump /tmp/mnt/46wzqnk4cbdwh1dclhrpqnnz1icak6n7-local-net-cmds > /dev/null
  error: getting attributes of path `/tmp/mnt/46wzqnk4cbdwh1dclhrpqnnz1icak6n7-local-net-cmds': Value too large for defined data type

  $ stat /tmp/mnt/46wzqnk4cbdwh1dclhrpqnnz1icak6n7-local-net-cmds
  File: `/tmp/mnt/46wzqnk4cbdwh1dclhrpqnnz1icak6n7-local-net-cmds'
  Size: 0               Blocks: 36028797018963968 IO Block: 1024   regular empty file

  (This is a bug in squashfs or mksquashfs, but it shouldn't cause Nix
  to fail.)
2009-12-17 14:12:44 +00:00
..
archive.cc * Include config.h before the C library headers, because it defines 2009-12-17 14:12:44 +00:00
archive.hh Add an ftruncate call paired with fallocate to play safe with some FSes (namely, BtrFS fallocate sets file size to allocated size, i.e. multiple of block size) 2009-05-04 08:10:24 +00:00
aterm-map.cc * Remove unnecessary inclusions of aterm2.h. 2006-09-04 22:08:40 +00:00
aterm-map.hh * Build correctly against newer ATerm releases. Fixes "error: 'union' 2009-12-16 15:29:50 +00:00
aterm.cc * GCC 4.3.0 (Fedora 9) compatibility fixes. Reported by Gour and 2008-05-21 11:17:31 +00:00
aterm.hh * Big cleanup of the semantics of paths, strings, contexts, string 2006-10-16 15:55:34 +00:00
hash.cc * Pass HashType values instead of strings. 2008-12-03 16:10:17 +00:00
hash.hh * Pass HashType values instead of strings. 2008-12-03 16:10:17 +00:00
Makefile.am * Skeleton of the privileged worker program. 2006-11-30 19:19:59 +00:00
md5.c * Optional switch "--with-openssl=<PATH>" to use OpenSSL's 2006-02-13 19:52:43 +00:00
md5.h * Some Cygwin fixes. 2006-05-24 13:23:20 +00:00
md32_common.h * Add SHA-256. 2005-01-14 12:03:04 +00:00
serialise.cc * NAR archives: handle files larger than 2^32 bytes. Previously it 2009-03-22 17:36:43 +00:00
serialise.hh * NAR archives: handle files larger than 2^32 bytes. Previously it 2009-03-22 17:36:43 +00:00
sha1.c * Optional switch "--with-openssl=<PATH>" to use OpenSSL's 2006-02-13 19:52:43 +00:00
sha1.h * Optional switch "--with-openssl=<PATH>" to use OpenSSL's 2006-02-13 19:52:43 +00:00
sha256.c * Add SHA-256. 2005-01-14 12:03:04 +00:00
sha256.h * FreeBSD 4.x doesn't have stdint.h, use inttypes.h instead (which is 2005-05-04 16:32:54 +00:00
types.hh * Don't show trace information by default (`--show-trace' to enable). 2009-06-30 13:28:29 +00:00
util.cc * Templatise getIntArg / string2Int. 2009-11-24 12:26:25 +00:00
util.hh * Include config.h before the C library headers, because it defines 2009-12-17 14:12:44 +00:00
xml-writer.cc * Use a proper namespace. 2006-09-04 21:06:23 +00:00
xml-writer.hh * Use a proper namespace. 2006-09-04 21:06:23 +00:00