Version/format files

Version/format files. More...

Functions

svn_error_tsvn_io_read_version_file (int *version, const char *path, apr_pool_t *pool)
 Set *version to the integer that starts the file at path.
svn_error_tsvn_io_write_version_file (const char *path, int version, apr_pool_t *pool)
 Create (or overwrite) the file at path with new contents, formatted as a non-negative integer version followed by a single newline.
svn_error_tsvn_io_file_mktemp (apr_file_t **new_file, char *templ, apr_int32_t flags, apr_pool_t *pool)
 Wrapper for apr_file_mktemp().
svn_error_tsvn_io_file_name_get (const char **filename, apr_file_t *file, apr_pool_t *pool)
 Wrapper for apr_file_name_get().
svn_error_tsvn_io_file_perms_set (const char *fname, apr_fileperms_t perms, apr_pool_t *pool)
 Wrapper for apr_file_perms_set().

Detailed Description

Version/format files.


Function Documentation

svn_error_t* svn_io_file_mktemp apr_file_t **  new_file,
char *  templ,
apr_int32_t  flags,
apr_pool_t *  pool
 

Wrapper for apr_file_mktemp().

Since:
New in 1.7.

svn_error_t* svn_io_file_name_get const char **  filename,
apr_file_t *  file,
apr_pool_t *  pool
 

Wrapper for apr_file_name_get().

Since:
New in 1.7.

svn_error_t* svn_io_file_perms_set const char *  fname,
apr_fileperms_t  perms,
apr_pool_t *  pool
 

Wrapper for apr_file_perms_set().

Since:
New in 1.7.

svn_error_t* svn_io_read_version_file int *  version,
const char *  path,
apr_pool_t *  pool
 

Set *version to the integer that starts the file at path.

If the file does not begin with a series of digits followed by a newline, return the error SVN_ERR_BAD_VERSION_FILE_FORMAT. Use pool for all allocations.

svn_error_t* svn_io_write_version_file const char *  path,
int  version,
apr_pool_t *  pool
 

Create (or overwrite) the file at path with new contents, formatted as a non-negative integer version followed by a single newline.

On successful completion the file will be read-only. Use pool for all allocations.


Generated on Thu Mar 11 04:06:02 2010 for Subversion by  doxygen 1.3.9.1