projects
/
platform
/
upstream
/
m4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.4.17
[platform/upstream/m4.git]
/
lib
/
spawni.c
diff --git
a/lib/spawni.c
b/lib/spawni.c
index
9af2781
..
17b903f
100644
(file)
--- a/
lib/spawni.c
+++ b/
lib/spawni.c
@@
-1,5
+1,5
@@
/* Guts of POSIX spawn interface. Generic POSIX.1 version.
/* Guts of POSIX spawn interface. Generic POSIX.1 version.
- Copyright (C) 2000-2006, 2008-201
1
Free Software Foundation, Inc.
+ Copyright (C) 2000-2006, 2008-201
3
Free Software Foundation, Inc.
This file is part of the GNU C Library.
This program is free software: you can redistribute it and/or modify
This file is part of the GNU C Library.
This program is free software: you can redistribute it and/or modify
@@
-91,7
+91,7
@@
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
-/* Native W
oe32
API. */
+/* Native W
indows
API. */
int
__spawni (pid_t *pid, const char *file,
const posix_spawn_file_actions_t *file_actions,
int
__spawni (pid_t *pid, const char *file,
const posix_spawn_file_actions_t *file_actions,
@@
-259,7
+259,7
@@
__spawni (pid_t *pid, const char *file,
action->action.open_action.mode);
if (new_fd == -1)
action->action.open_action.mode);
if (new_fd == -1)
- /* The
`
open' call failed. */
+ /* The
'
open' call failed. */
_exit (SPAWN_ERROR);
/* Make sure the desired file descriptor is used. */
_exit (SPAWN_ERROR);
/* Make sure the desired file descriptor is used. */
@@
-267,11
+267,11
@@
__spawni (pid_t *pid, const char *file,
{
if (dup2 (new_fd, action->action.open_action.fd)
!= action->action.open_action.fd)
{
if (dup2 (new_fd, action->action.open_action.fd)
!= action->action.open_action.fd)
- /* The
`
dup2' call failed. */
+ /* The
'
dup2' call failed. */
_exit (SPAWN_ERROR);
if (close_not_cancel (new_fd) != 0)
_exit (SPAWN_ERROR);
if (close_not_cancel (new_fd) != 0)
- /* The
`
close' call failed. */
+ /* The
'
close' call failed. */
_exit (SPAWN_ERROR);
}
}
_exit (SPAWN_ERROR);
}
}
@@
-281,7
+281,7
@@
__spawni (pid_t *pid, const char *file,
if (dup2 (action->action.dup2_action.fd,
action->action.dup2_action.newfd)
!= action->action.dup2_action.newfd)
if (dup2 (action->action.dup2_action.fd,
action->action.dup2_action.newfd)
!= action->action.dup2_action.newfd)
- /* The
`
dup2' call failed. */
+ /* The
'
dup2' call failed. */
_exit (SPAWN_ERROR);
break;
}
_exit (SPAWN_ERROR);
break;
}
@@
-296,7
+296,7
@@
__spawni (pid_t *pid, const char *file,
if (errno == ENOEXEC)
script_execute (file, argv, envp);
if (errno == ENOEXEC)
script_execute (file, argv, envp);
- /* Oh, oh.
`
execve' returns. This is bad. */
+ /* Oh, oh.
'
execve' returns. This is bad. */
_exit (SPAWN_ERROR);
}
_exit (SPAWN_ERROR);
}
@@
-305,9
+305,9
@@
__spawni (pid_t *pid, const char *file,
if (path == NULL)
{
#if HAVE_CONFSTR
if (path == NULL)
{
#if HAVE_CONFSTR
- /* There is no
`
PATH' in the environment.
+ /* There is no
'
PATH' in the environment.
The default search path is the current directory
The default search path is the current directory
- followed by the path
`confstr' returns for `
_CS_PATH'. */
+ followed by the path
'confstr' returns for '
_CS_PATH'. */
len = confstr (_CS_PATH, (char *) NULL, 0);
path = (char *) alloca (1 + len);
path[0] = ':';
len = confstr (_CS_PATH, (char *) NULL, 0);
path = (char *) alloca (1 + len);
path[0] = ':';
@@
-336,7
+336,7
@@
__spawni (pid_t *pid, const char *file,
if (p == path)
/* Two adjacent colons, or a colon at the beginning or the end
if (p == path)
/* Two adjacent colons, or a colon at the beginning or the end
- of
`
PATH' means to search the current directory. */
+ of
'
PATH' means to search the current directory. */
startp = name + 1;
else
startp = (char *) memcpy (name - (p - path), path, p - path);
startp = name + 1;
else
startp = (char *) memcpy (name - (p - path), path, p - path);