libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ afc_file_lock()

afc_error_t afc_file_lock ( afc_client_t  client,
uint64_t  handle,
afc_lock_op_t  operation 
)

Locks or unlocks a file on the device.

Makes use of flock on the device.

See also
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/flock.2.html
Parameters
clientThe client to lock the file with.
handleFile handle of a previously opened file.
operationthe lock or unlock operation to perform, this is one of AFC_LOCK_SH (shared lock), AFC_LOCK_EX (exclusive lock), or AFC_LOCK_UN (unlock).