util.h (1481B)
1 // $Id$ --*- c -*-- 2 3 // Copyright (C) 2004,2015 Enrico Scholz <enrico.scholz@ensc.de> 4 // 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. 8 // 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. 13 // 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. 17 18 19 #ifndef H_UTILVSERVER_LIB_INTERNAL_UTIL_H 20 #define H_UTILVSERVER_LIB_INTERNAL_UTIL_H 21 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-io.h" 29 #include "util-lockfile.h" 30 #include "util-mem.h" 31 #include "util-perror.h" 32 #include "util-safechdir.h" 33 #include "util-unixsock.h" 34 35 bool switchToWatchXid(char const **); 36 size_t canonifyVserverName(char *); 37 bool isNumber(char const *, signed long *result, bool is_strict); 38 bool isNumberUnsigned(char const *, unsigned long *result, bool is_strict); 39 bool mkdirRecursive(char const *); 40 bool cleanupMount(void); 41 42 #endif // H_UTILVSERVER_LIB_INTERNAL_UTIL_H