comparison src/sysdir.h @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents c5d627a313b1
children de805c49cfc1
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
17 along with XEmacs; see the file COPYING. If not, write to 17 along with XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */ 19 Boston, MA 02111-1307, USA. */
20 20
21 /* Synched up with: Not really in FSF. */ 21 /* Synched up with: Not really in FSF. */
22
23 #ifndef INCLUDED_sysdir_h_
24 #define INCLUDED_sysdir_h_
22 25
23 #ifdef HAVE_UNISTD_H 26 #ifdef HAVE_UNISTD_H
24 #include <unistd.h> 27 #include <unistd.h>
25 #endif 28 #endif
26 29
62 #endif 65 #endif
63 66
64 /* encapsulation: directory calls */ 67 /* encapsulation: directory calls */
65 68
66 #ifdef ENCAPSULATE_CHDIR 69 #ifdef ENCAPSULATE_CHDIR
67 int sys_chdir (CONST char *path); 70 int sys_chdir (const char *path);
68 #endif 71 #endif
69 #if defined (ENCAPSULATE_CHDIR) && !defined (DONT_ENCAPSULATE) 72 #if defined (ENCAPSULATE_CHDIR) && !defined (DONT_ENCAPSULATE)
70 # undef chdir 73 # undef chdir
71 # define chdir sys_chdir 74 # define chdir sys_chdir
72 #endif 75 #endif
73 #if !defined (ENCAPSULATE_CHDIR) && defined (DONT_ENCAPSULATE) 76 #if !defined (ENCAPSULATE_CHDIR) && defined (DONT_ENCAPSULATE)
74 # define sys_chdir chdir 77 # define sys_chdir chdir
75 #endif 78 #endif
76 79
77 #ifdef ENCAPSULATE_MKDIR 80 #ifdef ENCAPSULATE_MKDIR
78 int sys_mkdir (CONST char *path, mode_t mode); 81 int sys_mkdir (const char *path, mode_t mode);
79 #endif 82 #endif
80 #if defined (ENCAPSULATE_MKDIR) && !defined (DONT_ENCAPSULATE) 83 #if defined (ENCAPSULATE_MKDIR) && !defined (DONT_ENCAPSULATE)
81 # undef mkdir 84 # undef mkdir
82 # define mkdir sys_mkdir 85 # define mkdir sys_mkdir
83 #endif 86 #endif
84 #if !defined (ENCAPSULATE_MKDIR) && defined (DONT_ENCAPSULATE) 87 #if !defined (ENCAPSULATE_MKDIR) && defined (DONT_ENCAPSULATE)
85 # define sys_mkdir mkdir 88 # define sys_mkdir mkdir
86 #endif 89 #endif
87 90
88 #ifdef ENCAPSULATE_OPENDIR 91 #ifdef ENCAPSULATE_OPENDIR
89 DIR *sys_opendir (CONST char *filename); 92 DIR *sys_opendir (const char *filename);
90 #endif 93 #endif
91 #if defined (ENCAPSULATE_OPENDIR) && !defined (DONT_ENCAPSULATE) 94 #if defined (ENCAPSULATE_OPENDIR) && !defined (DONT_ENCAPSULATE)
92 # undef opendir 95 # undef opendir
93 # define opendir sys_opendir 96 # define opendir sys_opendir
94 #endif 97 #endif
117 #if !defined (ENCAPSULATE_CLOSEDIR) && defined (DONT_ENCAPSULATE) 120 #if !defined (ENCAPSULATE_CLOSEDIR) && defined (DONT_ENCAPSULATE)
118 # define sys_closedir closedir 121 # define sys_closedir closedir
119 #endif 122 #endif
120 123
121 #ifdef ENCAPSULATE_RMDIR 124 #ifdef ENCAPSULATE_RMDIR
122 int sys_rmdir (CONST char *path); 125 int sys_rmdir (const char *path);
123 #endif 126 #endif
124 #if defined (ENCAPSULATE_RMDIR) && !defined (DONT_ENCAPSULATE) 127 #if defined (ENCAPSULATE_RMDIR) && !defined (DONT_ENCAPSULATE)
125 # undef rmdir 128 # undef rmdir
126 # define rmdir sys_rmdir 129 # define rmdir sys_rmdir
127 #endif 130 #endif
128 #if !defined (ENCAPSULATE_RMDIR) && defined (DONT_ENCAPSULATE) 131 #if !defined (ENCAPSULATE_RMDIR) && defined (DONT_ENCAPSULATE)
129 # define sys_rmdir rmdir 132 # define sys_rmdir rmdir
130 #endif 133 #endif
131 134
135 #endif /* INCLUDED_sysdir_h_ */