Import upstream version 1.28
[debian/tar] / gnu / savedir.h
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* Save the list of files in a directory in a string.
4
5    Copyright (C) 1997, 1999, 2001, 2003, 2005, 2009-2014 Free Software
6    Foundation, Inc.
7
8    This program is free software: you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20
21 /* Written by David MacKenzie <djm@gnu.ai.mit.edu>. */
22
23 #ifndef _GL_SAVEDIR_H
24 #define _GL_SAVEDIR_H
25
26 #include <dirent.h>
27
28 enum savedir_option
29   {
30     SAVEDIR_SORT_NONE,
31     SAVEDIR_SORT_NAME,
32 #if D_INO_IN_DIRENT
33     SAVEDIR_SORT_INODE,
34     SAVEDIR_SORT_FASTREAD = SAVEDIR_SORT_INODE
35 #else
36     SAVEDIR_SORT_FASTREAD = SAVEDIR_SORT_NONE
37 #endif
38   };
39
40 char *streamsavedir (DIR *, enum savedir_option);
41 char *savedir (char const *, enum savedir_option);
42
43 #endif