This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: support for calling Linux syscalls directly
- From: David Miller <davem at davemloft dot net>
- To: chrubis at suse dot cz
- Cc: hpa at zytor dot com, vapier at gentoo dot org, libc-alpha at sourceware dot org,keescook at chromium dot org
- Date: Tue, 12 Feb 2013 12:52:52 -0500 (EST)
- Subject: Re: support for calling Linux syscalls directly
- References: <201301242314.47793.vapier@gentoo.org><5109A662.7050101@zytor.com><20130212174638.GB25044@rei>
From: chrubis@suse.cz
Date: Tue, 12 Feb 2013 18:46:38 +0100
> I do the LTP[1] which makes legitimate use of syscall(3) as for the
> testing purposes we need to be able to call bare syscalls in order to
> validate both glibc and kernel API. And removing the call would mess
> backward compatibility.
I don't think it makes sense for every source tree that wants to
call syscall directly to have to duplicate over and over again the
argument passing quirks of various architectures.
Multiple instances of such tricky code means multiple places for
the same bugs over and over again.