Lines Matching refs:fileno
105 signal.set_wakeup_fd(self._csock.fileno())
359 fileno = file.fileno()
363 fsize = os.fstat(fileno).st_size
371 self._sock_sendfile_native_impl(fut, None, sock, fileno,
375 def _sock_sendfile_native_impl(self, fut, registered_fd, sock, fileno,
377 fd = sock.fileno()
385 self._sock_sendfile_update_filepos(fileno, offset, total_sent)
390 self._sock_sendfile_update_filepos(fileno, offset, total_sent)
395 sent = os.sendfile(fd, fileno, offset, blocksize)
400 fd, sock, fileno,
421 self._sock_sendfile_update_filepos(fileno, offset, total_sent)
424 self._sock_sendfile_update_filepos(fileno, offset, total_sent)
429 self._sock_sendfile_update_filepos(fileno, offset, total_sent)
434 self._sock_sendfile_update_filepos(fileno, offset, total_sent)
442 fd, sock, fileno,
445 def _sock_sendfile_update_filepos(self, fileno, offset, total_sent):
447 os.lseek(fileno, offset, os.SEEK_SET)
452 fd = sock.fileno()
467 self._fileno = pipe.fileno()
609 self._fileno = pipe.fileno()