Fix the creation of the dumpdir directory in stress_floppy Makefile
[ltp-debian.git] / include / cleanup.c
blob787560902055140fe02704aeffd3788a27c23741
1 /*
2 * Default cleanup logic because linux_syscall_numbers.h's need for cleanup
3 * and binutils bugs suck.
5 * Copyright (c) 2009 Cisco Systems, Inc. All Rights Reserved.
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.
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.
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.
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.
28 #ifndef __CLEANUP_C__
29 #define __CLEANUP_C__
31 /* Did the user define a cleanup function? */
32 #ifndef CLEANUP
33 # define USING_DUMMY_CLEANUP 1
34 # define CLEANUP dummy_cleanup
35 #endif
37 /* A freebie for defining the function prototype. */
38 static void CLEANUP() __attribute__((unused));
40 #ifdef USING_DUMMY_CLEANUP
41 /* The stub function. Wewt.. */
42 static void dummy_cleanup() { }
43 #endif
45 #endif