fsaccess.c File Reference

The OS-independent part of the API is in lib/isc. More...

#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)


Detailed Description

The OS-independent part of the API is in lib/isc.

Definition in file fsaccess.c.


Define Documentation

#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().


Function Documentation

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().


Generated on Tue Apr 28 17:41:14 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha