summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/winf.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-01-20 11:09:21 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-01-20 11:09:21 +0000
commit2aba945c95bcdd1fdedb77d6828ad726eaaa58c7 (patch)
tree5cbee9c1bf586d266f883a572ef8c549bcf0f9d2 /winsup/cygwin/winf.h
parent9b68968b21886527163744407be85c6892c14021 (diff)
downloadcygnal-2aba945c95bcdd1fdedb77d6828ad726eaaa58c7.tar.gz
cygnal-2aba945c95bcdd1fdedb77d6828ad726eaaa58c7.tar.bz2
cygnal-2aba945c95bcdd1fdedb77d6828ad726eaaa58c7.zip
* exec.cc: Include pinfo.h.
* winf.h: Move definitions of _P_PATH_TYPE_EXEC and _P_MODE from here... * pinfo.h: ...to here. (_P_PATH_TYPE_EXEC): Redefine to be bigger than _P_SYSTEM. (_P_MODE): Redefine so as not to mask out _P_SYSTEM. * spawn.cc (spawnlp): Add _P_PATH_TYPE_EXEC flag in call to spawnve. (spawnlpe): Ditto. (spawnvp): Ditto.
Diffstat (limited to 'winsup/cygwin/winf.h')
-rw-r--r--winsup/cygwin/winf.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/winsup/cygwin/winf.h b/winsup/cygwin/winf.h
index dccaf5b32..55bedacb7 100644
--- a/winsup/cygwin/winf.h
+++ b/winsup/cygwin/winf.h
@@ -20,16 +20,6 @@ details. */
#define MAXWINCMDLEN 32767
#define LINE_BUF_CHUNK (MAX_PATH * 2)
-/* Add this flag in calls to spawn_guts if the calling function is one of
- 'p' type functions: execlp, execvp, spawnlp, spawnvp. Per POSIX, only
- these p-type functions fall back to call /bin/sh if the file is not a
- binary. The setting of _P_PATH_TYPE_EXEC is used as a bool value in
- av::fixup to decide if the file should be evaluated as a script, or if
- ENOEXEC should be returned. */
-#define _P_PATH_TYPE_EXEC 0x100
-/* Helper macro to mask actual mode and drop additional flags defined above. */
-#define _P_MODE(x) ((x) & 0xff)
-
class av
{
char **argv;