1 // $Id: util.h 2255 2006-01-22 11:23:47Z ensc $ --*- c -*--
3 // Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; version 2 of the License.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #ifndef H_UTILVSERVER_LIB_INTERNAL_UTIL_H
20 #define H_UTILVSERVER_LIB_INTERNAL_UTIL_H
22 #include "util-cast.h"
23 #include "util-commonstrings.h"
24 #include "util-debug.h"
25 #include "util-declarecmd.h"
26 #include "util-dimof.h"
27 #include "util-dotfile.h"
28 #include "util-exitlikeprocess.h"
30 #include "util-lockfile.h"
32 #include "util-perror.h"
33 #include "util-safechdir.h"
34 #include "util-unixsock.h"
36 bool switchToWatchXid(char const **);
37 size_t canonifyVserverName(char *);
38 bool isNumber(char const *, signed long *result, bool is_strict);
39 bool isNumberUnsigned(char const *, unsigned long *result, bool is_strict);
41 #endif // H_UTILVSERVER_LIB_INTERNAL_UTIL_H