diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-01-26 01:45:11 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-01-26 01:45:11 +0300 |
commit | 72c1491bba149c8fbd9eb81a0a529aa8bad47bb5 (patch) | |
tree | 22544335c6c060175878b8bd05f459cbbe0d3fd0 /winsup/cygwin/wincap.h | |
parent | 17923424c4bc8d7f132e174939814baebdbae1a0 (diff) |
* cygwin.din: Export getpriority and setpriority.
* fork.cc (fork_parent): Copy parent's nice value into child.
* spawn.cc (spawn_guts): Ditto.
* miscfuncs.cc (winprio_to_nice): New function.
(nice_to_winprio): Ditto.
* pinfo.cc (pinfo_init): If parent is not a Cygwin process, set
default nice value according to current Win32 priority class.
* pinfo.h (class _pinfo): Add nice member.
* syscalls.cc (setpriority): New function, only implementing
PRIO_PROCESS for now.
(getpriority): Ditto.
(nice): Just call setpriority.
* wincap.h (wincaps::has_extended_priority_class): New element.
* wincap.cc: Implement above element throughout.
* winsup.h: Add prototypes for winprio_to_nice and nice_to_winprio.
* include/limits.h (NZERO): New define.
* include/cygwin/types.h (id_t): New datatype.
* include/cygwin/version.h: Bump API minor version.
* include/sys/resource.h: Add PRIO_XXX defines and prototypes for
getpriority and setpriority.
Diffstat (limited to 'winsup/cygwin/wincap.h')
-rw-r--r-- | winsup/cygwin/wincap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h index eb9c5ba3f..020285f85 100644 --- a/winsup/cygwin/wincap.h +++ b/winsup/cygwin/wincap.h @@ -56,6 +56,7 @@ struct wincaps unsigned cant_debug_dll_entry : 1; unsigned has_ioctl_storage_get_media_types_ex : 1; unsigned start_proc_suspended : 1; + unsigned has_extended_priority_class : 1; }; class wincapc @@ -116,6 +117,7 @@ public: bool IMPLEMENT (cant_debug_dll_entry) bool IMPLEMENT (has_ioctl_storage_get_media_types_ex) bool IMPLEMENT (start_proc_suspended) + bool IMPLEMENT (has_extended_priority_class) #undef IMPLEMENT }; |