Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-03-18 23:58:18 +0300
committerChristopher Faylor <me@cgf.cx>2001-03-18 23:58:18 +0300
commit51cb7ca7acf620946b7b90baa10c56ff2669803e (patch)
treead69d4a08678769adb2b50c5f55cb79b7add75b0 /winsup/cygwin/spawn.cc
parent5e8e21d938b5410b008f20d50d8d0fb9ba6df66b (diff)
fix spacing.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 431923dae..933d4d6e9 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -298,7 +298,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
if (prog_arg == NULL)
{
syscall_printf ("prog_arg is NULL");
- set_errno(EINVAL);
+ set_errno (EINVAL);
return -1;
}
@@ -307,7 +307,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
if (argv == NULL)
{
syscall_printf ("argv is NULL");
- set_errno(EINVAL);
+ set_errno (EINVAL);
return (-1);
}
@@ -327,7 +327,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
else
chtype = PROC_EXEC;
- HANDLE spr = CreateEvent(&sec_all, TRUE, FALSE, NULL);
+ HANDLE spr = CreateEvent (&sec_all, TRUE, FALSE, NULL);
ProtectHandle (spr);
init_child_info (chtype, &ciresrv, (mode == _P_OVERLAY) ? myself->pid : 1, spr);
@@ -401,7 +401,7 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
DWORD done;
char buf[2 * MAX_PATH + 1];
- buf[0] = buf[1] = buf[2] = buf[sizeof(buf) - 1] = '\0';
+ buf[0] = buf[1] = buf[2] = buf[sizeof (buf) - 1] = '\0';
if (!ReadFile (hnd, buf, sizeof (buf) - 1, &done, 0))
{
CloseHandle (hnd);
@@ -620,12 +620,12 @@ skip_arg_parsing:
char dskname[1024];
ciresrv.moreinfo->uid = USHRT_MAX;
- hwst = GetProcessWindowStation();
- SetUserObjectSecurity(hwst, &dsi, get_null_sd ());
- GetUserObjectInformation(hwst, UOI_NAME, wstname, 1024, &n);
- hdsk = GetThreadDesktop(GetCurrentThreadId());
- SetUserObjectSecurity(hdsk, &dsi, get_null_sd ());
- GetUserObjectInformation(hdsk, UOI_NAME, dskname, 1024, &n);
+ hwst = GetProcessWindowStation ();
+ SetUserObjectSecurity (hwst, &dsi, get_null_sd ());
+ GetUserObjectInformation (hwst, UOI_NAME, wstname, 1024, &n);
+ hdsk = GetThreadDesktop (GetCurrentThreadId ());
+ SetUserObjectSecurity (hdsk, &dsi, get_null_sd ());
+ GetUserObjectInformation (hdsk, UOI_NAME, dskname, 1024, &n);
strcat (wstname, "\\");
strcat (wstname, dskname);
si.lpDesktop = wstname;
@@ -647,7 +647,7 @@ skip_arg_parsing:
: &sec_all_nih;
/* Remove impersonation */
- uid_t uid = geteuid();
+ uid_t uid = geteuid ();
if (cygheap->user.impersonated
&& cygheap->user.token != INVALID_HANDLE_VALUE)
seteuid (cygheap->user.orig_uid);
@@ -822,7 +822,7 @@ skip_arg_parsing:
{
system_printf ("Reparent failed, parent handle %p, %E", h);
system_printf ("my dwProcessId %d, myself->dwProcessId %d",
- GetCurrentProcessId(), myself->dwProcessId);
+ GetCurrentProcessId (), myself->dwProcessId);
system_printf ("old hProcess %p, hProcess %p", oldh, myself->hProcess);
}
}