Add meta and defaults to normal order list
closes redmine #2006
Remove duplicate function. FileStateToChar is defined and used in files_lib.c
Kill global VINPUTFILE, with fire

Leaving global MINUSF intact for now, may need to be wrapped up in some
context object.
Merge pull request #298 from sigurdteigen/cleanup/remove-vinputfile

Kill global VINPUTFILE, with fire
add canonify() to some handle promises to prevent cf-promises FATAL error about invalid rvalue
Buffer memory strategy

Rewrote the whole memory allocation strategy for buffer.
Now data is preserved even in case of failures.
Printf now returns 0 to signal that a retry is needed.
Memory is allocated as it is needed, not by increments.
RefCount memory allocation

Forgot to check one memory allocation when attaching ref_counts.
Memory cap for buffer

Each buffer instance has a memory cap, thus avoiding using all the memory in
one go.
Boundary condition fix

If the size was exactly BUFFER_SIZE, then we were susceptible of
suffering a buffer overrun. This commit fixes that and introduces
unit tests to make sure this never happens.
Constify List compare, copy (source) functions
Introduce UnexpectedError to handle non-fatal failures.

The error message is printed to stderr, and the function does not exit.
Fix linking after introduction of Unexpected Error
Handle return value from various C library and system calls
in cf-monitord and documentation tools.
Handle return values from chmod/chown/chdir
Handle parse errors in scanf calls.
Handle error code from fgets.

Also note that fgets should receive the size of the buffer including the
null terminator (ie writes num-1 bytes and sets the null terminator).
Merge pull request #295 from cduclos/master

Buffer implementation with a better memory allocation.
Remove struct Bundle intrusive list, replace with Sequence
Fix segfault caused by removal of Bundle intrusive list, my bad
Change prefix Sequence -> Seq to save typing