186d7f5d3SJohn Marino /* $OpenBSD: cleanup.c,v 1.5 2006/08/03 03:34:42 deraadt Exp $ */
286d7f5d3SJohn Marino /*
386d7f5d3SJohn Marino * Copyright (c) 2003 Markus Friedl <markus@openbsd.org>
486d7f5d3SJohn Marino *
586d7f5d3SJohn Marino * Permission to use, copy, modify, and distribute this software for any
686d7f5d3SJohn Marino * purpose with or without fee is hereby granted, provided that the above
786d7f5d3SJohn Marino * copyright notice and this permission notice appear in all copies.
886d7f5d3SJohn Marino *
986d7f5d3SJohn Marino * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1086d7f5d3SJohn Marino * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1186d7f5d3SJohn Marino * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1286d7f5d3SJohn Marino * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1386d7f5d3SJohn Marino * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1486d7f5d3SJohn Marino * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1586d7f5d3SJohn Marino * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1686d7f5d3SJohn Marino */
1786d7f5d3SJohn Marino
1886d7f5d3SJohn Marino #include "includes.h"
1986d7f5d3SJohn Marino
2086d7f5d3SJohn Marino #include <sys/types.h>
2186d7f5d3SJohn Marino
2286d7f5d3SJohn Marino #include <unistd.h>
2386d7f5d3SJohn Marino #include <stdarg.h>
2486d7f5d3SJohn Marino
2586d7f5d3SJohn Marino #include "log.h"
2686d7f5d3SJohn Marino
2786d7f5d3SJohn Marino /* default implementation */
2886d7f5d3SJohn Marino void
cleanup_exit(int i)2986d7f5d3SJohn Marino cleanup_exit(int i)
3086d7f5d3SJohn Marino {
3186d7f5d3SJohn Marino _exit(i);
3286d7f5d3SJohn Marino }
33