OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [sysdeps/] [linux/] [common/] [_exit.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
/* vi: set sw=4 ts=4: */
2
/*
3
 * exit syscall for uClibc
4
 *
5
 * Copyright (C) 2002 by Erik Andersen <andersen@codpoet.org>
6
 *
7
 * This program is free software; you can redistribute it and/or modify it
8
 * under the terms of the GNU Library General Public License as published by
9
 * the Free Software Foundation; either version 2 of the License, or (at your
10
 * option) any later version.
11
 *
12
 * This program is distributed in the hope that it will be useful, but WITHOUT
13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
15
 * for more details.
16
 *
17
 * You should have received a copy of the GNU Library General Public License
18
 * along with this program; if not, write to the Free Software Foundation,
19
 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
 *
21
 */
22
 
23
#define _GNU_SOURCE
24
#include <features.h>
25
#include <errno.h>
26
#include <sys/types.h>
27
#include <sys/syscall.h>
28
 
29
#ifndef INLINE_SYSCALL
30
#define INLINE_SYSCALL(name, nr, args...) __syscall_exit (args)
31
#define __NR___syscall_exit __NR_exit 
32
static inline _syscall1(void, __syscall_exit, int, status);
33
#endif
34
 
35
void _exit(int status)
36
{
37
        INLINE_SYSCALL(exit, 1, status);
38
}
39
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.