Mercurial > hg > octave-kai > gnulib-hg
annotate lib/canonicalize.h @ 7040:e97a4de675a6
* stdio--.h (tmpfile): Make safer.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Sun, 23 Jul 2006 18:50:12 +0000 |
parents | c47674a83a78 |
children | 144308705998 |
rev | line source |
---|---|
5131 | 1 /* Return the canonical absolute name of a given file. |
5907 | 2 Copyright (C) 1996-2005 Free Software Foundation, Inc. |
5131 | 3 |
4 This program is free software; you can redistribute it and/or modify | |
5 it under the terms of the GNU General Public License as published by | |
6 the Free Software Foundation; either version 2, or (at your option) | |
7 any later version. | |
8 | |
9 This program is distributed in the hope that it will be useful, | |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 GNU General Public License for more details. | |
13 | |
14 You should have received a copy of the GNU General Public License | |
15 along with this program; see the file COPYING. | |
16 If not, write to the Free Software Foundation, | |
5848
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5131
diff
changeset
|
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
5131 | 18 |
19 #ifndef CANONICALIZE_H_ | |
20 # define CANONICALIZE_H_ | |
21 | |
22 enum canonicalize_mode_t | |
23 { | |
5907 | 24 /* All components must exist. */ |
5131 | 25 CAN_EXISTING = 0, |
26 | |
5907 | 27 /* All components excluding last one must exist. */ |
5131 | 28 CAN_ALL_BUT_LAST = 1, |
29 | |
30 /* No requirements on components existence. */ | |
31 CAN_MISSING = 2 | |
32 }; | |
33 typedef enum canonicalize_mode_t canonicalize_mode_t; | |
34 | |
35 char *canonicalize_filename_mode (const char *, canonicalize_mode_t); | |
36 | |
37 # if !HAVE_CANONICALIZE_FILE_NAME | |
38 char *canonicalize_file_name (const char *); | |
39 # endif | |
40 | |
41 #endif /* !CANONICALIZE_H_ */ |