X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flibpspp%2Ftemp-file.h;h=186266574ec33966153eef15cac74976ac16363f;hb=refs%2Fheads%2Fpivot-table2;hp=5965d544ae9cdb5bbb711e633cd33d262db534dd;hpb=70514b3f2f32d57e58b04c01c83bc5f372559824;p=pspp diff --git a/src/libpspp/temp-file.h b/src/libpspp/temp-file.h index 5965d544ae..186266574e 100644 --- a/src/libpspp/temp-file.h +++ b/src/libpspp/temp-file.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 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 @@ -14,20 +14,16 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -/* A interface to allow a temporary file to be treated as an - array of data. */ +/* Functions for temporary files that honor $TMPDIR. */ #ifndef LIBPSPP_TEMP_FILE_H #define LIBPSPP_TEMP_FILE_H 1 -#include -#include +#include -struct temp_file *temp_file_create (void); -bool temp_file_destroy (struct temp_file *); -bool temp_file_read (const struct temp_file *, off_t offset, size_t n, void *); -bool temp_file_write (struct temp_file *, off_t offset, size_t n, - const void *); -bool temp_file_error (const struct temp_file *); +FILE *create_temp_file (void); +void close_temp_file (FILE *); +const char *temp_dir_name (void); -#endif /* libpspp/temp-file.h */ + +#endif /* libpspp/ext-array.h */