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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [libc/] [stdlib/] [cxa_atexit.c] - Diff between revs 207 and 520

Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 520
/*
/*
 * Implementation of __cxa_atexit.
 * Implementation of __cxa_atexit.
 */
 */
 
 
#include <stddef.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdlib.h>
#include <reent.h>
#include <reent.h>
#include <sys/lock.h>
#include <sys/lock.h>
#include "atexit.h"
#include "atexit.h"
 
 
/*
/*
 * Register a function to be performed at exit or DSO unload.
 * Register a function to be performed at exit or DSO unload.
 */
 */
 
 
int
int
_DEFUN (__cxa_atexit,
_DEFUN (__cxa_atexit,
        (fn, arg, d),
        (fn, arg, d),
        void (*fn) (void *) _AND
        void (*fn) (void *) _AND
        void *arg _AND
        void *arg _AND
        void *d)
        void *d)
{
{
  return __register_exitproc (__et_cxa, (void (*)(void)) fn, arg, d);
  return __register_exitproc (__et_cxa, (void (*)(void)) fn, arg, d);
}
}
 
 

powered by: WebSVN 2.1.0

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