'Discard the in-memory buffer and other in-memory state for the given
file descriptor.
@see: L{os.close}'

def close(self, fd):

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