File:  [Early Linux] / linux / lib / _exit.c
Revision 1.1.1.6 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:11:58 2018 UTC (16 months, 3 weeks ago) by root
Branches: linus, MAIN
CVS tags: linux098, linux097, HEAD
linux 0.97

/*
 *  linux/lib/_exit.c
 *
 *  Copyright (C) 1991, 1992  Linus Torvalds
 */

#define __LIBRARY__
#include <linux/unistd.h>

volatile void _exit(int exit_code)
{
fake_volatile:
	__asm__("movl %1,%%ebx\n\t"
		"int $0x80"::"a" (__NR_exit),"g" (exit_code));
	goto fake_volatile;
}

unix.superglobalmegacorp.com