Stéphane Wirtel added the comment:

If you read the documentation from glibc-2.24, these options are only available 
on BSD and not on Linux.

"""
The remaining operating modes are BSD extensions. They exist only on some 
systems. On other systems, these macros are not defined.

Macro: int O_SHLOCK
Acquire a shared lock on the file, as with flock. See File Locks.

If O_CREAT is specified, the locking is done atomically when creating the file. 
You are guaranteed that no other process will get the lock on the new file 
first.

Macro: int O_EXLOCK
Acquire an exclusive lock on the file, as with flock. See File Locks. This is 
atomic like O_SHLOCK.
"""

With my fedora 24, and glibc 2.23 I don't find any reference to these macros.

----------
nosy: +matrixise

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23105>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to