/*  This file is part of Lyos.

    Lyos is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Lyos is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Lyos.  If not, see <http://www.gnu.org/licenses/>. */

#ifndef _PATH_H_
#define _PATH_H_

#include "thread.h"

struct lookup {
    char* pathname;
    int flags;
    int dirfd;
    rwlock_type_t vmnt_lock;
    rwlock_type_t inode_lock;
    struct vfs_mount** vmnt;
    struct inode** inode;
};

struct lookup_result {
    endpoint_t fs_ep;
    ino_t inode_nr;
    mode_t mode;
    uid_t uid;
    gid_t gid;
    int size;
    dev_t dev;
    dev_t spec_dev;
    int offsetp;
};

#endif
