Function gnunet_sys::GNUNET_DISK_file_open [−][src]
pub unsafe extern "C" fn GNUNET_DISK_file_open(
fn_: *const c_char,
flags: GNUNET_DISK_OpenFlags,
perm: GNUNET_DISK_AccessPermissions
) -> *mut GNUNET_DISK_FileHandle
Open a file. Note that the access permissions will only be used if a new file is created and if the underlying operating system supports the given permissions.
@param fn file name to be opened @param flags opening flags, a combination of GNUNET_DISK_OPEN_xxx bit flags @param perm permissions for the newly created file, use #GNUNET_DISK_PERM_NONE if a file could not be created by this call (because of flags) @return IO handle on success, NULL on error