예제 #1
0
파일: tst_res.c 프로젝트: CSRedRat/ltp
void tst_brkm_(const char *file, const int lineno, int ttype,
	void (*func)(void), const char *arg_fmt, ...)
{
	char tmesg[USERMESG];

	EXPAND_VAR_ARGS(tmesg, arg_fmt, USERMESG);

	tst_brk__(file, lineno, ttype, func, "%s", tmesg);
	/* Shouldn't be reached, but fixes build time warnings about noreturn. */
	abort();
}
예제 #2
0
파일: tst_res.c 프로젝트: BelHzy/caliper
/*
 * tst_brkm_() - Interface to tst_brk(), with no filename.
 */
void tst_brkm_(const char *file, const int lineno, int ttype,
	void (*func)(void), const char *arg_fmt, ...)
{
	char tmesg[USERMESG];

#if DEBUG
	printf("IN tst_brkm_\n");
	fflush(stdout);
	fflush(stdout);
#endif

	EXPAND_VAR_ARGS(tmesg, arg_fmt, USERMESG);

	tst_brk__(file, lineno, ttype, NULL, func, "%s", tmesg);
	/* Shouldn't be reach, but fixes build time warnings about noreturn. */
	abort();
}
예제 #3
0
파일: tst_res.c 프로젝트: kraj/ltp
void tst_brkm_(const char *file, const int lineno, int ttype,
	void (*func)(void), const char *arg_fmt, ...)
{
	char tmesg[USERMESG];

	EXPAND_VAR_ARGS(tmesg, arg_fmt, USERMESG);

	if (tst_test) {
		if (func) {
			tst_brk_(file, lineno, TBROK,
			         "Non-NULL cleanup in newlib!");
		}

		tst_brk_(file, lineno, ttype, "%s", tmesg);
	} else {
		tst_brk__(file, lineno, ttype, func, "%s", tmesg);
	}

	/* Shouldn't be reached, but fixes build time warnings about noreturn. */
	abort();
}