37#include "blocxx/BLOCXX_config.h"
46 return gid == 0 || gid == 3 ;
47#elif defined(BLOCXX_DARWIN)
48 return gid == 0 || gid == 80 ;
56 ::mode_t badmsk =
group_ok(x.st_gid) ? S_IWOTH : (S_IWGRP | S_IWOTH);
57 return !(x.st_mode & badmsk);
71#
if defined(BLOCXX_HPUX) || defined(BLOCXX_AIX)
77 if (!(S_ISLNK(x.st_mode) ||
check_grp_oth(x) || S_ISDIR(x.st_mode) && !full_path && (x.st_mode & S_ISVTX)))
91 return file_ok(x, uid, is_full_path);
This String class is an abstract data type that represents as NULL terminated string of characters.
bool startsWith(const char *arg, EIgnoreCaseFlag ignoreCase=E_CASE_SENSITIVE) const
Determine if this String object starts with a given substring.
EFileStatusReturn getFileStatus(struct stat const &x, uid_t uid, bool is_full_path, const String &path)
GetFileStatus() - just to unify the call of file_ok() for Win and xNix.
EFileStatusReturn file_ok(struct stat const &x, ::uid_t uid, bool full_path)
bool group_ok(::gid_t gid)
bool check_grp_oth(struct stat const &x)
BLOCXX_COMMON_API bool isPathAbsolute(String const &path)