4 #ifndef RUDIMENTS_PERMISSIONS_H 5 #define RUDIMENTS_PERMISSIONS_H 7 #include <rudiments/private/permissionsincludes.h> 33 static bool setFilePermissions(
const char *filename,
40 static bool setFilePermissions(int32_t fd, mode_t perms);
69 static mode_t evalPermString(
const char *permstring);
73 static char *evalPermOctal(mode_t mode);
79 static mode_t everyoneReadWrite();
85 static mode_t everyoneReadWriteExecute();
91 static mode_t ownerRead();
97 static mode_t ownerWrite();
103 static mode_t ownerExecute();
109 static mode_t ownerReadWrite();
115 static mode_t ownerReadExecute();
121 static mode_t ownerReadWriteExecute();
127 static mode_t groupRead();
133 static mode_t groupWrite();
139 static mode_t groupExecute();
145 static mode_t groupReadWrite();
151 static mode_t groupReadExecute();
157 static mode_t groupReadWriteExecute();
163 static mode_t othersRead();
169 static mode_t othersWrite();
175 static mode_t othersExecute();
181 static mode_t othersReadWrite();
187 static mode_t othersReadExecute();
193 static mode_t othersReadWriteExecute();
199 static mode_t saveInSwapSpace();
205 static mode_t setUserId();
211 static mode_t setGroupId();
213 #include <rudiments/private/permissions.h> Definition: permissions.h:28