コード例 #1
0
ファイル: tgkill03.c プロジェクト: 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);
	}
}
コード例 #2
0
long compat_sys_tgkill(u32 tgid, u32 pid, int sig)
{
	/* sign extend tgid, pid */
	return sys_tgkill((int)tgid, (int)pid, sig);
}
コード例 #3
0
ファイル: sys_ppc32.c プロジェクト: Blackburn29/PsycoKernel
long compat_sys_tgkill(u32 tgid, u32 pid, int sig)
{
	
	return sys_tgkill((int)tgid, (int)pid, sig);
}