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:
authorCorinna Vinschen <corinna@vinschen.de>2004-09-15 14:17:53 +0400
committerCorinna Vinschen <corinna@vinschen.de>2004-09-15 14:17:53 +0400
commit1dcd520bb878cfd02e72f31b9e2d8ccdd3073a2c (patch)
tree94b87d56b4ff157a24e01fd570a906987f1ba51c /winsup/cygserver/process.cc
parentb103e0d73285adeb8dc4dfa58568dacf2927742e (diff)
Fix copyright throughout.
Eliminate use of _impure_ptr outside Cygwin. * bsd_helper.cc: Include errno.h instead of cygerrno.h. * bsd_mutex.cc : Ditto. * client.cc: Ditto. * cygserver.cc: Ditto. * process.cc: Don't build functions inside Cygwin. Don't include cygerrno.h. Don't set errno. * transport_pipes.cc (SET_ERRNO): New define. Use througout. * transport_sockets.cc (SET_ERRNO): Ditto. (GET_ERRNO): Ditto.
Diffstat (limited to 'winsup/cygserver/process.cc')
-rw-r--r--winsup/cygserver/process.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/winsup/cygserver/process.cc b/winsup/cygserver/process.cc
index 8f1ff5776..94e7893a2 100644
--- a/winsup/cygserver/process.cc
+++ b/winsup/cygserver/process.cc
@@ -1,6 +1,6 @@
/* process.cc
- Copyright 2001, 2002 Red Hat Inc.
+ Copyright 2001, 2002, 2003, 2004 Red Hat Inc.
Written by Robert Collins <rbtcollins@hotmail.com>
@@ -10,6 +10,7 @@ This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
+#ifdef __OUTSIDE_CYGWIN__
#include "woutsup.h"
#include <sys/types.h>
@@ -17,8 +18,6 @@ details. */
#include <assert.h>
#include <stdlib.h>
-#include "cygerrno.h"
-
#include "process.h"
/*****************************************************************************/
@@ -250,7 +249,6 @@ process_cache::process (const pid_t cygpid, const DWORD winpid,
"new connection refused for %d(%lu)"),
MAXIMUM_WAIT_OBJECTS - SPECIALS_COUNT,
cygpid, winpid);
- set_errno (EAGAIN);
return NULL;
}
@@ -259,7 +257,6 @@ process_cache::process (const pid_t cygpid, const DWORD winpid,
{
LeaveCriticalSection (&_cache_write_access);
delete entry;
- set_errno (ESRCH);
return NULL;
}
@@ -433,3 +430,4 @@ process_cache::find (const DWORD winpid, class process **previous)
}
/*****************************************************************************/
+#endif /* __OUTSIDE_CYGWIN__ */