+
    ic
                         ^ RI t ^ RIt^ RIt^ RIt^RIHt ^t^t]P                  ! R4      t	R t
R tR tR t ! R R	]4      tRR
 ltR# )    N)Processz
\(.+\)|\S+c            	         \         P                  ! 4       p R FT  p\         P                  P                  \         P                  P	                  R\        V 4      V4      4      '       g   KR  Vu # 	  \        R4      h)zDetect /proc filesystem style.

This checks the /proc/{pid} directory for possible formats. Returns one of
the following as str:

* `stat`: Linux-style, i.e. ``/proc/{pid}/stat``.
* `status`: BSD-style, i.e. ``/proc/{pid}/status``.
/proczunsupported proc format)statstatus)osgetpidpathexistsjoinstrProcFormatError)pidnames     6lib/python3.14/site-packages/shellingham/posix/proc.pydetect_procr      sT     ))+C"77>>"'',,wC$?@@K # 3
44    c                       \         P                  ! 4       P                  P                  4       R9   #   \         d     R# i ; i)freebsdF)r   netbsd	dragonfly)r   unamesysnamelower	Exception r   r   _use_bsd_stat_formatr   #   s:    xxz!!'')-OOO s   /2 A Ac                 j   \         P                  P                  R \        V 4      V4      p\        P
                  ! VRRR7      ;_uu_ 4       p\        P                  VP                  4       4      pRRR4       \        4       '       d   X\        ,          # X\        ,          #   + '       g   i     L:; i)r   asciireplaceencodingerrorsN)r   r
   r   r   ioopenSTAT_PATTERNfindallreadr   BSD_STAT_PPIDLINUX_STAT_PPID)r   r   r
   fpartss   &&   r   	_get_ppidr-   *   sv    77<<S40D			:	:a$$QVVX. 
; ]##!! 
;	:s   $B""B2	c                 h   \         P                  P                  R \        V 4      R4      p\        P
                  ! 4       ;'       g    Rp\        P                  ! WRR7      ;_uu_ 4       p\        VP                  4       P                  R4      RR 4      uuRRR4       #   + '       g   i     R# ; i)r   cmdlinezutf-8r    r!    N)r   r
   r   r   sysgetfilesystemencodingr$   r%   tupler(   split)r   r
   r"   r+   s   &   r   _get_cmdliner6   4   st    77<<S95D((*55gH		;	;q
 QVVX^^D)#2./ 
<	;	;	;s   *+B  B1	c                       ] tR t^?tRtR# )r   r   N)__name__
__module____qualname____firstlineno____static_attributes__r   r   r   r   r   ?   s    r   r   c                4   a \        4       oV3R lpV! W4      # )z8Try to look up the process tree via the /proc interface.c              3      <"   \        V4       F5  p\        V S4      p\        V 4      p\        W@VR 7      x  VR8X  d    R# Tp K7  	  R# 5i))argsr   ppid0N)ranger-   r6   r   )r   	max_depth_r@   r?   	stat_names   &&   r   _iter_process_parents3iter_process_parents.<locals>._iter_process_parentsJ   sG     y!AS),D$Dt488s{C "s   AA
)r   )r   rC   rF   rE   s   && @r   iter_process_parentsrH   C   s    I
 !00r   )
   )r$   r   rer2   _corer   r)   r*   compiler&   r   r   r-   r6   EnvironmentErrorr   rH   r   r   r   <module>rN      sV    	 	 	 
 
  zz-(5 "0	& 	1r   