Post

Replies

Boosts

Views

Activity

Reply to Does fcntl () or something else support 'File Descriptor' specific (& not process specific) byte-range advisory lock with support for shared/exclusive locking in macOS (& also iOS)?
Unfortunately, fcntl() OFD locks on macOS appear to always return -1 errno=EOPNOTSUPP (45) when the file to be locked in a network (SMB) share. This errno value is not documented on the man page for this use. POSIX (non-OFD) fcntl() locks on network (SMB) shared file "work" (return 0, no error), but then of course, we suffer the POSIX lock semantics. Anyone have a solution?
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’24