Apache HTTPD
Typedefs | Enumerations | Functions | Variables
filestat.c File Reference
#include "apr.h"
#include <aclapi.h>
#include "apr_private.h"
#include "apr_arch_file_io.h"
#include "apr_file_io.h"
#include "apr_general.h"
#include "apr_strings.h"
#include "apr_errno.h"
#include "apr_time.h"
#include <sys/stat.h>
#include "apr_arch_atime.h"
#include "apr_arch_misc.h"

Go to the source code of this file.

Typedefs

typedef enum prot_scope_e prot_scope_e
 

Enumerations

enum  prot_scope_e { prot_scope_world = 0 , prot_scope_group = 4 , prot_scope_user = 8 }
 

Functions

static apr_status_t test_safe_name (const char *name)
 
static apr_status_t free_localheap (void *heap)
 
static void free_world (void)
 
static apr_fileperms_t convert_prot (ACCESS_MASK acc, prot_scope_e scope)
 
static void resolve_prot (apr_finfo_t *finfo, apr_int32_t wanted, PACL dacl)
 
static apr_status_t resolve_ident (apr_finfo_t *finfo, const char *fname, apr_int32_t wanted, apr_pool_t *pool)
 
static apr_status_t guess_protection_bits (apr_finfo_t *finfo, apr_int32_t wanted)
 
static int reparse_point_is_link (WIN32_FILE_ATTRIBUTE_DATA *wininfo, int finddata, const char *fname)
 
apr_status_t more_finfo (apr_finfo_t *finfo, const void *ufile, apr_int32_t wanted, int whatfile)
 
int fillin_fileinfo (apr_finfo_t *finfo, WIN32_FILE_ATTRIBUTE_DATA *wininfo, int byhandle, int finddata, const char *fname, apr_int32_t wanted)
 
 APR_DECLARE (apr_status_t)
 

Variables

static apr_gid_t worldid = NULL
 

Typedef Documentation

◆ prot_scope_e

Enumeration Type Documentation

◆ prot_scope_e

Enumerator
prot_scope_world 
prot_scope_group 
prot_scope_user 

Definition at line 69 of file filestat.c.

Function Documentation

◆ convert_prot()

static apr_fileperms_t convert_prot ( ACCESS_MASK  acc,
prot_scope_e  scope 
)
static

< Execute by others

<

Deprecated:
See also
APR_FPROT_WEXECUTE

< Write by others

<

Deprecated:
See also
APR_FPROT_WWRITE

< Read by others

<

Deprecated:
See also
APR_FPROT_WREAD

Definition at line 75 of file filestat.c.

◆ fillin_fileinfo()

int fillin_fileinfo ( apr_finfo_t finfo,
WIN32_FILE_ATTRIBUTE_DATA wininfo,
int  byhandle,
int  finddata,
const char fname,
apr_int32_t  wanted 
)

< Stat the link not the file itself if it is a link

< Access Time

< Creation or inode-changed time

< Modification Time

< Size of the file

< Type

< Stat the link not the file itself if it is a link

< Stat the link not the file itself if it is a link

Definition at line 417 of file filestat.c.

◆ free_localheap()

static apr_status_t free_localheap ( void *  heap)
static

Definition at line 53 of file filestat.c.

◆ free_world()

static void free_world ( void  )
static

Definition at line 60 of file filestat.c.

◆ guess_protection_bits()

static apr_status_t guess_protection_bits ( apr_finfo_t finfo,
apr_int32_t  wanted 
)
static

< Read by others

<

Deprecated:
See also
APR_FPROT_WREAD

< Execute by others

<

Deprecated:
See also
APR_FPROT_WEXECUTE

< Read by others

<

Deprecated:
See also
APR_FPROT_WREAD

< Execute by others

<

Deprecated:
See also
APR_FPROT_WEXECUTE

< Write by others

<

Deprecated:
See also
APR_FPROT_WWRITE

< User protection bits

< Group protection bits

< World protection bits

Definition at line 191 of file filestat.c.

◆ more_finfo()

apr_status_t more_finfo ( apr_finfo_t finfo,
const void *  ufile,
apr_int32_t  wanted,
int  whatfile 
)

< all protections

< user and group

< User

< User protection bits

< Group

< Group protection bits

< all protections

< User

< User protection bits

< Group

< Group protection bits

< all protections

< User

< User protection bits

< Group

< Group protection bits

< all protections

< User

< User protection bits

< Group

< Group protection bits

< all protections

< User

< Group

< all protections

< Storage size consumed by the file

< Storage size consumed by the file

< Storage size consumed by the file

Definition at line 278 of file filestat.c.

◆ reparse_point_is_link()

static int reparse_point_is_link ( WIN32_FILE_ATTRIBUTE_DATA wininfo,
int  finddata,
const char fname 
)
static

Definition at line 213 of file filestat.c.

◆ resolve_ident()

static apr_status_t resolve_ident ( apr_finfo_t finfo,
const char fname,
apr_int32_t  wanted,
apr_pool_t pool 
)
static

< Stat the link not the file itself if it is a link

< all protections

< user and group

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

< all protections

< user and group

< Stat the link not the file itself if it is a link

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

< all protections

< user and group

< Stat the link not the file itself if it is a link

< Stat the link not the file itself if it is a link

Definition at line 142 of file filestat.c.

◆ resolve_prot()

static void resolve_prot ( apr_finfo_t finfo,
apr_int32_t  wanted,
PACL  dacl 
)
static

< World protection bits

< User protection bits

< User

< User protection bits

< Group protection bits

< Group

< Group protection bits

< World protection bits

< World protection bits

Definition at line 91 of file filestat.c.

◆ test_safe_name()

static apr_status_t test_safe_name ( const char name)
static

Definition at line 33 of file filestat.c.

Variable Documentation

◆ worldid

apr_gid_t worldid = NULL
static

Definition at line 58 of file filestat.c.