Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

util.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (C) 2001 NetLabs SRL (ejbs@netlabs.com.uy)
00003 *
00004 * This file is part of wccpd.
00005 *
00006 * wccpd is free software; you can redistribute it and/or modify
00007 * it under the terms of the GNU General Public License as published by
00008 * the Free Software Foundation; either version 2 of the License, or
00009 * (at your option) any later version.
00010 *
00011 * wccpd is distributed in the hope that it will be useful,
00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 * GNU General Public License for more details.
00015 *
00016 * You should have received a copy of the GNU General Public License
00017 * along with wccpd; if not, write to the Free Software
00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 */
00020 
00025 #ifndef __UTIL_H__
00026 #define __UTIL_H__
00027 
00028 #include "types.h"
00029 
00030 
00031 #define STR(s)  #s
00032 
00047 #define XSTR(s) STR(s)
00048 
00053 #define MAX_CMDEXEC_ARGS        32
00054 
00064 extern char* ip2str (u_int32 ip);
00065 
00079 extern void executeCmd (char* cmd, ...);
00080 
00088 extern pid_t daemonize ();
00089 
00098 extern void setSignals (int* fShutdown);
00099 
00100 #endif /* __UTIL_H__ */

Generated at Fri Jan 25 19:22:24 2002 for wccpd by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001