File:  [Early Linux] / linux / lib / _exit.c
Revision 1.1.1.4 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:08:24 2018 UTC (23 months, 1 week ago) by root
Branches: linus, MAIN
CVS tags: linux096b, HEAD
linux 0.96b

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

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

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

unix.superglobalmegacorp.com