1/*
2 * Default cleanup logic because linux_syscall_numbers.h's need for cleanup
3 * and binutils bugs suck.
4 *
5 * Copyright (c) 2009 Cisco Systems, Inc.  All Rights Reserved.
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of version 2 of the GNU General Public License as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it would be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 *
15 * Further, this software is distributed without any warranty that it is
16 * free of the rightful claim of any third person regarding infringement
17 * or the like.  Any license provided herein, whether implied or
18 * otherwise, applies only to this software file.  Patent licenses, if
19 * any, provided herein do not apply to combinations of this program with
20 * other software, or any other product whatsoever.
21 *
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write the Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 *
26 */
27
28#ifndef __CLEANUP_C__
29#define __CLEANUP_C__
30
31/* Did the user define a cleanup function? */
32#ifndef CLEANUP
33#define USING_DUMMY_CLEANUP 1
34#define CLEANUP dummy_cleanup
35#endif
36
37/* A freebie for defining the function prototype. */
38static void CLEANUP(void) __attribute__ ((unused));
39
40#ifdef USING_DUMMY_CLEANUP
41/* The stub function. Wewt.. */
42static void dummy_cleanup(void)
43{
44}
45#endif
46
47#endif
48