'Try to add some bytes to one of the in-memory buffers to be accessed by
a later C{read} call.
@see: L{os.write}'

def write(self, fd, data):

    try:
        return self._openFiles[fd].write(data)
    except KeyError:
        raise OSError(EBADF, 'Bad    file    descriptor')
