KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21571/root/usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21571/root/usr/lib64/python2.4/posixfile.pyo
mò
‚=5Dc@scdZdkZeideƒ[dfd„ƒYZddd„Zd„Zd	Zd
ZdZ	dS(s:Extended file operations available in POSIX.

f = posixfile.open(filename, [mode, [bufsize]])
      will create a new posixfile object

f = posixfile.fileopen(fileobject)
      will create a posixfile object from a builtin file object

f.file()
      will return the original builtin file object

f.dup()
      will return a new file object based on a new filedescriptor

f.dup2(fd)
      will return a new file object based on the given filedescriptor

f.flags(mode)
      will turn on the associated flag (merge)
      mode can contain the following characters:

  (character representing a flag)
      a       append only flag
      c       close on exec flag
      n       no delay flag
      s       synchronization flag
  (modifiers)
      !       turn flags 'off' instead of default 'on'
      =       copy flags 'as is' instead of default 'merge'
      ?       return a string in which the characters represent the flags
              that are set

      note: - the '!' and '=' modifiers are mutually exclusive.
            - the '?' modifier will return the status of the flags after they
              have been changed by other characters in the mode string

f.lock(mode [, len [, start [, whence]]])
      will (un)lock a region
      mode can contain the following characters:

  (character representing type of lock)
      u       unlock
      r       read lock
      w       write lock
  (modifiers)
      |       wait until the lock can be granted
      ?       return the first lock conflicting with the requested lock
              or 'None' if there is no conflict. The lock returned is in the
              format (mode, len, start, whence, pid) where mode is a
              character representing the type of lock ('r' or 'w')

      note: - the '?' modifier prevents a region from being locked; it is
              query only
NsAThe posixfile module is obsolete and will disappear in the futuret_posixfile_cBshtZdZddgZd„Zddd„Zd„Zd„Zd	„Zd
„Z	d„Z
d„ZRS(
s;File wrapper class that provides extra POSIX file routines.topentclosedcCs=|i}d|i|i|i|itt|ƒƒdfS(Ns$<%s posixfile '%s', mode '%s' at %s>i(	tselft_file_tfiletstatesRtnametmodethextid(RR((t!/usr/lib64/python2.4/posixfile.pyt__repr__Gs	triÿÿÿÿcCs%dk}|i|i|||ƒƒS(N(t__builtin__RtfileopenRRRtbufsize(RRRRR((RRPs	cCsdk}tt|ƒƒdjo
td‚n||_x^t|ƒD]P}|i	dƒp:t
||ƒ}t||i
ƒot|||ƒq•qEqEW|S(Ns
<type 'file'>s,posixfile.fileopen() arg must be file objectt_(ttypestreprttypeRt	TypeErrorRRtdirtmaybemethodt
startswithtgetattrtattrt
isinstancetBuiltinMethodTypetsetattr(RRRRR((RRTs	
	
cCs|iS(N(RR(R((RRdscCsNdk}t|dƒp
td‚n|i|i|iiƒƒ|iiƒS(Ntfdopensdup() method unavailable(	tposixthasattrtAttributeErrorRtdupRRtfilenoR(RR((RR"gs	
cCsUdk}t|dƒp
td‚n|i|iiƒ|ƒ|i||ii	ƒS(NRsdup() method unavailable(
RR R!tdup2RRR#tfdRR(RR%R((RR$os
	
cGs&dk}dk}|o.t|ƒdjo
td‚n|d}nd}d}d|jo||iB}nd|jo||iB}nd|jo||iB}n|i
}d|joH|i|iƒ|i
dƒ}d	|jo||@}q||B}n|i|iƒ|i|ƒ}d
|jo.d	|j}|i|iƒ|i|ƒ}nd|jo±d}|i|iƒ|i
dƒ}|i|@o|d}n|i|iƒ|idƒd@o|d
}n|i|@o|d}n|i|@o|d}n|SndS(NisToo many argumentsit?tntatst=t!tct(tfcntltostwhichtlenRtl_flagstO_NDELAYtO_APPENDtO_SYNCRRRR#tF_GETFLtcur_fltF_SETFLtargtF_SETFDtF_GETFD(RR0R.RR7R2R9R/((RtflagsxsF



	


"
#cGs>dk}dk}d|jo
|i}	n>d|jo
|i}	n$d|jo
|i}	n
td‚d|jo
|i}n$d|jo
|i
}n
|i}d}d}
d}
t|ƒdjo|d}
njt|ƒd	jo|\}
}
nGt|ƒd
jo|\}
}
}n!t|ƒd
jo
td‚ndk}dk}|idjo(|id|
|
|iƒ|	|ƒ}n`|iddgjo(|id|	||
|
dddƒ}n"|id|	||
|
ddƒ}|i|iiƒ||ƒ}d|jo$|idjo%|id|ƒ\}
}
}}	}nž|iddgjo+|id|ƒ\}	}}
}
}}}n]|idjo(|id|ƒ\}	}}
}
}}n%|id|ƒ\}	}}
}
}}|	|ijo>|	|ijod|
|
||fSq6d|
|
||fSq:ndS(NtwR
tusno type of lock specifiedt|R&iiiistoo many argumentstnetbsd1topenbsd2tfreebsd2tfreebsd3tfreebsd4tfreebsd5tfreebsd6tbsdos2tbsdos3tbsdos4t
lxxxxlxxxxlhhtaix3taix4thhllliithhllhhtlinux2(
R@RARBRCRDRERFRGRHRI(	R@RARBRCRDRERGRHRI(tstructR.thowtF_WRLCKtl_typetF_RDLCKtF_UNLCKRtF_SETLKWtcmdtF_GETLKtF_SETLKtl_whencetl_starttl_lenR1targstsysR/tplatformtpacktgetpidtflockRRR#tunpacktl_pidtl_sysidtl_vfs(RRQR]R.RPRZRfR^RWRSR[RbR/R\ReRd((Rtlocks\





	



	
			
%+($(t__name__t
__module__t__doc__RRRRRR"R$R<Rg(((RR?s								%R
iÿÿÿÿcCstƒi|||ƒS(s4Public routine to open a file as a posixfile object.N(RRRRR(RRR((RRßscCstƒi|ƒS(sCPublic routine to get a posixfile object from a Python file object.N(RRR(R((RRãsiii(
RjtwarningstwarntDeprecationWarningRRRtSEEK_SETtSEEK_CURtSEEK_END(RRpRkRnRoRR((RR&6s		 	

Anon7 - 2021