--- parser3/src/include/pa_common.h 2004/03/05 11:38:12 1.99 +++ parser3/src/include/pa_common.h 2005/08/05 13:02:58 1.101.8.1 @@ -1,14 +1,14 @@ /** @file Parser: commonly used functions. - Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char * const IDENT_COMMON_H="$Date: 2004/03/05 11:38:12 $"; +static const char * const IDENT_COMMON_H="$Date: 2005/08/05 13:02:58 $"; #include "pa_string.h" #include "pa_hash.h" @@ -69,6 +69,8 @@ int pa_lock_exclusive_blocking(int fd); int pa_lock_exclusive_nonblocking(int fd); int pa_unlock(int fd); +void create_dir_for_file(const String& file_spec); + typedef void (*File_read_action)( struct stat& finfo, int f, @@ -117,7 +119,8 @@ File_read_result file_read(Request_chars const String& file_spec, bool as_text, HashStringValue* options=0, - bool fail_on_read_problem=true); + bool fail_on_read_problem=true, + char* buf=0, size_t offset=0, size_t size=0); typedef void (*File_write_action)(int f, void *context);