All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Falk <oliver@linux-kernel.at>
To: Linux on Alpha processors <axp-list@redhat.com>,
	linux-kernel@vger.kernel.org,
	Jay Estabrook <jay.estabrook@hp.com>
Subject: Question about F_RDLCK and F_WRLCK on alpha
Date: Wed, 14 Nov 2007 21:52:30 +0100	[thread overview]
Message-ID: <473B600E.9030703@linux-kernel.at> (raw)

Hi!

Can someone explain me, why we have different define's for WRLCK and
RDLCK within alpha kernel headers:

Alpha system:

asm/fcntl.h:#define F_RDLCK             1
asm-generic/fcntl.h:#ifndef F_RDLCK
asm-generic/fcntl.h:#define F_RDLCK             0
bits/fcntl.h:#define F_RDLCK            1       /* Read lock.  */

Intel system:

asm-generic/fcntl.h:#ifndef F_RDLCK
asm-generic/fcntl.h:#define F_RDLCK             0
bits/fcntl.h:#define F_RDLCK            0       /* Read lock.  */

I would say F_RDLCK should better be 0 as in i386, but I also guess that
changing this would break many things, wouldn't it?

I don't want to tell you my (long) story, how I found that and why I was
searching for it :-(

(Jay, you know what I'm talkin' about, don't you?)


Well, maybe my kernel headers are just packaged up like crap!?


Best,
 Oliver


             reply	other threads:[~2007-11-14 21:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-14 20:52 Oliver Falk [this message]
2007-11-15  3:47 ` Question about F_RDLCK and F_WRLCK on alpha U. George

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=473B600E.9030703@linux-kernel.at \
    --to=oliver@linux-kernel.at \
    --cc=axp-list@redhat.com \
    --cc=jay.estabrook@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.