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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 ****************************************************************************/
40 #define HAS_NO_GRP_PWD_H
41 #define HAS_NO_TERMIOS_H
42 #define HAS_NO_SYS_PARAM_H
43 #define HAS_NO_SYS_IOCTL_H
46 #define HAS_ACS_AS_PCCHARS
47 #define NEEDS_CR_LF_TRANSLATION
70 # define NEEDS_LOCAL_DIRENT_H
90 #define USE_INTERNAL_EDIT
105 #define HAVE_STRERROR
106 #define HAVE_TRUNCATE
111 typedef unsigned int umode_t
;
124 #define S_IRGRP 0000040
125 #define S_IWGRP 0000020
126 #define S_IXGRP 0000010
127 #define S_IROTH 0000004
128 #define S_IWOTH 0000002
129 #define S_IXOTH 0000001
131 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
134 typedef unsigned int nlink_t
;
139 #endif /* __MINGW32__ */
143 #pragma include_alias(<utime.h>, <sys/utime.h>)
148 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
149 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
150 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
152 #define S_ISFIFO(m) 0
155 #define S_IRWXU 0000700
156 #define S_IRUSR 0000400
157 #define S_IWUSR 0000200
158 #define S_IXUSR 0000100
160 #define S_IRWXG 0000070
161 #define S_IRGRP 0000040
162 #define S_IWGRP 0000020
163 #define S_IXGRP 0000010
164 #define S_IRWXO 0000007
165 #define S_IROTH 0000004
166 #define S_IWOTH 0000002
167 #define S_IXOTH 0000001
169 /* FIXME: is this definition correct? */
172 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
174 #define pclose _pclose
177 typedef unsigned int nlink_t
;
182 #endif /* _MSC_VER */
189 #define S_IRWXG 0000070
190 #define S_IRGRP 0000040
191 #define S_IWGRP 0000020
192 #define S_IXGRP 0000010
193 #define S_IRWXO 0000007
194 #define S_IROTH 0000004
195 #define S_IWOTH 0000002
196 #define S_IXOTH 0000001
198 /* FIXME: is this definition correct? */
201 #define pipe(p) _pipe(p, 4096, 0x8000 /* O_BINARY */)
203 #define pclose _pclose
208 #endif /* __BORLANDC__ */
215 #define S_ISFIFO(m) 0
218 #define S_ISCHR(m) (((m) & S_IFCHR) != 0)
219 #define S_ISDIR(m) (((m) & S_IFDIR) != 0)
220 #define S_ISREG(m) (((m) & S_IFREG) != 0)
222 #define S_IRWXU 0000700
223 #define S_IRUSR 0000400
224 #define S_IWUSR 0000200
225 #define S_IXUSR 0000100
227 #define S_IRWXG 0000070
228 #define S_IRGRP 0000040
229 #define S_IWGRP 0000020
230 #define S_IXGRP 0000010
231 #define S_IRWXO 0000007
232 #define S_IROTH 0000004
233 #define S_IWOTH 0000002
234 #define S_IXOTH 0000001
236 #define ENOTDIR ENOENT
238 /* FIXME: is this definition correct? */
241 #pragma map( chdir , "_chdir" )
242 #pragma map( getcwd, "_getcwd" )
243 #pragma map( mkdir , "_mkdir" )
244 #pragma map( rmdir , "_rmdir" )
246 #define popen DosCreatePipe
247 #define pclose DosClose
248 #define sleep DosSleep
250 typedef unsigned int nlink_t
;
256 #endif /* __IBMC__ */
258 #endif /* __CONFIG_H */