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