X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fpool.h;h=da95f4ec7ca243066987820128123a082020cfb3;hb=75a467ed2d32e1adb0c24cf89676cfb48845be98;hp=e6c885e48b3686583d76ecd1413b810ed5fa48ae;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/libpspp/pool.h b/src/libpspp/pool.h index e6c885e4..da95f4ec 100644 --- a/src/libpspp/pool.h +++ b/src/libpspp/pool.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2000, 2006 Free Software Foundation, Inc. + Copyright (C) 2000, 2006, 2010 Free Software Foundation, Inc. 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 @@ -62,6 +62,7 @@ void *pool_clone (struct pool *, const void *, size_t) MALLOC_LIKE; void *pool_alloc_unaligned (struct pool *, size_t) MALLOC_LIKE; void *pool_clone_unaligned (struct pool *, const void *, size_t) MALLOC_LIKE; char *pool_strdup (struct pool *, const char *) MALLOC_LIKE; +char *pool_strdup0 (struct pool *, const char *, size_t) MALLOC_LIKE; char *pool_vasprintf (struct pool *, const char *, va_list) MALLOC_LIKE PRINTF_FORMAT (2, 0); char *pool_asprintf (struct pool *, const char *, ...) @@ -84,10 +85,15 @@ void pool_add_subpool (struct pool *, struct pool *subpool); /* Files. */ FILE *pool_fopen (struct pool *, const char *, const char *); int pool_fclose (struct pool *, FILE *) WARN_UNUSED_RESULT; -FILE *pool_tmpfile (struct pool *); void pool_attach_file (struct pool *, FILE *); void pool_detach_file (struct pool *, FILE *); +/* Temporary files. */ +FILE *pool_create_temp_file (struct pool *); +void pool_fclose_temp_file (struct pool *, FILE *); +void pool_attach_temp_file (struct pool *, FILE *); +void pool_detach_temp_file (struct pool *, FILE *); + /* Custom allocations. */ void pool_register (struct pool *, void (*free) (void *), void *p); bool pool_unregister (struct pool *, void *);