Added the following wrappers that check the results of system calls
and exit non-zero if something went wrong. This is so bwa can be more
robust against system failures (e.g. IO errors from remote storage, or
running out of memory). The existing and new wrappers have also been
modified so that they no longer try to dump core on failure. In most cases
the resulting core files are not useful (especially if bwa was compiled
with optimization turned on) so just pollute whatever directories they
got written to.
Wrappers for memory allocation functions:
xcalloc
xmalloc
xrealloc
xstrdup
New wrappers for IO functions:
err_fread_noeof (also dies on EOF)
err_gzread
err_fseek
err_rewind
err_ftell