Blame jehanne.c

Packit 991819
/*-
Packit 991819
 * Copyright (c) 2017
Packit 991819
 *	Giacomo Tesio <giacomo@tesio.it>
Packit 991819
 *
Packit 991819
 * Provided that these terms and disclaimer and all copyright notices
Packit 991819
 * are retained or reproduced in an accompanying document, permission
Packit 991819
 * is granted to deal in this work without restriction, including un-
Packit 991819
 * limited rights to use, publicly perform, distribute, sell, modify,
Packit 991819
 * merge, give away, or sublicence.
Packit 991819
 *
Packit 991819
 * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
Packit 991819
 * the utmost extent permitted by applicable law, neither express nor
Packit 991819
 * implied; without malicious intent or gross negligence. In no event
Packit 991819
 * may a licensor, author or contributor be held liable for indirect,
Packit 991819
 * direct, other damage, loss, or other issues arising in any way out
Packit 991819
 * of dealing in the work, even if advised of the possibility of such
Packit 991819
 * damage or existence of a defect, except proven that it results out
Packit 991819
 * of said person's immediate fault when using the work as intended.
Packit 991819
 *-
Packit 991819
 * Initialisation code for the Jehanne operating system (a Plan 9 de-
Packit 991819
 * rivative, using GCC)
Packit 991819
 */
Packit 991819
Packit 991819
static const char __rcsid[] __attribute__((__used__)) =
Packit 991819
    "$MirOS: src/bin/mksh/jehanne.c,v 1.1 2017/12/22 16:30:00 tg Exp $";
Packit 991819
Packit 991819
#include <u.h>
Packit 991819
#include <lib9.h>
Packit 991819
#include <posix.h>
Packit 991819
Packit 991819
void
Packit 991819
__application_newlib_init(int argc, char *argv[])
Packit 991819
{
Packit 991819
	rfork(RFFDG | RFREND | RFNOTEG);
Packit 991819
	libposix_emulate_SIGCHLD();
Packit 991819
}