Peter Maydell wrote: > On 30 September 2016 at 16:39, Felix Janda <felix.ja...@posteo.de> wrote: > > The F_EXLCK and F_SHLCK fcntl lock constants are obsolete synonyms for > > F_WRLCK and F_RDLCK. > > This seems unlikely, since on for instance Alpha F_EXLCK is > 16, F_SHLCK is 32, F_RDLCK is 1 and F_WRLCK is 2, so they're > all distinct: > http://lxr.free-electrons.com/source/arch/alpha/include/uapi/asm/fcntl.h#L52
Except for headers, the only use of F_EXLCK in the kernel is in fs/cifs/file.c, where it has the same effect as F_WRLCK (except for a debug message). Similarly for F_SHLCK and F_RDLCK. Thanks, Felix