Rudiments

- Main Page
- Classes

permissions.h
1 // Copyright (c) 1999-2002 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