U e5d@s&ddlZddlTddlmZddlmZeZe de dde de d dd ekrle d e d dd dZ ddZ eej ddZ eejddZd ekreejdd Zejje_dekreejddZdekreejddZeje_dekreejddZ[[dS)N)*)wraps)IntEnumSignalscCs(|r|dr|d p&|dS)NZSIGZSIG_ZCTRL_)isupper startswithnamer /usr/lib64/python3.8/signal.py sr HandlerscCs|dkS)N)SIG_DFLSIG_IGNr rr r r r pthread_sigmaskZSigmaskscCs|dkS)N) SIG_BLOCK SIG_UNBLOCK SIG_SETMASKr rr r r r rcCs(z ||WStk r"|YSXdS)zsConvert a numeric value to an IntEnum member. If it's not a known member, return the numeric value itself. N) ValueError)valueZ enum_klassr r r _int_to_enums rc Cs,z t|WSttfk r&|YSXdS)zmConvert an IntEnum member to a numeric value. If it's not an IntEnum member return the value itself. N)intr TypeError)rr r r _enum_to_int#s rcCstt|t|}t|tSN)_signalsignalrrr Z signalnumZhandlerr r r r-srcCst|}t|tSr)r getsignalrr rr r r r3s rcCst||}tdd|DS)Ncss|]}t|tVqdSrrr.0xr r r =sz"pthread_sigmask..)rrset)ZhowmaskZsigs_setr r r r:s  sigpendingcCsddtDS)NcSsh|]}t|tqSr r r!r r r Dszsigpending..)rr'r r r r r'BssigwaitcCst|}t|tSr)rr)rr)ZsigsetZretsigr r r r)Hs  valid_signalscCsddtDS)NcSsh|]}t|tqSr r r!r r r r(Rsz valid_signals..)rr*r r r r r*Ps)r functoolsrZ_wrapsenumrZ_IntEnumglobalsZ_globals _convert___name__rrrrr__doc__r'r)r*r r r r sR