On Fri, 16 Feb 2001 10:39:28 Simo Sorce wrote:
> This problem may arise anyway also if we put the code in libgarp.
> What you need is a consistent locking system for system wide variables
> and a per thread
> variabile set for the variabile the are related only to a thread.
I think you misunderstood me.
In this case, using a locking system would "lock too much".
The current method is to extract a file to the working directory:
f = fopen("file.zip", "w");
fwrite (f, some_data);
fclose (f);
What I want is to change ziplib/tarlib's API to something like this:
void zlextract(gchar *extract_to, gchar *file_to_extract)
{
gchar *fn = g_strdup_printf ("%s/%s", extract_to, file_to_extract);
f = fopen (fn, "w");
fwrite (f, some_data);
fclose (f);
}
|