blob: 787560902055140fe02704aeffd3788a27c23741 [file] [log] [blame]
yaberauneya6aa27372009-12-06 19:54:10 +00001/*
yaberauneya7f140ab2009-12-06 20:55:15 +00002 * Default cleanup logic because linux_syscall_numbers.h's need for cleanup
3 * and binutils bugs suck.
4 *
yaberauneya6aa27372009-12-06 19:54:10 +00005 * 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., 59
24 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
25 *
26 */
27
28#ifndef __CLEANUP_C__
29#define __CLEANUP_C__
yaberauneya7f140ab2009-12-06 20:55:15 +000030
31/* Did the user define a cleanup function? */
yaberauneya6aa27372009-12-06 19:54:10 +000032#ifndef CLEANUP
yaberauneya7f140ab2009-12-06 20:55:15 +000033# define USING_DUMMY_CLEANUP 1
34# define CLEANUP dummy_cleanup
yaberauneya6aa27372009-12-06 19:54:10 +000035#endif
yaberauneya7f140ab2009-12-06 20:55:15 +000036
37/* A freebie for defining the function prototype. */
38static void CLEANUP() __attribute__((unused));
39
40#ifdef USING_DUMMY_CLEANUP
41/* The stub function. Wewt.. */
42static void dummy_cleanup() { }
43#endif
44
yaberauneya6aa27372009-12-06 19:54:10 +000045#endif