diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-08 06:56:55 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-08 06:56:55 +0400 |
commit | f0338f545d769143f542338b4d61f771b5a87f93 (patch) | |
tree | b9d5b53c28100c35e10c0232c0e54ce474d6cc7c /winsup/cygwin/pinfo.h | |
parent | 42b6d9648fdd3f78806ac0556338f8fb13707821 (diff) |
Break out more header info into separate files. Use appropriate header files
throughout.
* shared.h: Remove.
* cygwin_version.h: New file.
* delqueue.h: New file.
* environ.h: New file.
* host_dependent.h: New file.
* perprocess.h: New file.
* registry.h: New file.
* security.h: New file.
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r-- | winsup/cygwin/pinfo.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index 891fd4228..13eaa1de8 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -1,4 +1,12 @@ -/******** Process Table ********/ +/* pinfo.h: process table info + + Copyright 2000 Cygnus Solutions. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ /* Signal constants (have to define them here, unfortunately) */ @@ -13,6 +21,7 @@ enum #define PSIZE 1024 class ThreadItem; +#include <sys/resource.h> class _pinfo { @@ -166,3 +175,16 @@ cygwin_pid (pid_t pid) void __stdcall pinfo_init (char **); void __stdcall set_myself (pid_t pid, HANDLE h = NULL); extern pinfo myself; + +#define _P_VFORK 0 +extern "C" int _spawnve (HANDLE hToken, int mode, const char *path, + const char *const *argv, const char *const *envp); + +extern void __stdcall exec_fixup_after_fork (); + +/* For mmaps across fork(). */ +int __stdcall recreate_mmaps_after_fork (void *); +void __stdcall set_child_mmap_ptr (_pinfo *); + +void __stdcall fill_rusage (struct rusage *, HANDLE); +void __stdcall add_rusage (struct rusage *, struct rusage *); |