Re: [RFC][PATCH 1/2] fcntl.h: add new definitions for file-private lock cmd values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +2014-02-11  Jeff Layton  <jlayton@xxxxxxxxxx>
> +
> +	* add new fcntl cmd macros for file-private locks

Proper format is:

	* sysdeps/unix/sysv/linux/bits/fcntl-linux.h
	(F_GETLKP, F_SETLKP, F_SETLKPW): New macros.

> +/*
> + * fd "private" POSIX locks.
> + *
> + * Usually POSIX locks held by a process are released on *any* close and are
> + * not inherited across a fork().

Use GNU style for comments, as you see elsewhere in the file.  Use two
spaces between sentences.  Don't use "function()" when referring to a
function, just the name.

> +#ifndef F_GETLKP
> +# define F_GETLKP	36
> +# define F_SETLKP	37
> +# define F_SETLKPW	38
> +#endif

These need to be protected by #ifdef __USE_GNU.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux