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
28 class 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 evalPermString(const char *permstring);
70
73 static char *evalPermOctal(mode_t mode);
74
79 static mode_t everyoneReadWrite();
80
85 static mode_t everyoneReadWriteExecute();
86
91 static mode_t ownerRead();
92
97 static mode_t ownerWrite();
98
103 static mode_t ownerExecute();
104
109 static mode_t ownerReadWrite();
110
115 static mode_t ownerReadExecute();
116
121 static mode_t ownerReadWriteExecute();
122
127 static mode_t groupRead();
128
133 static mode_t groupWrite();
134
139 static mode_t groupExecute();
140
145 static mode_t groupReadWrite();
146
151 static mode_t groupReadExecute();
152
157 static mode_t groupReadWriteExecute();
158
163 static mode_t othersRead();
164
169 static mode_t othersWrite();
170
175 static mode_t othersExecute();
176
181 static mode_t othersReadWrite();
182
187 static mode_t othersReadExecute();
188
193 static mode_t othersReadWriteExecute();
194
199 static mode_t saveInSwapSpace();
200
205 static mode_t setUserId();
206
211 static mode_t setGroupId();
212
213 #include <rudiments/private/permissions.h>
214 };
215
216 #endif
permissions
Definition: permissions.h:28
permissions::ownerReadWrite
static mode_t ownerReadWrite()
permissions::groupReadExecute
static mode_t groupReadExecute()
permissions::othersWrite
static mode_t othersWrite()
permissions::ownerReadExecute
static mode_t ownerReadExecute()
permissions::groupWrite
static mode_t groupWrite()
permissions::groupRead
static mode_t groupRead()
permissions::othersReadWrite
static mode_t othersReadWrite()
permissions::othersExecute
static mode_t othersExecute()
permissions::setFilePermissions
static bool setFilePermissions(int32_t fd, mode_t perms)
permissions::othersReadWriteExecute
static mode_t othersReadWriteExecute()
permissions::groupReadWriteExecute
static mode_t groupReadWriteExecute()
permissions::groupReadWrite
static mode_t groupReadWrite()
permissions::ownerRead
static mode_t ownerRead()
permissions::ownerReadWriteExecute
static mode_t ownerReadWriteExecute()
permissions::othersReadExecute
static mode_t othersReadExecute()
permissions::ownerExecute
static mode_t ownerExecute()
permissions::ownerWrite
static mode_t ownerWrite()
permissions::othersRead
static mode_t othersRead()
permissions::everyoneReadWrite
static mode_t everyoneReadWrite()
permissions::setGroupId
static mode_t setGroupId()
permissions::setFilePermissions
static bool setFilePermissions(const char *filename, mode_t perms)
permissions::evalPermString
static mode_t evalPermString(const char *permstring)
permissions::everyoneReadWriteExecute
static mode_t everyoneReadWriteExecute()
permissions::setUserId
static mode_t setUserId()
permissions::evalPermOctal
static char * evalPermOctal(mode_t mode)
permissions::groupExecute
static mode_t groupExecute()
permissions::saveInSwapSpace
static mode_t saveInSwapSpace()