[LTP] [PATCH v2] syscalls/ipc: semctl07: Convert to new API and cleanup

Cyril Hrubis chrubis@suse.cz
Thu Jan 28 14:33:56 CET 2021


Hi!
Pushed with two minor changes, thanks.

> +	if ((status = semctl(semid, 0, GETVAL)) == -1)

Since these calls are supposed to return positive value I've changed
this condition to foo() < 0 instead.

> +		tst_res(TFAIL, "semctl(GETVAL) failed errno = %d", errno);

And changed these to use TERRNO instead.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list