diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:10:35 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:10:35 +0000 |
commit | e3573e447c9df3dc2657df423276aca32d51d114 (patch) | |
tree | de36362dff4d41c8005ac9f9f4e3f508d185c844 /main.h | |
parent | Adding upstream version 0.1. (diff) | |
download | plzip-e3573e447c9df3dc2657df423276aca32d51d114.tar.xz plzip-e3573e447c9df3dc2657df423276aca32d51d114.zip |
Adding upstream version 0.2.upstream/0.2
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | main.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -1,6 +1,6 @@ /* Plzip - A parallel version of the lzip data compressor Copyright (C) 2009 Laszlo Ersek. - Copyright (C) 2009 Antonio Diaz Diaz. + Copyright (C) 2009, 2010 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,8 +17,8 @@ */ void show_error( const char * msg, const int errcode = 0, const bool help = false ) throw(); -extern void *(*mallocf)(size_t size); -extern void (*freef)(void *ptr); +int readblock( const int fd, char * buf, const int size ) throw(); +int writeblock( const int fd, const char * buf, const int size ) throw(); struct Cond @@ -30,9 +30,8 @@ struct Cond }; -/* Terminate the process with EXIT_FAILURE. */ -void -fatal(void); +/* Terminate the process. */ +void fatal(); /* Format operation and append resolved error, then call fatal(). */ void @@ -43,8 +42,6 @@ __attribute__((format(printf, 1, 3))) ; /* If these primitives fail, they call fail(), which in turn calls fatal(). */ -void * -xalloc(size_t size); void xinit(Cond *cond); |