svn_wc_create_tmp_file2

Function svn_wc_create_tmp_file2 

Source
pub unsafe extern "C" fn svn_wc_create_tmp_file2(
    fp: *mut *mut apr_file_t,
    new_name: *mut *const c_char,
    path: *const c_char,
    delete_when: svn_io_file_del_t,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Create a unique temporary file in administrative tmp/ area of directory @a path. Return a handle in @a *fp and the path in @a *new_name. Either @a fp or @a new_name can be NULL.

The flags will be APR_WRITE | APR_CREATE | APR_EXCL and optionally @c APR_DELONCLOSE (if the @a delete_when argument is set to #svn_io_file_del_on_close).

This means that as soon as @a fp is closed, the tmp file will vanish.

@since New in 1.4 @deprecated For compatibility with 1.6 API