summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/main.h b/main.h
index 2f066cd..6c7ffb6 100644
--- a/main.h
+++ b/main.h
@@ -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);