Rudiments
permissions.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_PERMISSIONS_H
5#define RUDIMENTS_PERMISSIONS_H
6
7#include <rudiments/private/permissionsincludes.h>
8
28class RUDIMENTS_DLLSPEC permissions {
29 public:
33 static bool setFilePermissions(const char *filename,
34 mode_t perms);
35
40 static bool setFilePermissions(int32_t fd, mode_t perms);
41
69 static mode_t parsePermString(const char *permstring);
70
73 static char *parsePermOctal(mode_t mode);
74
79 static mode_t getEveryoneReadWrite();
80
86
91 static mode_t getOwnerRead();
92
97 static mode_t getOwnerWrite();
98
103 static mode_t getOwnerExecute();
104
109 static mode_t getOwnerReadWrite();
110
115 static mode_t getOwnerReadExecute();
116
122
127 static mode_t getGroupRead();
128
133 static mode_t getGroupWrite();
134
139 static mode_t getGroupExecute();
140
145 static mode_t getGroupReadWrite();
146
151 static mode_t getGroupReadExecute();
152
158
163 static mode_t getOthersRead();
164
169 static mode_t getOthersWrite();
170
175 static mode_t getOthersExecute();
176
181 static mode_t getOthersReadWrite();
182
187 static mode_t getOthersReadExecute();
188
194
199 static mode_t getSaveInSwapSpace();
200
205 static mode_t getSetUserId();
206
211 static mode_t getSetGroupId();
212
213 #include <rudiments/private/permissions.h>
214};
215
216#endif
Definition permissions.h:28
static mode_t getOthersReadWrite()
static mode_t getEveryoneReadWrite()
static mode_t getOwnerExecute()
static mode_t getEveryoneReadWriteExecute()
static mode_t getOthersExecute()
static mode_t getOthersReadExecute()
static mode_t getOwnerReadExecute()
static mode_t getOwnerReadWrite()
static mode_t getOwnerReadWriteExecute()
static bool setFilePermissions(int32_t fd, mode_t perms)
static mode_t getOthersRead()
static mode_t getSaveInSwapSpace()
static mode_t getSetGroupId()
static mode_t getSetUserId()
static mode_t getGroupExecute()
static char * parsePermOctal(mode_t mode)
static mode_t getGroupReadWriteExecute()
static mode_t getOwnerWrite()
static mode_t getGroupReadExecute()
static mode_t getGroupWrite()
static bool setFilePermissions(const char *filename, mode_t perms)
static mode_t getOthersReadWriteExecute()
static mode_t getOwnerRead()
static mode_t parsePermString(const char *permstring)
static mode_t getGroupRead()
static mode_t getGroupReadWrite()
static mode_t getOthersWrite()