moved declarations of general functions from vserver-internal.h into
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 14 Oct 2003 18:46:54 +0000 (18:46 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 14 Oct 2003 18:46:54 +0000 (18:46 +0000)
internal.h

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@152 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/internal.h [new file with mode: 0644]
util-vserver/lib/vserver-internal.h

diff --git a/util-vserver/lib/internal.h b/util-vserver/lib/internal.h
new file mode 100644 (file)
index 0000000..82eecae
--- /dev/null
@@ -0,0 +1,37 @@
+// $Id$    --*- c++ -*--
+
+// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+//  
+// 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; version 2 of the License.
+//  
+// 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; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+#ifndef H_UTIL_VSERVER_LIB_INTERNAL_H
+#define H_UTIL_VSERVER_LIB_INTERNAL_H
+
+#include <stdlib.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+size_t         utilvserver_uint2str(char *buf, size_t len,
+                                    unsigned int val, unsigned char base);
+int            utilvserver_checkCompatVersion();
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif //  H_UTIL_VSERVER_LIB_INTERNAL_H
index 394039b..cbf67c2 100644 (file)
 #ifndef H_VSERVER_SYSCALL_INTERNAL_H
 #define H_VSERVER_SYSCALL_INTERNAL_H
 
-#include <stdint.h>
-#include <stdlib.h>
-#include <syscall.h>
-#include <unistd.h>
 #include <asm/unistd.h>
+#include <syscall.h>
 #include <errno.h>
+#include <stdint.h>
 
 #ifndef __NR_sys_virtual_context
 #  define __NR_sys_virtual_context     273
 #  define CALL_VC_LEGACY(F,...) CALL_VC_NOOP
 #endif
 
-
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #ifndef HAVE_SYS_VIRTUAL_CONTEXT
 static UNUSED
 _syscall3(int, sys_virtual_context,
          uint32_t, cmd, uint32_t, id, void *, data)
 #endif
 
-size_t         utilvserver_uint2str(char *buf, size_t len,
-                                    unsigned int val, unsigned char base);
-int            utilvserver_checkCompatVersion();
-
-#ifdef __cplusplus
-}
-#endif
-
-
 #endif //  H_VSERVER_SYSCALL_INTERNAL_H