JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrJFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr 0idZddlZddlZddlZddlZddlZddlmZddlmZddlm Z ddlm Z ddlm Z erdd l m Z gd Zd Zej d ej"Dcic]}|j$|j& c}Zd Zddej,eedej eej2efdZdZe dZycc}w)z%Routines common to all posix systems.N)MACOSTimeoutExpired)memoize) sdiskusage) usage_percent) _psutil_osx) pid_existswait_pid disk_usageget_terminal_mapcp|dk(ry tj|dy#t$rYyt$rYywxYw)z6Check whether pid exists in the current process table.rTF)oskillProcessLookupErrorPermissionError)pids @/opt/hc_python/lib64/python3.12/site-packages/psutil/_psposix.pyr r sD ax   Q  s 555 Negsignalc< t|S#t$r|cYSwxYw)z+Convert a negative signal value to an enum.)r ValueError)nums rnegsig_to_enumr5s%~  s  monotonicc4dkr d}t|d} d} | tjz} zfd} tj| \} } | dk(r | | } )tj| rtj | Stj | rttj|  Sd| }t|#t$r | | } Yn't$r|r| | } |rYywxYw)aWait for a process PID to terminate. If the process terminated normally by calling exit(3) or _exit(2), or by returning from main(), the return value is the positive integer passed to *exit(). If it was terminated by a signal it returns the negated value of the signal which caused the termination (e.g. -SIGTERM). If PID is not a children of os.getpid() (current process) just wait until the process disappears and return None. If PID does not exist at all return None immediately. If *timeout* != None and process is still alive raise TimeoutExpired. timeout=0 is also possible (either return immediately or raise). rzcan't wait for PID 0g-C6?Nc`k\rt||dzdS)N)rnameg{Gz?r)interval_min_sleep_timerr proc_namestop_attimeouts rsleepzwait_pid..sleepbs;  x7"$W#IFFxHqL$''zunknown process exit status ) rrWNOHANGwaitpid WIFEXITED WEXITSTATUS WIFSIGNALEDrWTERMSIGInterruptedErrorChildProcessError)rr&r$_waitpidr#r!r" _pid_existsmsgr flagsr'retpidstatusr%s``` ``` @rr r =s$6 ax$oH E (W$(( . &ZZU3NFF{ ?||F#~~f--'&r{{6':&:;;"5VJ? o%Y  'XH c" ?c"  s CD2 DDcHtj|}|j|jz}|j|jz}|j |jz}||z }t rtj||}||z}t||d}t||||S)a.Return disk usage associated with path. Note: UNIX usually reserves 5% disk space which is not accessible by user. In this function "total" and "used" values reflect the total and used disk space whereas "free" and "percent" represent the "free" and "used percent" user disk space. r)round_)totalusedfreepercent) rstatvfsf_blocksf_frsizef_bfreef_bavailrr disk_usage_usedr r)pathstr9 avail_to_root avail_to_userr: total_userusage_percent_users rr r s D B KK"++ %EJJ,MKK"++-M = D **46 %J'tZB $] path as a dict. Used by Process.terminal(). z /dev/tty*z /dev/pts/*)globrstatst_rdevFileNotFoundError)retlsrs rrrsx C ; $))L"9 9B3$$ )-C %% & J!   s"A%% A10A1)__doc__enumrJrsignaltime_commonrrrrr r __all__r IntEnumSignalsrvaluerrr*getattrminr'r r r)xs0rr]s , #" G, DLLFNN;Nq!&&177("N;    ZZ 4dii 0 ::]&@!H    c