From a64dcc3f8cc535c437f7b35cef4747576aca629d Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 26 Feb 2004 13:10:15 +0000 Subject: [PATCH] removed everything an include only git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1012 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/src/util.h | 51 ++++++------------------------------------------- 1 file changed, 6 insertions(+), 45 deletions(-) diff --git a/util-vserver/src/util.h b/util-vserver/src/util.h index d7970d3..afc41bb 100644 --- a/util-vserver/src/util.h +++ b/util-vserver/src/util.h @@ -1,6 +1,6 @@ -// $Id$ --*- c++ -*-- +// $Id$ --*- c -*-- -// Copyright (C) 2003 Enrico Scholz +// Copyright (C) 2004 Enrico Scholz // // 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 @@ -16,48 +16,9 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef H_UTIL_VSERVER_SRC_UTIL_H -#define H_UTIL_VSERVER_SRC_UTIL_H +#ifndef H_UTILVSERVER_SRC_UTIL_H +#define H_UTILVSERVER_SRC_UTIL_H -#include "compat.h" -#include "lib_internal/util-io.h" -#include "lib_internal/util-mem.h" -#include "lib_internal/util-safechdir.h" -#include "lib_internal/util-dotfile.h" -#include "lib_internal/util-perror.h" +#include -#include -#include - -#ifndef PACKAGE_BUGREPORT -# define PACKAGE_BUGREPORT "???" -#endif - -#ifndef VERSION_COPYRIGHT_DISCLAIMER -# define VERSION_COPYRIGHT_DISCLAIMER \ - "This program is free software; you may redistribute it under the terms of\n" \ - "the GNU General Public License. This program has absolutely no warranty.\n" -#endif - -#ifndef __cplusplus -# define cAsT_(X) (X)) -# define reinterpret_cast(X) ((X) cAsT_ -# define static_cast(X) ((X) cAsT_ -# define const_cast(X) ((X) cAsT_ -#else /* __cplusplus */ -# define reinterpret_cast(X) reinterpret_cast -# define static_cast(X) static_cast -# define const_cast(X) const_cast -#endif - -#define DIM_OF(X) (sizeof(X)/sizeof((X)[0])) - -void exitLikeProcess(int pid) NORETURN; - - -#define VSERVER_DECLARE_CMD(CMD) \ - char buf[strlen(CMD)+1]; \ - memcpy(buf, (CMD), strlen(CMD)+1); \ - CMD = basename(buf); - -#endif // H_UTIL_VSERVER_SRC_UTIL_H +#endif // H_UTILVSERVER_SRC_UTIL_H -- 1.8.1.5