Ejemplo n.º 1
0
Archivo: tgkill03.c Proyecto: kraj/ltp
static void run(unsigned int i)
{
	const struct testcase *tc = &testcases[i];

	TEST(sys_tgkill(*tc->tgid, *tc->tid, tc->sig));
	if (tc->err) {
		if (TST_RET < 0 && TST_ERR == tc->err)
			tst_res(TPASS | TTERRNO, "%s failed as expected",
				tc->desc);
		else
			tst_res(TFAIL | TTERRNO,
				"%s should have failed with %s", tc->desc,
				tst_strerrno(tc->err));
	} else {
		if (TST_RET == 0)
			tst_res(TPASS, "%s succeeded", tc->desc);
		else
			tst_res(TFAIL | TTERRNO, "%s failed", tc->desc);
	}
}
Ejemplo n.º 2
0
long compat_sys_tgkill(u32 tgid, u32 pid, int sig)
{
	/* sign extend tgid, pid */
	return sys_tgkill((int)tgid, (int)pid, sig);
}
Ejemplo n.º 3
0
long compat_sys_tgkill(u32 tgid, u32 pid, int sig)
{
	
	return sys_tgkill((int)tgid, (int)pid, sig);
}