Lines Matching refs:fsrc
94 def _fastcopy_fcopyfile(fsrc, fdst, flags): argument
99 infd = fsrc.fileno()
107 err.filename = fsrc.name
114 def _fastcopy_sendfile(fsrc, fdst): argument
130 infd = fsrc.fileno()
155 err.filename = fsrc.name
178 def _copyfileobj_readinto(fsrc, fdst, length=COPY_BUFSIZE): argument
184 fsrc_readinto = fsrc.readinto
197 def copyfileobj(fsrc, fdst, length=0): argument
202 fsrc_read = fsrc.read
264 with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
268 _fastcopy_fcopyfile(fsrc, fdst, posix._COPYFILE_DATA)
275 _fastcopy_sendfile(fsrc, fdst)
282 _copyfileobj_readinto(fsrc, fdst, min(file_size, COPY_BUFSIZE))
285 copyfileobj(fsrc, fdst)