Lines Matching refs:fd
36 def __init__ (self, fd, args=None, timeout=30, maxread=2000, searchwindowsize=None,
42 if type(fd) != type(0) and hasattr(fd, 'fileno'):
43 fd = fd.fileno()
45 if type(fd) != type(0):
46 raise ExceptionPexpect('The fd argument is not an int. If this is a command string then maybe you want to use pexpect.spawn.')
48 try: # make sure fd is a valid file descriptor
49 os.fstat(fd)
51 raise ExceptionPexpect('The fd argument is not a valid file descriptor.')
57 self.child_fd = fd
60 self.name = '<file descriptor %d>' % fd
97 "Write to fd, return number of bytes written"
105 "Write to fd with trailing newline, return number of bytes written"
110 "Write to fd, return None"