Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

File Open Flags/Routines
[File I/O Handling Functions]

Collaboration diagram for File Open Flags/Routines:


Defines

#define APR_READ   0x00001
#define APR_WRITE   0x00002
#define APR_CREATE   0x00004
#define APR_APPEND   0x00008
#define APR_TRUNCATE   0x00010
#define APR_BINARY   0x00020
#define APR_EXCL   0x00040
#define APR_BUFFERED   0x00080
#define APR_DELONCLOSE   0x00100
#define APR_XTHREAD   0x00200
#define APR_SHARELOCK   0x00400
#define APR_FILE_NOCLEANUP   0x00800
#define APR_SENDFILE_ENABLED   0x01000
#define APR_LARGEFILE   0x04000

Define Documentation

#define APR_APPEND   0x00008
 

Append to the end of the file

Definition at line 57 of file apr_file_io.h.

Referenced by AP_DECLARE(), APR_DECLARE(), log_script(), log_scripterror(), main(), open_error_log(), open_log(), and open_rewritelog().

#define APR_BINARY   0x00020
 

Open the file in binary mode

Definition at line 59 of file apr_file_io.h.

Referenced by APR_DECLARE(), cache_the_file(), dav_fs_copymove_file(), dav_fs_load_locknull_list(), dav_fs_open_stream(), dav_fs_save_locknull_list(), default_handler(), open_entity(), prep(), and store_body().

#define APR_BUFFERED   0x00080
 

Open the file for buffered I/O

Definition at line 62 of file apr_file_io.h.

Referenced by AP_DECLARE(), apprentice(), APR_DECLARE(), main(), open_entity(), read_type_map(), ssl_expr_eval_func_file(), store_body(), test_buffered_write_size(), test_mtime_set(), and test_seek().

#define APR_CREATE   0x00004
 

Create the file if not there

Definition at line 56 of file apr_file_io.h.

Referenced by AP_DECLARE(), APR_DECLARE(), create_dummy_file(), create_dummy_file_error(), dav_fs_copymove_file(), dav_fs_open_stream(), dav_fs_save_locknull_list(), do_write(), log_script(), log_scripterror(), main(), mpm_service_install(), mpm_service_uninstall(), open_error_log(), open_log(), open_rewritelog(), service_stderr_thread(), store_body(), store_headers(), test_bigread(), test_buffered_write_size(), test_dup2(), test_dup2_readwrite(), test_file_dup(), test_file_readwrite(), test_file_redir(), test_mod_neg(), test_mtime_set(), test_open_excl(), test_open_noreadwrite(), test_open_writecreate(), test_truncate(), test_uncleared_errno(), and test_write().

#define APR_DELONCLOSE   0x00100
 

Delete the file after close

Definition at line 63 of file apr_file_io.h.

Referenced by APR_DECLARE(), apr_unix_file_cleanup(), create_dummy_file(), create_dummy_file_error(), test_buffered_write_size(), test_dup2(), test_dup2_readwrite(), test_file_dup(), test_file_readwrite(), and test_mtime_set().

#define APR_EXCL   0x00040
 

Open should fail if APR_CREATE and file exists.

Definition at line 60 of file apr_file_io.h.

Referenced by APR_DECLARE(), create_dummy_file(), create_dummy_file_error(), store_body(), store_headers(), test_file_redir(), test_open_excl(), and test_open_noreadwrite().

#define APR_FILE_NOCLEANUP   0x00800
 

Do not register a cleanup when the file is opened

Definition at line 69 of file apr_file_io.h.

Referenced by _file_dup(), APR_DECLARE(), and store_body().

#define APR_LARGEFILE   0x04000
 

Platform dependent flag to enable large file support; WARNING see below.

Definition at line 73 of file apr_file_io.h.

#define APR_READ   0x00001
 

Open the file for reading

Definition at line 54 of file apr_file_io.h.

Referenced by add_cern_meta_data(), AP_DECLARE(), ap_registry_get_server_root(), apprentice(), APR_DECLARE(), apr_file_transfer_contents(), asis_handler(), cache_the_file(), create_dummy_file(), create_dummy_file_error(), dav_fs_copymove_file(), dav_fs_load_locknull_list(), dav_fs_open_stream(), default_handler(), emit_head(), emit_tail(), exists_and_readable(), find_title(), lookup_map_txtfile(), magic_process(), main(), MDFile(), mpm_merge_service_args(), mpm_service_install(), mpm_service_set_name(), mpm_service_uninstall(), open_entity(), open_postfile(), prep(), read_type_map(), ServerSupportFunction(), service_stderr_thread(), set_service_description(), ssl_expr_eval_func_file(), ssl_rand_seed(), store_body(), test_bigread(), test_buffered_write_size(), test_dup2(), test_dup2_readwrite(), test_file_dup(), test_file_readwrite(), test_file_redir(), test_file_remove(), test_fileclose(), test_filename(), test_getc(), test_gets(), test_info_get(), test_mod_neg(), test_mtime_set(), test_open_read(), test_open_readwrite(), test_read(), test_seek(), test_stat_eq_finfo(), test_uncleared_errno(), and test_ungetc().

#define APR_SENDFILE_ENABLED   0x01000
 

Advisory flag that this file should support apr_sendfile operation

Definition at line 71 of file apr_file_io.h.

Referenced by APR_DECLARE(), APR_OPTIONAL_FN_TYPE(), default_handler(), open_entity(), and store_body().

#define APR_SHARELOCK   0x00400
 

Platform dependent support for higher level locked read/write access to support writes across process/machines

Definition at line 66 of file apr_file_io.h.

Referenced by prep().

#define APR_TRUNCATE   0x00010
 

Open the file and truncate to 0 length

Definition at line 58 of file apr_file_io.h.

Referenced by APR_DECLARE(), create_dummy_file(), create_dummy_file_error(), dav_fs_copymove_file(), dav_fs_open_stream(), dav_fs_save_locknull_list(), test_bigread(), test_buffered_write_size(), test_mtime_set(), and test_truncate().

#define APR_WRITE   0x00002
 

Open the file for writing

Definition at line 55 of file apr_file_io.h.

Referenced by AP_DECLARE(), APR_DECLARE(), create_dummy_file(), create_dummy_file_error(), dav_fs_copymove_file(), dav_fs_open_stream(), dav_fs_save_locknull_list(), do_read(), do_write(), log_script(), log_scripterror(), main(), mpm_service_install(), mpm_service_uninstall(), open_error_log(), open_log(), open_rewritelog(), prep(), service_stderr_thread(), set_service_description(), store_body(), store_headers(), test_bigread(), test_buffered_write_size(), test_dup2(), test_dup2_readwrite(), test_file_dup(), test_file_readwrite(), test_file_redir(), test_mod_neg(), test_mtime_set(), test_open_excl(), test_open_readwrite(), test_open_write(), test_open_writecreate(), test_truncate(), test_uncleared_errno(), test_userdata_get(), test_userdata_getnokey(), test_userdata_set(), and test_write().

#define APR_XTHREAD   0x00200
 

Platform dependent tag to open the file for use across multiple threads

Definition at line 64 of file apr_file_io.h.

Referenced by APR_DECLARE(), cache_the_file(), file_bucket_read(), ServerSupportFunction(), and store_body().