[PATCH] D48250: [sanitizer_common] Use O_TRUNC for WrOnly access mode.

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 25 17:15:30 PDT 2018


On 25.06.2018 16:04, Rainer Orth wrote:
> Kamil Rytarowski <n54 at gmx.com> writes:
> 
>> For your interest, I will be switching NetBSD away from
>> syscall(2)/__syscall(2), whenever possible to plain libc calls.
> 
> Interesting.
> 
>> The indirect syscall approach isn't reliable and portable for all of the
>> supported CPUs, ABIs and system calls.
> 
> There are similar differences between Solaris/SPARC and x86 mandated by
> the underlying ABIs.  A total mess indeed.
> 

The most of the problems in NetBSD are with SPARC/SPARC64 and various
type of ARM ABIs. The syscall(2)-like interface cannot be implemented in
a portable, efficient and reliable way and it can be just removed from
future versions. As far as I can tell IRIX used to have no indirect
system call and it was a reasonable design choice.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 850 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180626/d6b23071/attachment.sig>


More information about the llvm-commits mailing list