16aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya/*
27f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya * Default cleanup logic because linux_syscall_numbers.h's need for cleanup
37f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya * and binutils bugs suck.
47f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya *
56aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * Copyright (c) 2009 Cisco Systems, Inc.  All Rights Reserved.
66aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya *
76aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * This program is free software; you can redistribute it and/or modify it
86aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * under the terms of version 2 of the GNU General Public License as
96aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * published by the Free Software Foundation.
106aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya *
116aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * This program is distributed in the hope that it would be useful, but
126aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * WITHOUT ANY WARRANTY; without even the implied warranty of
136aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
146aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya *
156aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * Further, this software is distributed without any warranty that it is
166aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * free of the rightful claim of any third person regarding infringement
176aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * or the like.  Any license provided herein, whether implied or
186aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * otherwise, applies only to this software file.  Patent licenses, if
196aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * any, provided herein do not apply to combinations of this program with
206aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * other software, or any other product whatsoever.
216aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya *
226aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya * You should have received a copy of the GNU General Public License along
23fed9641096e27f79a0f2d9adfe9839dd8d11dc0fWanlong Gao * with this program; if not, write the Free Software Foundation, Inc.,
24fed9641096e27f79a0f2d9adfe9839dd8d11dc0fWanlong Gao * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
256aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya *
266aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya */
271e6f5a673655551de5734ff31ef48cd63b604e6dGarrett Cooper
286aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya#ifndef __CLEANUP_C__
296aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya#define __CLEANUP_C__
307f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya
317f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya/* Did the user define a cleanup function? */
326aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya#ifndef CLEANUP
33354ebb48db8e66a853a58379a4808d5dcd1ceac3Wanlong Gao#define USING_DUMMY_CLEANUP 1
34354ebb48db8e66a853a58379a4808d5dcd1ceac3Wanlong Gao#define CLEANUP dummy_cleanup
357f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya#endif
367f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya
377f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya/* A freebie for defining the function prototype. */
38354ebb48db8e66a853a58379a4808d5dcd1ceac3Wanlong Gaostatic void CLEANUP(void) __attribute__ ((unused));
397f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya
407f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya#ifdef USING_DUMMY_CLEANUP
417f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya/* The stub function. Wewt.. */
42354ebb48db8e66a853a58379a4808d5dcd1ceac3Wanlong Gaostatic void dummy_cleanup(void)
43354ebb48db8e66a853a58379a4808d5dcd1ceac3Wanlong Gao{
44354ebb48db8e66a853a58379a4808d5dcd1ceac3Wanlong Gao}
456aa2737d5de9256fcdb5b68a6aa6b12249005049yaberauneya#endif
467f140ab215a66e7ed9a195591b756cf6cdfde38cyaberauneya
4761ac0eaf2a3f24378ed0ab20a1613134ab83843aCyril Hrubis#endif
48