mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] Consolidate include/asm/fcntl.h into include/linux/fcntl.h
@ 2002-08-24 20:35 Matthew Wilcox
  2002-08-25  9:57 ` Stephen Rothwell
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2002-08-24 20:35 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-kernel


I think this is a bad idea -- when doing a new port, it's easier to fill
in the bits with the current scheme rather than with your proposed scheme.
There is one part which I like:

-/* for old implementation of bsd flock () */
-#define F_EXLCK		4	/* or 3 */
-#define F_SHLCK		8	/* or 4 */

All of these can go, nobody's been using them since kernel 2.0.  I took
out the last vestiges of them from locks.c earlier in 2.5.  None of the
BSDs have them either.

-- 
Revolutions do not require corporate support.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Consolidate include/asm/fcntl.h into include/linux/fcntl.h
  2002-08-24 20:35 [PATCH] Consolidate include/asm/fcntl.h into include/linux/fcntl.h Matthew Wilcox
@ 2002-08-25  9:57 ` Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2002-08-25  9:57 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-kernel

Hi Willy,

On Sat, 24 Aug 2002 21:35:49 +0100 Matthew Wilcox <willy@debian.org> wrote:
>
> I think this is a bad idea -- when doing a new port, it's easier to fill
> in the bits with the current scheme rather than with your proposed scheme.

The point about nay new port is that it is likely to be exactly the same as
one of the current ports as far as these defines and structures are
concerned.  WIth the current scheme, you get exactly what happened with
PPC and PPC64 - i.e. they are identical with most of the other ports except
for a couple of defines which are only different because of an error.
There is no existing ABI that would be an excuse for them to be different.

With the new scheme, asm/fcntl.h consists of only the necessary
differences from the "norm" as defined by linux/fcntl.h.

Unjustified differences between the ports are a bad thing.  For one,
it make the library maintainers job much harder ...

The longer term intent of my consolidation efforts is to lessen the
problems of all the port maintainers trying to keep up with each other
when bugs are fixed in (more or less generic) code in one port (usually
i386 ...).  There are several bugs like this currently and I suspect
many that have not been discovered yet.

> There is one part which I like:
> 
> -/* for old implementation of bsd flock () */
> -#define F_EXLCK		4	/* or 3 */
> -#define F_SHLCK		8	/* or 4 */
> 
> All of these can go, nobody's been using them since kernel 2.0.  I took
> out the last vestiges of them from locks.c earlier in 2.5.  None of the
> BSDs have them either.

Wonderful, I will update my patch to remove them completely.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Consolidate include/asm/fcntl.h into include/linux/fcntl.h
@ 2002-08-24 15:10 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2002-08-24 15:10 UTC (permalink / raw)
  To: LKML

Hi All,

This patch consolidates as much as possible of the fcntl.h files into
include/linux/fcntl.h.  It builds fine on i386 but may have broken some
other architectures (but should not have) - I have been as careful as
I can.

Patch available at http://www.canb.auug.org.au/~sfr/31-fcntl.1.diff.gz

Comments welcome.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-25  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-24 20:35 [PATCH] Consolidate include/asm/fcntl.h into include/linux/fcntl.h Matthew Wilcox
2002-08-25  9:57 ` Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2002-08-24 15:10 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®