Blame jehanne.c

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