permissions.h
// Copyright (c) 1999-2002 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_PERMISSIONS_H
#define RUDIMENTS_PERMISSIONS_H
#include <rudiments/private/permissionsincludes.h>
class RUDIMENTS_DLLSPEC permissions {
public:
static bool setFilePermissions(const char *filename,
mode_t perms);
static bool setFilePermissions(int32_t fd, mode_t perms);
static mode_t evalPermString(const char *permstring);
static char *evalPermOctal(mode_t mode);
static mode_t everyoneReadWrite();
static mode_t everyoneReadWriteExecute();
static mode_t ownerRead();
static mode_t ownerWrite();
static mode_t ownerExecute();
static mode_t ownerReadWrite();
static mode_t ownerReadExecute();
static mode_t ownerReadWriteExecute();
static mode_t groupRead();
static mode_t groupWrite();
static mode_t groupExecute();
static mode_t groupReadWrite();
static mode_t groupReadExecute();
static mode_t groupReadWriteExecute();
static mode_t othersRead();
static mode_t othersWrite();
static mode_t othersExecute();
static mode_t othersReadWrite();
static mode_t othersReadExecute();
static mode_t othersReadWriteExecute();
static mode_t saveInSwapSpace();
static mode_t setUserId();
static mode_t setGroupId();
#include <rudiments/private/permissions.h>
};
#endif