[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071030175731.GB17768@infradead.org>
Date: Tue, 30 Oct 2007 17:57:31 +0000
From: Christoph Hellwig <hch@...radead.org>
To: Erez Zadok <ezk@...sunysb.edu>
Cc: Christoph Hellwig <hch@...radead.org>, viro@....linux.org.uk,
akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH 3/4] VFS: factor out three helpers for FIBMAP/FIONBIO/FIOASYNC file ioctls
On Tue, Oct 30, 2007 at 01:49:48PM -0400, Erez Zadok wrote:
> BTW, what's the origin of this oddity in fs/ioctl.c:
>
> #ifdef __sparc__
> /* SunOS compatibility item. */
> if (O_NONBLOCK != O_NDELAY)
> flag |= O_NDELAY;
> #endif
>
> It seems rather odd to have architecture-specific code in the VFS, no?
When Dave did the sparc port he followed sunos ABIs for lots of things.
When these ABIs are hidden behind ioctl arguments they can't easily
be handled in arch code and we need warts like that. It's definitively
not recommended for new ports..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists