+
    ~j                    ^   ^ RI Ht ^ RIt^ RIt^ RIt^ RIHt ^ RIHtH	t	H
t
 ^ RIHt ^ RIHt ^RIHt ^RIHt R	t]P(                  R
8X  d    ! R R]4      tM@ ^ RIt]P.                  ]P0                  ]P2                  ]P4                  3tRt ! R R]4      tRR.tR#   ]]3 d     Li ; i)    )annotationsN)suppress)EAGAINENOSYSEWOULDBLOCK)Path)cast)BaseFileLock)ensure_directory_existsFwin32c                  2    ] tR t^tRtR R ltR R ltRtR# )UnixFileLockzHUses the :func:`fcntl.flock` to hard lock the lock file on unix systems.c                   V ^8  d   QhRR/#    returnNone )formats   "c/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/filelock/_unix.py__annotate__UnixFileLock.__annotate__        	& 	&d 	&    c                	    \         hNNotImplementedErrorselfs   &r   _acquireUnixFileLock._acquire       %%r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r      r   r   c                	    \         hr   r   r   s   &r   _releaseUnixFileLock._release   r#   r   r   N)__name__
__module____qualname____firstlineno____doc__r!   r&   __static_attributes__r   r   r   r   r      s    V	&	& 	&r   r   Tc                  >    ] tR t^%tRtR R ltR R ltR R ltRtR	# )
r   a  
Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems.

Lock file cleanup: Unix and macOS delete the lock file reliably after release, even in
multi-threaded scenarios. Unlike Windows, Unix allows unlinking files that other processes
have open.
c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   .   s     /	4 /	4d /	4r   c                	   \        V P                  4       \        P                  \        P                  ,          p\        \        R R4      pVe	   W,          pV\        P                  ,          pV P                  4       p \        P                  ! V P                  W4      pT P                  '       dK   \        \        4      ;_uu_ 4        \        P                   ! Y@P"                  P$                  4       RRR4        \&        P(                  ! T\&        P*                  \&        P,                  ,          4       \        P.                  ! T4      P0                  ^ 8X  d   \        P2                  ! T4       R# Y@P"                  n        R#   \         dK    T P                  '       d7   \        T P                  4      P                  P                  4       '       d    R# h \         d{    \        T P                  4      P                  4       '       g   h  \        P                  ! T P                  T\        P                  ( ,          T4      p EL  \         d      R# i ; ii ; i  + '       g   i     ELv; i  \6         d   p\        P2                  ! T4       TP8                  \:        8X  d~   \        \6        4      ;_uu_ 4        \        T P                  4      P=                  4        RRR4       M  + '       g   i     M; iT P?                  4        T PA                  4         Rp?R# TP8                  \B        \D        09  d   h  Rp?R# Rp?ii ; i)
O_NOFOLLOWN)#r   	lock_fileosO_RDWRO_TRUNCgetattrO_CREAT
_open_modeopenFileNotFoundErrorr   parentexistsPermissionErrorhas_explicit_moder   fchmod_contextmodefcntlflockLOCK_EXLOCK_NBfstatst_nlinkcloselock_file_fdOSErrorerrnor   unlink_fallback_to_soft_lockr!   r   r   )r    
open_flags
o_nofollow	open_modefd	exceptions   &     r   r!   r"   .   s"   #DNN3RZZ/J \48J%(
"**$J)IWWT^^ZC" %%%o..IIb--"4"45 /4B => 88B<((A-HHRL13MM.K %  >>>d4>>&:&A&A&H&H&J&J"  DNN+2244rzzk1I9UB(  /..  	??f,!'**T^^,335 +***//1MMO??6;*?? @	s    !F 
+I">:I6 I$3I	I$+I8IIIII"I3	6MAM$K0'	M0L ;(M)MMc                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   _   s     	h 	hD 	hr   c                	    ^RI Hp \        P                  ! R^R7       ^RIHpHp \        W4      '       d	   W n        R# TV n        R# )   )SoftFileLockzDflock not supported on this filesystem, falling back to SoftFileLock)
stacklevel)AsyncSoftFileLockBaseAsyncFileLockN)	_softrV   warningswarnasynciorX   rY   
isinstance	__class__)r    rV   rX   rY   s   &   r   rM   #UnixFileLock._fallback_to_soft_lock_   s/    +MM`mnoE2<T2U2U.N[gDNr   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   g   s     	 	d 	r   c                	   \        R V P                  P                  4      pRV P                  n        \        \        4      ;_uu_ 4        \        V P                  4      P                  4        RRR4       \        P                  ! V\        P                  4       \        \        4      ;_uu_ 4        \        P                  ! V4       RRR4       R#   + '       g   i     Lm; i  + '       g   i     R# ; i)intN)r	   r@   rI   r   rJ   r   r2   rL   rB   rC   LOCK_UNr3   rH   )r    rQ   s   & r   r&   r'   g   s    eT]]778B)-DMM&'""T^^$++- #KKEMM*'"" #" #" #""s   	$C1C%C"	%C6	)r_   N)	r(   r)   r*   r+   r,   r!   rM   r&   r-   r   r   r   r   r   %   s    	/	4b	h	 	r   	has_fcntl)
__future__r   r3   sysr[   
contextlibr   rK   r   r   r   pathlibr   typingr	   _apir
   _utilr   re   platformr   rB   rC   rD   rE   rd   _ImportErrorAttributeError__all__r   r   r   <module>rr      s    " 	 
   - -    * 	<<7&| &[[%--F 	I| IZ c ( s   2B   	B,+B,