From ceb7d3cb30a23b4b148bc71491b3817e9e6e2778 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 2 May 2021 19:07:04 +0200 Subject: Initial import of libpam-tacplus (1.4.3-cl3u4) --- libtac/lib/xalloc.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libtac/lib/xalloc.h (limited to 'libtac/lib/xalloc.h') diff --git a/libtac/lib/xalloc.h b/libtac/lib/xalloc.h new file mode 100644 index 0000000..bfc1ce4 --- /dev/null +++ b/libtac/lib/xalloc.h @@ -0,0 +1,33 @@ +/* xalloc.h + * + * Copyright (C) 2010, Pawel Krawczyk and + * Jeroen Nijhof + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program - see the file COPYING. + * + * See `CHANGES' file for revision history. + */ + +#ifndef _XALLOC_H +#define _XALLOC_H + +#include "libtac.h" + +__BEGIN_DECLS +extern void *tac_xcalloc(size_t nmemb, size_t size); +extern void *tac_xrealloc(void *ptr, size_t size); +extern char *tac_xstrdup(const char *s); +__END_DECLS + +#endif -- cgit v1.2.3