do not provide the ioctl-functions anymore; use them only internally
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 21 Jan 2004 01:17:36 +0000 (01:17 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 21 Jan 2004 01:17:36 +0000 (01:17 +0000)
and include them directly. Therefore, renamed them from *.c to *.hc

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

util-vserver/lib/ioctl-getext2flags.hc [moved from util-vserver/lib/ioctl-getext2flags.c with 97% similarity]
util-vserver/lib/ioctl-getfilecontext.hc [moved from util-vserver/lib/ioctl-getfilecontext.c with 97% similarity]
util-vserver/lib/ioctl-setext2flags.hc [moved from util-vserver/lib/ioctl-setext2flags.c with 97% similarity]
util-vserver/lib/ioctl-setfilecontext.hc [moved from util-vserver/lib/ioctl-setfilecontext.c with 97% similarity]

similarity index 97%
rename from util-vserver/lib/ioctl-getext2flags.c
rename to util-vserver/lib/ioctl-getext2flags.hc
index 1a532b1..1e79f04 100644 (file)
@@ -34,7 +34,7 @@
 #  define EXT2_IMMUTABLE_LINK_FL       0x00008000
 #endif
 
-int
+static inline ALWAYSINLINE int
 vc_X_get_ext2flags(int fd, long *flags)
 {
   int          rc;
similarity index 97%
rename from util-vserver/lib/ioctl-getfilecontext.c
rename to util-vserver/lib/ioctl-getfilecontext.hc
index f4f13e6..0adbfa4 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <sys/ioctl.h>
 
-xid_t
+static inline ALWAYSINLINE xid_t
 vc_X_get_filecontext(int fd)
 {
   int          c;
similarity index 97%
rename from util-vserver/lib/ioctl-setext2flags.c
rename to util-vserver/lib/ioctl-setext2flags.hc
index e006fcd..cdbb88c 100644 (file)
@@ -34,7 +34,7 @@
 #  define EXT2_IMMUTABLE_LINK_FL       0x00008000
 #endif
 
-int
+static inline ALWAYSINLINE int
 vc_X_set_ext2flags(int fd, long set_flags, long del_flags)
 {
   long         old_flags = 0;
similarity index 97%
rename from util-vserver/lib/ioctl-setfilecontext.c
rename to util-vserver/lib/ioctl-setfilecontext.hc
index 0f67997..3e0476d 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <sys/ioctl.h>
 
-int
+static inline ALWAYSINLINE int
 vc_X_set_filecontext(int fd, xid_t ctx)
 {
   int  c  = ctx;