]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-util.c
basic: set errno in raw_clone() on sparc
authorMike Gilbert <floppym@gentoo.org>
Thu, 31 May 2018 03:06:33 +0000 (23:06 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 2 Jun 2018 07:48:19 +0000 (09:48 +0200)
commit96f64eb5741b157f26a9089816fdd992e959792e
treed1f07b373b14f63a574fb19ea93340bafa13693f
parente0bd32c5cd1d5e04fca9628babe2d87703264ca0
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