Qf  ddlZddlddlmZeZej dedej deddevrej d ed d Zd Z d Z e ejdZ e ejdZ devre ejdZ devre ejdZdevre ejdZdevre ej dZ[[ y)N)*)IntEnumSignalsc|jxr%|jdxr|jd xs|jdS)NSIGSIG_CTRL_)isupper startswithnames -/opt/alt/python312/lib64/python3.12/signal.pyr sD LLN I'G0G,G (w' (Handlersc |dvS)N)SIG_DFLSIG_IGNr s rrrs T33rpthread_sigmaskSigmasksc |dvS)N) SIG_BLOCK SIG_UNBLOCK SIG_SETMASKrr s rrrs !LLrcZt|ts|S ||S#t$r|cYSwxYw)ztConvert a possible numeric value to an IntEnum member. If it's not a known member, return the value itself. ) isinstanceint ValueError)value enum_klasss r _int_to_enumr"s7 eS ! %   s  **cH t|S#ttf$r|cYSwxYw)zmConvert an IntEnum member to a numeric value. If it's not an IntEnum member return the value itself. )rr TypeError)r s r _enum_to_intr%$s*5z  " s !!cfd}|S)Nc*j|_|SN)__doc__)wrapperwrappeds r decoratorz_wraps..decorator3s!//rr)r+r,s` r_wrapsr-2s rcrtjt|t|}t|tSr()_signalsignalr%r"r signalnumhandlers rr0r08s)nn\)4l76KLG  **rcLtj|}t|tSr()r/ getsignalr"rr1s rr5r5>s *G  **rcRtj||}td|DS)Nc3<K|]}t|tywr()r"r).0xs r z"pthread_sigmask..Hs>X<7+Xs)r/rset)howmasksigs_sets rrrEs%**35>X>>>r sigpendingcltjDchc]}t|tc}Scc}wr()r/r?r"rr9s rr?r?Ls,292D2D2FG2FQ Q(2FGGG1sigwaitcLtj|}t|tSr()r/rCr"r)sigsetretsigs rrCrCRs(FG,,r valid_signalscltjDchc]}t|tc}Scc}wr()r/rGr"rrAs rrGrGYs,292G2G2IJ2IQ Q(2IJJJrB)r/enumr_IntEnumglobals_globals _convert___name__r"r%r-r0r5rr?rCrGrrrrOs\$ 98 ()H35 H  LN  ++ ++   G # #$?%? 8 G  H H  GOO-- h G ! !"K#K fr