chiark / gitweb /
basic: set errno in raw_clone() on sparc
authorMike Gilbert <floppym@gentoo.org>
Thu, 31 May 2018 03:06:33 +0000 (23:06 -0400)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit1f59c3b65eadaf1fed2b037e78b0913f85c0a717
tree6a2766dd9b2e577b1d82f5659022c9feafd19b0d
parentbbc6a6a0caba41c00c1dfd9a01c7129efaa5fe56
basic: set errno in raw_clone() on sparc

sparc sets the carry bit when a syscall fails. Use this information to
set errno and return -1 as appropriate.

The added test case calls raw_clone() with flags known to be invalid
according to the clone(2) manpage.
src/basic/raw-clone.h
src/test/test-util.c