* Rename zzuf_preload to zzuf_preload_libc. You never know.
This commit is contained in:
parent
cd868abe94
commit
afaf2ccaf1
11
TODO
11
TODO
@ -1,9 +1,10 @@
|
||||
* Parallelise operations.
|
||||
* Only very basic support for [f]open/[f]read, etc. see fscanf, fgets...
|
||||
|
||||
12:59 <rominet> est-ce qu'il marcherait sur un socket
|
||||
12:59 <sam> pas encore, mais c’est prévu
|
||||
12:59 <rominet> aussi il faudrait des options pour le déclencher qu'apres un
|
||||
marker
|
||||
12:59 <rominet> genre dans la réponse HTTP, mais apres \r\n\r\n
|
||||
* socket support
|
||||
* marker support (eg. \r\n\r\n in HTTP responses)
|
||||
|
||||
* Huge todo: be format-aware
|
||||
- recompute checksums
|
||||
- divert zlib functions, too
|
||||
|
||||
|
||||
@ -54,9 +54,6 @@ void zzuf_init(void)
|
||||
char *tmp;
|
||||
int i;
|
||||
|
||||
if(zzuf_preload())
|
||||
abort();
|
||||
|
||||
tmp = getenv("ZZUF_DEBUG");
|
||||
if(tmp && *tmp)
|
||||
_zzuf_debug = 1;
|
||||
@ -90,7 +87,11 @@ void zzuf_init(void)
|
||||
for(i = 0; i < MAXFD; i++)
|
||||
files[i].managed = 0;
|
||||
|
||||
zzuf_preload_libc();
|
||||
|
||||
_zzuf_ready = 1;
|
||||
|
||||
debug("libzzuf initialised");
|
||||
}
|
||||
|
||||
/* Deinitialisation */
|
||||
|
||||
@ -68,7 +68,7 @@ static int (*close_orig) (int fd);
|
||||
abort(); \
|
||||
} while(0)
|
||||
|
||||
int zzuf_preload(void)
|
||||
void zzuf_preload_libc(void)
|
||||
{
|
||||
LOADSYM(fopen);
|
||||
LOADSYM(fopen64);
|
||||
@ -82,10 +82,6 @@ int zzuf_preload(void)
|
||||
LOADSYM(lseek);
|
||||
LOADSYM(lseek64);
|
||||
LOADSYM(close);
|
||||
|
||||
debug("libzzuf initialised");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Our function wrappers */
|
||||
|
||||
@ -16,5 +16,5 @@
|
||||
* preload.h: preloaded library functions
|
||||
*/
|
||||
|
||||
extern int zzuf_preload(void);
|
||||
extern void zzuf_preload_libc(void);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user