F_SETLK_NP

sfr at canb.auug.org.au sfr at canb.auug.org.au
Mon May 7 02:41:20 GMT 2001


Hi Willy,

From: Matthew Wilcox <matthew at wil.cx>
> 
> of getting rid of some old cruft which wasn't used any more.  This patch is
> i386 only -- just add constants to other arch include files as required.
> 
> diff -urNX dontdiff linux-245p1/include/asm-i386/fcntl.h linux-245p1-vfs/include/asm-i386/fcntl.h
> --- linux-245p1/include/asm-i386/fcntl.h	Sun May  6 09:13:24 2001
> +++ linux-245p1-vfs/include/asm-i386/fcntl.h	Sun May  6 04:59:14 2001
> @@ -39,6 +39,9 @@
>  #define F_SETLK64	13
>  #define F_SETLKW64	14
>  
> +#define F_SETLK_NP	15	/* Nonposix semantics */
> +#define F_SETLKW_NP	16	/* Nonposix semantics */


Please patch include/linux/fcntl.h instead and use

#define F_SETLK_NP	(F_LINUX_SPECIFIC_BASE+3)
#define F_SETLKW_NP	(F_LINUX_SPECIFIC_BASE+4)

That's what F_LINUX_SPECIFIC_BASE was created for (so we would not
have to patch all the arch specific fcntl.h files ...)

Cheers,
Stephen Rothwell		sfr at canb.auug.org.au




More information about the samba-technical mailing list