summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/shared.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-05-18 18:32:05 +0000
committerChristopher Faylor <me@cgf.cx>2000-05-18 18:32:05 +0000
commit2a6a56c227b8649b3f3f3f6cd1648305e82d3aab (patch)
tree5b83bf7ef5d58eac8652019f02f7deb545e7c054 /winsup/cygwin/shared.h
parent6c7395bfce9491415d6672bc97a7f6e70fd07fd9 (diff)
downloadcygnal-2a6a56c227b8649b3f3f3f6cd1648305e82d3aab.tar.gz
cygnal-2a6a56c227b8649b3f3f3f6cd1648305e82d3aab.tar.bz2
cygnal-2a6a56c227b8649b3f3f3f6cd1648305e82d3aab.zip
* select.cc (thread_pipe): Add paranoid check to ensure thread termination.
* external.cc: Eliminate obsolete include. * getopt.c (getopt_long): Fix compiler warning. * shared.h: Moved PID_ definitions to include/sys/cygwin so that they can be used by external programs. * include/sys/cygwin.h: Move external definitions here. Include sys/resource.h to avoid having to do this everywhere.
Diffstat (limited to 'winsup/cygwin/shared.h')
-rw-r--r--winsup/cygwin/shared.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/winsup/cygwin/shared.h b/winsup/cygwin/shared.h
index d4f9c5bfb..ee0aef46b 100644
--- a/winsup/cygwin/shared.h
+++ b/winsup/cygwin/shared.h
@@ -144,30 +144,6 @@ public:
#define ISSTATE(p, f) (!!((p)->process_state & f))
#define NOTSTATE(p, f) (!((p)->process_state & f))
-/* Flags associated with process_state */
-enum
-{
- PID_NOT_IN_USE = 0x0000, // Free entry.
- PID_IN_USE = 0x0001, // Entry in use.
- PID_ZOMBIE = 0x0002, // Child exited: no parent wait.
- PID_STOPPED = 0x0004, // Waiting for SIGCONT.
- PID_TTYIN = 0x0008, // Waiting for terminal input.
- PID_TTYOU = 0x0010, // Waiting for terminal output.
- PID_ORPHANED = 0x0020, // Member of an orphaned process group.
- PID_ACTIVE = 0x0040, // Pid accepts signals.
- PID_CYGPARENT = 0x0080, // Set if parent was a cygwin app.
- PID_SPLIT_HEAP = 0x0100, // Set if the heap has been split,
- // which means we can't fork again.
- PID_CLEAR = 0x0200, // Flag that pid should be cleared from parent's
- // wait list
- PID_SOCKETS_USED = 0x0400, // Set if process uses Winsock.
- PID_INITIALIZING = 0x0800, // Set until ready to receive signals.
- PID_USETTY = 0x1000, // Setting this enables or disables cygwin's
- // tty support. This is inherited by
- // all execed or forked processes.
- PID_REPARENT = 0x2000 // child has execed
-};
-
#define PSIZE 128
class pinfo_list