#include <config.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include "errno2result.h"
#include "../fsaccess.c"
Go to the source code of this file.
Defines | |
#define | SET_AND_CLEAR1(modebit) |
#define | SET_AND_CLEAR(user, group, other) |
Functions | |
isc_result_t | isc_fsaccess_set (const char *path, isc_fsaccess_t access) |
Definition in file fsaccess.c.
#define SET_AND_CLEAR1 | ( | modebit | ) |
Value:
if ((access & bits) != 0) { \
mode |= modebit; \
access &= ~bits; \
}
#define SET_AND_CLEAR | ( | user, | |||
group, | |||||
other | ) |
Value:
SET_AND_CLEAR1(user); \ bits <<= STEP; \ SET_AND_CLEAR1(group); \ bits <<= STEP; \ SET_AND_CLEAR1(other);
Referenced by isc_fsaccess_set().
isc_result_t isc_fsaccess_set | ( | const char * | path, | |
isc_fsaccess_t | access | |||
) |
Definition at line 36 of file fsaccess.c.
References check_bad_bits(), INSIST, isc__errno2result, ISC_FALSE, ISC_FSACCESS_ACCESSCHILD, ISC_FSACCESS_CREATECHILD, ISC_FSACCESS_DELETECHILD, ISC_FSACCESS_EXECUTE, ISC_FSACCESS_LISTDIRECTORY, ISC_FSACCESS_READ, ISC_FSACCESS_WRITE, ISC_R_INVALIDFILE, ISC_R_SUCCESS, ISC_TRUE, and SET_AND_CLEAR.
Referenced by dst__privstruct_writefile(), and write_public_key().