enum apr_filetype_e

Overview

apr_filetype_e values for the filetype member of the apr_file_info_t structure

#include <apr_file_info.h>

enum apr_filetype_e {
    APR_NOFILE  = 0,
    APR_REG,
    APR_DIR,
    APR_CHR,
    APR_BLK,
    APR_PIPE,
    APR_LNK,
    APR_SOCK,
    APR_UNKFILE = 127,
};

Detailed Documentation

apr_filetype_e values for the filetype member of the apr_file_info_t structure

Warning

: Not all of the filetypes below can be determined. For example, a given platform might not correctly report a socket descriptor as APR_SOCK if that type isn’t well-identified on that platform. In such cases where a filetype exists but cannot be described by the recognized flags below, the filetype will be APR_UNKFILE. If the filetype member is not determined, the type will be APR_NOFILE.

Enum Values

APR_NOFILE

no file type determined

APR_REG

a regular file

APR_DIR

a directory

APR_CHR

a character device

APR_BLK

a block device

APR_PIPE

a FIFO / pipe

APR_LNK

a symbolic link

APR_SOCK

a [unix domain] socket

APR_UNKFILE

a file of some other unknown type