428
|
1 /*
|
|
2 Copyright (C) 1995 Free Software Foundation, Inc.
|
558
|
3 Copyright (C) 2001 Ben Wing.
|
428
|
4
|
|
5 This file is part of XEmacs.
|
|
6
|
|
7 XEmacs is free software; you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the
|
|
9 Free Software Foundation; either version 2, or (at your option) any
|
|
10 later version.
|
|
11
|
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Synched up with: Not really in FSF. */
|
|
23
|
440
|
24 #ifndef INCLUDED_sysfile_h_
|
|
25 #define INCLUDED_sysfile_h_
|
|
26
|
428
|
27 #include <errno.h>
|
|
28
|
442
|
29 #ifndef WIN32_NATIVE
|
573
|
30 # include <sys/errno.h> /* <errno.h> does not always imply this */
|
428
|
31 #endif
|
|
32
|
|
33 #ifdef HAVE_UNISTD_H
|
558
|
34 # include <unistd.h>
|
428
|
35 #endif
|
|
36
|
|
37 #ifndef INCLUDED_FCNTL
|
|
38 # define INCLUDED_FCNTL
|
|
39 # include <fcntl.h>
|
|
40 #endif /* INCLUDED_FCNTL */
|
|
41
|
558
|
42 /* The anonymous voice of the past says:
|
428
|
43 In some systems loading it twice is suicidal. */
|
558
|
44 #ifndef INCLUDED_SYS_TYPES
|
|
45 # define INCLUDED_SYS_TYPES
|
|
46 # include <sys/types.h> /* some typedefs are used in sys/file.h */
|
|
47 #endif /* INCLUDED_SYS_TYPES */
|
442
|
48
|
|
49 #ifndef WIN32_NATIVE
|
558
|
50 # include <sys/file.h>
|
442
|
51 #endif
|
|
52
|
428
|
53 #include <sys/stat.h>
|
442
|
54
|
558
|
55 #if defined (WIN32_NATIVE) || defined (CYGWIN)
|
|
56 # include <io.h>
|
|
57 #endif
|
|
58
|
|
59 #ifdef WIN32_NATIVE
|
|
60 # include <direct.h>
|
|
61 #else
|
442
|
62 /* Some configuration files' definitions for the LOAD_AVE_CVT macro
|
|
63 (like sparc.h's) use macros like FSCALE, defined here. */
|
558
|
64 # ifdef HAVE_GTK
|
462
|
65 /* I hate GTK */
|
558
|
66 # undef MIN
|
|
67 # undef MAX
|
|
68 # endif /* HAVE_GTK */
|
|
69 # include <sys/param.h>
|
609
|
70 /* As per Martin's recommendation, we do not include this. There was
|
|
71 a comment stating that stuff from here was needed on NeXT, Cygwin,
|
|
72 and sunplay.c. However, Cygwin includes this automatically from
|
|
73 fcntl.h, and Martin says that a "conforming" system should never
|
|
74 need this. We will put it back if necessary on systems requiring it. */
|
|
75 /* # include <sys/fcntl.h> */
|
428
|
76 #endif
|
|
77
|
|
78 #ifndef STDERR_FILENO
|
|
79 #define STDIN_FILENO 0
|
|
80 #define STDOUT_FILENO 1
|
|
81 #define STDERR_FILENO 2
|
|
82 #endif
|
|
83
|
|
84 #ifndef O_RDONLY
|
|
85 #define O_RDONLY 0
|
|
86 #endif
|
|
87
|
|
88 #ifndef O_WRONLY
|
|
89 #define O_WRONLY 1
|
|
90 #endif
|
|
91
|
|
92 #ifndef O_RDWR
|
|
93 #define O_RDWR 2
|
|
94 #endif
|
|
95
|
|
96 /* file opening defaults */
|
|
97 #ifndef OPEN_BINARY
|
|
98 #ifdef O_BINARY
|
|
99 #define OPEN_BINARY O_BINARY
|
|
100 #else
|
|
101 #define OPEN_BINARY (0)
|
|
102 #endif
|
|
103 #endif
|
|
104
|
|
105 #ifndef OPEN_TEXT
|
|
106 #ifdef O_TEXT
|
|
107 #define OPEN_TEXT O_TEXT
|
|
108 #else
|
|
109 #define OPEN_TEXT (0)
|
|
110 #endif
|
|
111 #endif
|
|
112
|
|
113 #ifndef CREAT_MODE
|
442
|
114 #ifdef WIN32_NATIVE
|
428
|
115 #define CREAT_MODE (S_IREAD | S_IWRITE)
|
|
116 #else
|
|
117 #define CREAT_MODE (0666)
|
|
118 #endif
|
|
119 #endif
|
|
120
|
|
121 #ifndef READ_TEXT
|
|
122 #ifdef O_TEXT
|
|
123 #define READ_TEXT "rt"
|
|
124 #else
|
|
125 #define READ_TEXT "r"
|
|
126 #endif
|
|
127 #endif
|
|
128
|
|
129 #ifndef READ_BINARY
|
|
130 #ifdef O_BINARY
|
|
131 #define READ_BINARY "rb"
|
|
132 #else
|
|
133 #define READ_BINARY "r"
|
|
134 #endif
|
|
135 #endif
|
|
136
|
442
|
137 #ifndef READ_PLUS_TEXT
|
|
138 #ifdef O_TEXT
|
|
139 #define READ_PLUS_TEXT "r+t"
|
|
140 #else
|
|
141 #define READ_PLUS_TEXT "r+"
|
|
142 #endif
|
|
143 #endif
|
|
144
|
|
145 #ifndef READ_PLUS_BINARY
|
|
146 #ifdef O_BINARY
|
|
147 #define READ_PLUS_BINARY "r+b"
|
|
148 #else
|
|
149 #define READ_PLUS_BINARY "r+"
|
|
150 #endif
|
|
151 #endif
|
|
152
|
|
153 #ifndef WRITE_TEXT
|
|
154 #ifdef O_TEXT
|
|
155 #define WRITE_TEXT "wt"
|
|
156 #else
|
|
157 #define WRITE_TEXT "w"
|
|
158 #endif
|
|
159 #endif
|
|
160
|
428
|
161 #ifndef WRITE_BINARY
|
|
162 #ifdef O_BINARY
|
|
163 #define WRITE_BINARY "wb"
|
|
164 #else
|
|
165 #define WRITE_BINARY "w"
|
|
166 #endif
|
|
167 #endif
|
|
168
|
|
169 #ifndef O_NONBLOCK
|
|
170 #ifdef O_NDELAY
|
|
171 #define O_NONBLOCK O_NDELAY
|
|
172 #else
|
|
173 #define O_NONBLOCK 04000
|
|
174 #endif
|
|
175 #endif
|
|
176
|
|
177 /* if system does not have symbolic links, it does not have lstat.
|
|
178 In that case, use ordinary stat instead. */
|
|
179
|
|
180 #ifndef S_IFLNK
|
448
|
181 #define lstat xemacs_stat
|
428
|
182 #endif
|
|
183
|
|
184 #if !S_IRUSR
|
|
185 # if S_IREAD
|
|
186 # define S_IRUSR S_IREAD
|
|
187 # else
|
|
188 # define S_IRUSR 00400
|
|
189 # endif
|
|
190 #endif
|
|
191
|
|
192 #if !S_IWUSR
|
|
193 # if S_IWRITE
|
|
194 # define S_IWUSR S_IWRITE
|
|
195 # else
|
|
196 # define S_IWUSR 00200
|
|
197 # endif
|
|
198 #endif
|
|
199
|
|
200 #if !S_IXUSR
|
|
201 # if S_IEXEC
|
|
202 # define S_IXUSR S_IEXEC
|
|
203 # else
|
|
204 # define S_IXUSR 00100
|
|
205 # endif
|
|
206 #endif
|
|
207
|
|
208 #ifdef STAT_MACROS_BROKEN
|
|
209 #undef S_ISBLK
|
|
210 #undef S_ISCHR
|
|
211 #undef S_ISDIR
|
|
212 #undef S_ISFIFO
|
|
213 #undef S_ISLNK
|
|
214 #undef S_ISMPB
|
|
215 #undef S_ISMPC
|
|
216 #undef S_ISNWK
|
|
217 #undef S_ISREG
|
|
218 #undef S_ISSOCK
|
|
219 #endif /* STAT_MACROS_BROKEN. */
|
|
220
|
|
221 #if !defined(S_ISBLK) && defined(S_IFBLK)
|
|
222 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
|
|
223 #endif
|
|
224 #if !defined(S_ISCHR) && defined(S_IFCHR)
|
|
225 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
|
|
226 #endif
|
|
227 #if !defined(S_ISDIR) && defined(S_IFDIR)
|
|
228 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
|
229 #endif
|
|
230 #if !defined(S_ISREG) && defined(S_IFREG)
|
|
231 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
|
232 #endif
|
|
233 #if !defined(S_ISFIFO) && defined(S_IFIFO)
|
|
234 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
|
|
235 #endif
|
|
236 #if !defined(S_ISLNK) && defined(S_IFLNK)
|
|
237 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
|
|
238 #endif
|
|
239 #if !defined(S_ISSOCK) && defined(S_IFSOCK)
|
|
240 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
|
241 #endif
|
|
242 #if !defined(S_ISMPB) && defined(S_IFMPB) /* V7 */
|
|
243 #define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
|
|
244 #define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
|
|
245 #endif
|
|
246 #if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */
|
|
247 #define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
|
|
248 #endif
|
|
249
|
442
|
250 /* Client .c files should simply use `PATH_MAX'. */
|
|
251 #ifndef PATH_MAX
|
558
|
252 # if defined (_MAX_PATH)
|
|
253 /* MS Win -- and preferable to _POSIX_PATH_MAX, which is also defined */
|
|
254 # define PATH_MAX _MAX_PATH
|
|
255 # elif defined (_POSIX_PATH_MAX)
|
442
|
256 # define PATH_MAX _POSIX_PATH_MAX
|
|
257 # elif defined (MAXPATHLEN)
|
|
258 # define PATH_MAX MAXPATHLEN
|
|
259 # else
|
|
260 # define PATH_MAX 1024
|
|
261 # endif
|
|
262 #endif
|
|
263
|
|
264 /* MAXPATHLEN is deprecated, but, as of this writing, still used. */
|
428
|
265 #ifndef MAXPATHLEN
|
442
|
266 # define MAXPATHLEN 1024
|
|
267 #endif
|
|
268
|
|
269 /* The following definitions are needed under Windows, at least */
|
|
270 #ifndef X_OK
|
|
271 # define X_OK 1
|
|
272 #endif
|
428
|
273
|
442
|
274 #ifndef R_OK
|
|
275 # define R_OK 4
|
|
276 #endif
|
|
277
|
|
278 #ifndef W_OK
|
|
279 # define W_OK 2
|
|
280 #endif
|
|
281
|
|
282 #ifndef F_OK
|
|
283 # define F_OK 0
|
428
|
284 #endif
|
|
285
|
|
286 #ifndef FD_CLOEXEC
|
|
287 # define FD_CLOEXEC 1
|
|
288 #endif
|
|
289
|
|
290 /* Emacs needs to use its own definitions of certain system calls on
|
|
291 some systems (like SunOS 4.1 and USG systems, where the read system
|
|
292 call is interruptible but Emacs expects it not to be; and under
|
|
293 MULE, where all filenames need to be converted to external format).
|
|
294 To do this, we #define read to be sys_read, which is defined in
|
|
295 sysdep.c. We first #undef read, in case some system file defines
|
|
296 read as a macro. sysdep.c doesn't encapsulate read, so the call to
|
|
297 read inside of sys_read will do the right thing.
|
|
298
|
|
299 DONT_ENCAPSULATE is used in files such as sysdep.c that want to
|
|
300 call the actual system calls rather than the encapsulated versions.
|
|
301 Those files can call sys_read to get the (possibly) encapsulated
|
|
302 versions.
|
|
303
|
|
304 IMPORTANT: the redefinition of the system call must occur *after* the
|
|
305 inclusion of any header files that declare or define the system call;
|
|
306 otherwise lots of unfriendly things can happen. This goes for all
|
|
307 encapsulated system calls.
|
|
308
|
|
309 We encapsulate the most common system calls here; we assume their
|
|
310 declarations are in one of the standard header files included above.
|
|
311 Other encapsulations are declared in the appropriate sys*.h file. */
|
|
312
|
|
313 #ifdef ENCAPSULATE_READ
|
|
314 ssize_t sys_read (int, void *, size_t);
|
|
315 #endif
|
|
316 #if defined (ENCAPSULATE_READ) && !defined (DONT_ENCAPSULATE)
|
|
317 # undef read
|
|
318 # define read sys_read
|
|
319 #endif
|
|
320 #if !defined (ENCAPSULATE_READ) && defined (DONT_ENCAPSULATE)
|
|
321 # define sys_read read
|
|
322 #endif
|
|
323
|
|
324 #ifdef ENCAPSULATE_WRITE
|
442
|
325 ssize_t sys_write (int, const void *, size_t);
|
428
|
326 #endif
|
|
327 #if defined (ENCAPSULATE_WRITE) && !defined (DONT_ENCAPSULATE)
|
|
328 # undef write
|
|
329 # define write sys_write
|
|
330 #endif
|
|
331 #if !defined (ENCAPSULATE_WRITE) && defined (DONT_ENCAPSULATE)
|
|
332 # define sys_write write
|
|
333 #endif
|
|
334
|
|
335 #ifdef ENCAPSULATE_OPEN
|
442
|
336 int sys_open (const char *, int, ...);
|
428
|
337 #endif
|
|
338 #if defined (ENCAPSULATE_OPEN) && !defined (DONT_ENCAPSULATE)
|
|
339 # undef open
|
|
340 # define open sys_open
|
|
341 #endif
|
|
342 #if !defined (ENCAPSULATE_OPEN) && defined (DONT_ENCAPSULATE)
|
|
343 # define sys_open open
|
|
344 #endif
|
|
345
|
|
346 #ifdef ENCAPSULATE_CLOSE
|
|
347 int sys_close (int);
|
|
348 #endif
|
|
349 #if defined (ENCAPSULATE_CLOSE) && !defined (DONT_ENCAPSULATE)
|
|
350 # undef close
|
|
351 # define close sys_close
|
|
352 #endif
|
|
353 #if !defined (ENCAPSULATE_CLOSE) && defined (DONT_ENCAPSULATE)
|
|
354 # define sys_close close
|
|
355 #endif
|
|
356
|
|
357 /* Now the stdio versions ... */
|
|
358
|
|
359 #ifdef ENCAPSULATE_FREAD
|
|
360 size_t sys_fread (void *, size_t, size_t, FILE *);
|
|
361 #endif
|
|
362 #if defined (ENCAPSULATE_FREAD) && !defined (DONT_ENCAPSULATE)
|
|
363 # undef fread
|
|
364 # define fread sys_fread
|
|
365 #endif
|
|
366 #if !defined (ENCAPSULATE_FREAD) && defined (DONT_ENCAPSULATE)
|
|
367 # define sys_fread fread
|
|
368 #endif
|
|
369
|
|
370 #ifdef ENCAPSULATE_FWRITE
|
442
|
371 size_t sys_fwrite (const void *, size_t, size_t, FILE *);
|
428
|
372 #endif
|
|
373 #if defined (ENCAPSULATE_FWRITE) && !defined (DONT_ENCAPSULATE)
|
|
374 # undef fwrite
|
|
375 # define fwrite sys_fwrite
|
|
376 #endif
|
|
377 #if !defined (ENCAPSULATE_FWRITE) && defined (DONT_ENCAPSULATE)
|
|
378 # define sys_fwrite fwrite
|
|
379 #endif
|
|
380
|
|
381 #ifdef ENCAPSULATE_FOPEN
|
442
|
382 FILE *sys_fopen (const char *, const char *);
|
428
|
383 #endif
|
|
384 #if defined (ENCAPSULATE_FOPEN) && !defined (DONT_ENCAPSULATE)
|
|
385 # undef fopen
|
|
386 # define fopen sys_fopen
|
|
387 #endif
|
|
388 #if !defined (ENCAPSULATE_FOPEN) && defined (DONT_ENCAPSULATE)
|
|
389 # define sys_fopen fopen
|
|
390 #endif
|
|
391
|
|
392 #ifdef ENCAPSULATE_FCLOSE
|
|
393 int sys_fclose (FILE *);
|
|
394 #endif
|
|
395 #if defined (ENCAPSULATE_FCLOSE) && !defined (DONT_ENCAPSULATE)
|
|
396 # undef fclose
|
|
397 # define fclose sys_fclose
|
|
398 #endif
|
|
399 #if !defined (ENCAPSULATE_FCLOSE) && defined (DONT_ENCAPSULATE)
|
|
400 # define sys_fclose fclose
|
|
401 #endif
|
|
402
|
|
403
|
|
404 /* encapsulations: file-information calls */
|
|
405
|
|
406 #ifdef ENCAPSULATE_ACCESS
|
442
|
407 int sys_access (const char *path, int mode);
|
428
|
408 #endif
|
|
409 #if defined (ENCAPSULATE_ACCESS) && !defined (DONT_ENCAPSULATE)
|
|
410 # undef access
|
|
411 # define access sys_access
|
|
412 #endif
|
|
413 #if !defined (ENCAPSULATE_ACCESS) && defined (DONT_ENCAPSULATE)
|
|
414 # define sys_access access
|
|
415 #endif
|
|
416
|
|
417 #ifdef ENCAPSULATE_EACCESS
|
442
|
418 int sys_eaccess (const char *path, int mode);
|
428
|
419 #endif
|
|
420 #if defined (ENCAPSULATE_EACCESS) && !defined (DONT_ENCAPSULATE)
|
|
421 # undef eaccess
|
|
422 # define eaccess sys_eaccess
|
|
423 #endif
|
|
424 #if !defined (ENCAPSULATE_EACCESS) && defined (DONT_ENCAPSULATE)
|
|
425 # define sys_eaccess eaccess
|
|
426 #endif
|
|
427
|
|
428 #ifdef ENCAPSULATE_LSTAT
|
442
|
429 int sys_lstat (const char *path, struct stat *buf);
|
428
|
430 #endif
|
|
431 #if defined (ENCAPSULATE_LSTAT) && !defined (DONT_ENCAPSULATE)
|
|
432 # undef lstat
|
|
433 # define lstat sys_lstat
|
|
434 #endif
|
|
435 #if !defined (ENCAPSULATE_LSTAT) && defined (DONT_ENCAPSULATE)
|
|
436 # define sys_lstat lstat
|
|
437 #endif
|
|
438
|
|
439 #ifdef ENCAPSULATE_READLINK
|
442
|
440 int sys_readlink (const char *path, char *buf, size_t bufsiz);
|
428
|
441 #endif
|
|
442 #if defined (ENCAPSULATE_READLINK) && !defined (DONT_ENCAPSULATE)
|
|
443 # undef readlink
|
|
444 # define readlink sys_readlink
|
|
445 #endif
|
|
446 #if !defined (ENCAPSULATE_READLINK) && defined (DONT_ENCAPSULATE)
|
|
447 # define sys_readlink readlink
|
|
448 #endif
|
|
449
|
432
|
450 #ifdef ENCAPSULATE_FSTAT
|
|
451 int sys_fstat (int fd, struct stat *buf);
|
|
452 #endif
|
|
453 #if defined (ENCAPSULATE_FSTAT) && !defined (DONT_ENCAPSULATE)
|
|
454 # undef fstat
|
442
|
455 # define fstat sys_fstat
|
432
|
456 #endif
|
|
457 #if !defined (ENCAPSULATE_FSTAT) && defined (DONT_ENCAPSULATE)
|
|
458 # define sys_fstat fstat
|
|
459 #endif
|
|
460
|
442
|
461 int xemacs_stat (const char *path, struct stat *buf);
|
428
|
462
|
|
463 /* encapsulations: file-manipulation calls */
|
|
464
|
|
465 #ifdef ENCAPSULATE_CHMOD
|
442
|
466 int sys_chmod (const char *path, mode_t mode);
|
428
|
467 #endif
|
|
468 #if defined (ENCAPSULATE_CHMOD) && !defined (DONT_ENCAPSULATE)
|
|
469 # undef chmod
|
|
470 # define chmod sys_chmod
|
|
471 #endif
|
|
472 #if !defined (ENCAPSULATE_CHMOD) && defined (DONT_ENCAPSULATE)
|
|
473 # define sys_chmod chmod
|
|
474 #endif
|
|
475
|
|
476 #ifdef ENCAPSULATE_CREAT
|
442
|
477 int sys_creat (const char *path, mode_t mode);
|
428
|
478 #endif
|
|
479 #if defined (ENCAPSULATE_CREAT) && !defined (DONT_ENCAPSULATE)
|
|
480 # undef creat
|
|
481 # define creat sys_creat
|
|
482 #endif
|
|
483 #if !defined (ENCAPSULATE_CREAT) && defined (DONT_ENCAPSULATE)
|
|
484 # define sys_creat creat
|
|
485 #endif
|
|
486
|
|
487 #ifdef ENCAPSULATE_LINK
|
442
|
488 int sys_link (const char *existing, const char *new);
|
428
|
489 #endif
|
|
490 #if defined (ENCAPSULATE_LINK) && !defined (DONT_ENCAPSULATE)
|
|
491 # undef link
|
|
492 # define link sys_link
|
|
493 #endif
|
|
494 #if !defined (ENCAPSULATE_LINK) && defined (DONT_ENCAPSULATE)
|
|
495 # define sys_link link
|
|
496 #endif
|
|
497
|
|
498 #ifdef ENCAPSULATE_RENAME
|
442
|
499 int sys_rename (const char *old, const char *new);
|
428
|
500 #endif
|
|
501 #if defined (ENCAPSULATE_RENAME) && !defined (DONT_ENCAPSULATE)
|
|
502 # undef rename
|
|
503 # define rename sys_rename
|
|
504 #endif
|
|
505 #if !defined (ENCAPSULATE_RENAME) && defined (DONT_ENCAPSULATE)
|
|
506 # define sys_rename rename
|
|
507 #endif
|
|
508
|
|
509 #ifdef ENCAPSULATE_SYMLINK
|
442
|
510 int sys_symlink (const char *name1, const char *name2);
|
428
|
511 #endif
|
|
512 #if defined (ENCAPSULATE_SYMLINK) && !defined (DONT_ENCAPSULATE)
|
|
513 # undef symlink
|
|
514 # define symlink sys_symlink
|
|
515 #endif
|
|
516 #if !defined (ENCAPSULATE_SYMLINK) && defined (DONT_ENCAPSULATE)
|
|
517 # define sys_symlink symlink
|
|
518 #endif
|
|
519
|
|
520 #ifdef ENCAPSULATE_UNLINK
|
442
|
521 int sys_unlink (const char *path);
|
428
|
522 #endif
|
|
523 #if defined (ENCAPSULATE_UNLINK) && !defined (DONT_ENCAPSULATE)
|
|
524 # undef unlink
|
|
525 # define unlink sys_unlink
|
|
526 #endif
|
|
527 #if !defined (ENCAPSULATE_UNLINK) && defined (DONT_ENCAPSULATE)
|
|
528 # define sys_unlink unlink
|
|
529 #endif
|
|
530
|
|
531 #ifdef ENCAPSULATE_EXECVP
|
442
|
532 int sys_execvp (const char *, char * const *);
|
428
|
533 #endif
|
|
534 #if defined (ENCAPSULATE_EXECVP) && !defined (DONT_ENCAPSULATE)
|
|
535 # undef execvp
|
|
536 # define execvp sys_execvp
|
|
537 #endif
|
|
538 #if !defined (ENCAPSULATE_EXECVP) && defined (DONT_ENCAPSULATE)
|
|
539 # define sys_execvp execvp
|
|
540 #endif
|
440
|
541
|
|
542 #endif /* INCLUDED_sysfile_h_ */
|