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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [stdlib/] [cxa_atexit.c] - Blame information for rev 158

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/*
2
 * Implementation of __cxa_atexit.
3
 */
4
 
5
#include <stddef.h>
6
#include <stdlib.h>
7
#include <reent.h>
8
#include <sys/lock.h>
9
#include "atexit.h"
10
 
11
/*
12
 * Register a function to be performed at exit or DSO unload.
13
 */
14
 
15
int
16
_DEFUN (__cxa_atexit,
17
        (fn, arg, d),
18
        void (*fn) (void *) _AND
19
        void *arg _AND
20
        void *d)
21
{
22
  return __register_exitproc (__et_cxa, (void (*)(void)) fn, arg, d);
23
}

powered by: WebSVN 2.1.0

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