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