mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
GH-103545: Add macOS specific constants for `os.setpriority to os` (#104606)
This adds a number of PRIO_DARWIN_* constants to the os module for use with os.setpriority. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
parent
fd04bfeaf7
commit
616fcad6e2
3 changed files with 24 additions and 0 deletions
|
|
@ -493,6 +493,17 @@ process and user.
|
|||
.. versionadded:: 3.3
|
||||
|
||||
|
||||
.. data:: PRIO_DARWIN_THREAD
|
||||
PRIO_DARWIN_PROCESS
|
||||
PRIO_DARWIN_BG
|
||||
PRIO_DARWIN_NONUI
|
||||
|
||||
Parameters for the :func:`getpriority` and :func:`setpriority` functions.
|
||||
|
||||
.. availability:: macOS
|
||||
|
||||
.. versionadded:: 3.12
|
||||
|
||||
.. function:: getresuid()
|
||||
|
||||
Return a tuple (ruid, euid, suid) denoting the current process's
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue