1 /****************************************************************************
2 CONFIG.H - Midnight Commander Configuration for Win32 and OS/2
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 ----------------------------------------------------------------------------
22 - Changed from Alexander Dong (ado) for OS/2
23 - Changed 980329 by Pavel Roskin for both OS/2 and NT
25 ----------------------------------------------------------------------------
31 ****************************************************************************/
77 #define USE_INTERNAL_EDIT
99 typedef unsigned int umode_t
;
112 #define S_IRGRP 0000040
113 #define S_IWGRP 0000020
114 #define S_IXGRP 0000010
115 #define S_IROTH 0000004
116 #define S_IWOTH 0000002
117 #define S_IXOTH 0000001
121 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
123 /*typedef int mode_t;*/
124 typedef unsigned int nlink_t
;
127 /*typedef int pid_t;*/
129 #endif /* __MINGW32__ */
133 #pragma include_alias(<utime.h>, <sys/utime.h>)
138 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
139 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
140 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
142 #define S_ISFIFO(m) 0
145 #define S_IRWXU 0000700
146 #define S_IRUSR 0000400
147 #define S_IWUSR 0000200
148 #define S_IXUSR 0000100
150 #define S_IRWXG 0000070
151 #define S_IRGRP 0000040
152 #define S_IWGRP 0000020
153 #define S_IXGRP 0000010
154 #define S_IRWXO 0000007
155 #define S_IROTH 0000004
156 #define S_IWOTH 0000002
157 #define S_IXOTH 0000001
159 /* FIXME: is this definition correct? */
162 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
164 #define pclose _pclose
167 typedef unsigned int nlink_t
;
172 #endif /* _MSC_VER */
179 #define S_IRWXG 0000070
180 #define S_IRGRP 0000040
181 #define S_IWGRP 0000020
182 #define S_IXGRP 0000010
183 #define S_IRWXO 0000007
184 #define S_IROTH 0000004
185 #define S_IWOTH 0000002
186 #define S_IXOTH 0000001
188 /* FIXME: is this definition correct? */
191 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
193 #define pclose _pclose
198 #endif /* __BORLANDC__ */
205 #define S_ISFIFO(m) 0
208 #define S_ISCHR(m) (((m) & S_IFCHR) != 0)
209 #define S_ISDIR(m) (((m) & S_IFDIR) != 0)
210 #define S_ISREG(m) (((m) & S_IFREG) != 0)
212 #define S_IRWXU 0000700
213 #define S_IRUSR 0000400
214 #define S_IWUSR 0000200
215 #define S_IXUSR 0000100
217 #define S_IRWXG 0000070
218 #define S_IRGRP 0000040
219 #define S_IWGRP 0000020
220 #define S_IXGRP 0000010
221 #define S_IRWXO 0000007
222 #define S_IROTH 0000004
223 #define S_IWOTH 0000002
224 #define S_IXOTH 0000001
226 #define ENOTDIR ENOENT
228 /* FIXME: is this definition correct? */
231 #pragma map( chdir , "_chdir" )
232 #pragma map( getcwd, "_getcwd" )
233 #pragma map( mkdir , "_mkdir" )
234 #pragma map( rmdir , "_rmdir" )
236 #define popen DosCreatePipe
237 #define pclose DosClose
238 #define sleep DosSleep
240 typedef unsigned int nlink_t
;
246 #endif /* __IBMC__ */
248 #endif /* __CONFIG_H */