config root man

Current Path : /compat/linux/proc/68247/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/68247/root/usr/local/lib/python2.5/posixfile.pyc

³ò
h”Rc@sGdZddd„ƒYZddd„Zd„ZdZdZd	Zd
S(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
t_posixfile_cBsheZdZddgZd„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(t_file_tstatesRtnametmodethextid(tselftfile((s%/usr/local/lib/python2.5/posixfile.pyt__repr__As	triÿÿÿÿcCs(ddk}|i|i|||ƒƒS(Niÿÿÿÿ(t__builtin__tfileopenR(R	RRtbufsizeR
((s%/usr/local/lib/python2.5/posixfile.pyRJscCs ddk}tt|ƒƒdjo
td‚n||_x^t|ƒD]P}|idƒp:t||ƒ}t||i	ƒot
|||ƒq˜qHqHW|S(Niÿÿÿÿs
<type 'file'>s,posixfile.fileopen() arg must be file objectt_(ttypestreprttypet	TypeErrorRtdirt
startswithtgetattrt
isinstancetBuiltinMethodTypetsetattr(R	R
Rtmaybemethodtattr((s%/usr/local/lib/python2.5/posixfile.pyRNs
	
cCs|iS(N(R(R	((s%/usr/local/lib/python2.5/posixfile.pyR
^scCsQddk}t|dƒp
td‚n|i|i|iiƒƒ|iiƒS(Niÿÿÿÿtfdopensdup() method unavailable(tposixthasattrtAttributeErrorRtdupRtfilenoR(R	R((s%/usr/local/lib/python2.5/posixfile.pyR!as
cCsXddk}t|dƒp
td‚n|i|iiƒ|ƒ|i||iiƒS(NiÿÿÿÿRsdup() method unavailable(RRR tdup2RR"RR(R	tfdR((s%/usr/local/lib/python2.5/posixfile.pyR#is

cGs,ddk}ddk}|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ƒ|idƒd@o|d}n|i|@o|d}n|i|@o|d}n|SndS(
NiÿÿÿÿisToo many argumentsit?tntatst=t!tct(
tfcntltostlenRtO_NDELAYtO_APPENDtO_SYNCRR"tF_GETFLtF_SETFLtF_SETFDtF_GETFD(R	twhichR-R.tl_flagsR
tcur_fltarg((s%/usr/local/lib/python2.5/posixfile.pytflagsrsF



	


"
#cGs>ddk}ddk}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	|ƒd	jo|d}	njt	|ƒd
jo|\}	}nGt	|ƒdjo|\}	}}n!t	|ƒdjo
td‚nddk
}
ddk}|
idjo(|i
d||	|iƒ||ƒ}nZ|
id jo(|i
d||||	dddƒ}n"|i
d||||	ddƒ}|i|iiƒ||ƒ}d|jo|
id!jo%|id|ƒ\}}	}
}}n˜|
id"jo+|id|ƒ\}}}}	}}
}n]|
idjo(|id|ƒ\}}}}	}
}n%|id|ƒ\}}}}	}}
||ijo>||ijod|	|||
fSq6d|	|||
fSq:ndS(#NiÿÿÿÿtwRtusno type of lock specifiedt|R%iiiistoo many argumentstnetbsd1topenbsd2tfreebsd2tfreebsd3tfreebsd4tfreebsd5tfreebsd6tfreebsd7tfreebsd8tbsdos2tbsdos3tbsdos4t
lxxxxlxxxxlhhtaix3taix4thhllliithhllhhtlinux2(R?R@RARBRCRDRERFRGRHRIRJ(RLRM(	R?R@RARBRCRDRHRIRJ(RLRM(tstructR-tF_WRLCKtF_RDLCKtF_UNLCKRtF_SETLKWtF_GETLKtF_SETLKR/tsysR.tplatformtpacktgetpidRR"tunpack(R	thowtargsRQR-tl_typetcmdtl_whencetl_starttl_lenRXR.tflocktl_pidtl_sysidtl_vfs((s%/usr/local/lib/python2.5/posixfile.pytlock—sj





	



	

			

%+($(t__name__t
__module__t__doc__RRRRR
R!R#R;Rh(((s%/usr/local/lib/python2.5/posixfile.pyR9s								%RiÿÿÿÿcCstƒi|||ƒS(s4Public routine to open a file as a posixfile object.(RR(RRR((s%/usr/local/lib/python2.5/posixfile.pyRÚscCstƒi|ƒS(sCPublic routine to get a posixfile object from a Python file object.(RR(R
((s%/usr/local/lib/python2.5/posixfile.pyRÞsiiiN((RkRRRtSEEK_SETtSEEK_CURtSEEK_END(((s%/usr/local/lib/python2.5/posixfile.pys<module>6s¡	

Man Man