[PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list

James Hogan james.hogan at imgtec.com
Mon Jun 19 15:10:23 PDT 2017


On Mon, Jun 19, 2017 at 11:58:41PM +0200, Arnd Bergmann wrote:
> On Mon, Jun 19, 2017 at 11:42 PM, James Hogan <james.hogan at imgtec.com> wrote:
> > On Mon, Jun 19, 2017 at 06:49:46PM +0300, Yury Norov wrote:
> > Subject: [PATCH] Deprecate stat syscalls superseded by statx
> >
> > Various stat system calls can now be implemented as userland wrappers
> > around the new statx system call, so allow them to be removed from the
> > kernel by default for new architectures / ABIs.
> >
> > This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing
> > architecture, which enables the relevant stat system calls in the
> > generic system call list (if used). It also conditionally defines the
> > syscalls in fs/stat.c and struct stat / struct stat64 in
> > asm-generic/stat.h.
> >
> > Signed-off-by: James Hogan <james.hogan at imgtec.com>
> > Cc: David Howells <dhowells at redhat.com>
> > Cc: Alexander Viro <viro at zeniv.linux.org.uk>
> > Cc: Arnd Bergmann <arnd at arndb.de>
> > Cc: linux-fsdevel at vger.kernel.org
> > Cc: linux-arch at vger.kernel.org
> > Cc: linux-api at vger.kernel.org
> > Cc: linux-kernel at vger.kernel.org
> 
> Good idea:
> 
> Acked-by:  Arnd Bergmann <arnd at arndb.de>

Thanks,

> 
> > +/* statx deprecates the un-extended stat syscalls which use struct stat[64] */
> > +#ifdef __ARCH_WANT_SYSCALL_UNXSTAT
> 
> I'm glad you explain what 'UNXSTAT' means here, since I would not
> have otherwise guessed it, but I also can't think of anything more
> intuitive.

Yeh, I renamed that several times while playing around with this :-).

The stat syscalls remind me a bit of the Vicar of Dibley episode where
the new road named "New Road" necessitates the renaming of the existing
"New Road" to "Quite Old Road" and "Quite Old Road" to "Really Quite Old
Road" and "Old Road" to "Very Old Road"!

Cheers
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-snps-arc/attachments/20170619/4a6864fb/attachment.sig>


More information about the linux-snps-arc mailing list