rem: return ENOMEM;
add: return B_NO_MEMORY;
context: rootfs_open_dir(fs_cookie _fs, fs_vnode _v, file_cookie *_cookie){	struct rootfs *fs = (struct rootfs *)_fs;	struct rootfs_vnode *vnode = (struct rootfs_vnode *)_v;	struct rootfs_cookie *cookie;	TRACE(("rootfs_open: vnode 0x%x\n", vnode));	cookie = kmalloc(sizeof(struct rootfs_cookie));	if (cookie == NULL)		return ENOMEM;	mutex_lock(&fs->lock);	cookie->ptr = vnode->stream.dir.dir_head;	//cookie->oflags = oflags;	insert_cookie_in_jar(vnode, cookie);	*_cookie = cookie;	mutex_unlock(&fs->lock);	return B_OK;}