1/* 2 * Copyright 2005-2007, Ingo Weinhold, bonefish@users.sf.net. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _FSSH_STAT_UTIL_H 6#define _FSSH_STAT_UTIL_H 7 8#include <sys/stat.h> 9 10#include "fssh_defs.h" 11#include "fssh_stat.h" 12 13 14namespace FSShell { 15 16mode_t to_platform_mode(fssh_mode_t mode); 17 18void from_platform_stat(const struct stat *st, struct fssh_stat *fsshStat); 19void to_platform_stat(const struct fssh_stat *fsshStat, struct stat *st); 20 21extern int to_platform_open_mode(int fsshMode); 22 23} // namespace FSShell 24 25 26#endif // _FSSH_STAT_UTIL_H 27