has_chrootsafe(), call_set_ctxlimit(): removed
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 20 Nov 2003 18:06:59 +0000 (18:06 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 20 Nov 2003 18:06:59 +0000 (18:06 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@429 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/syscall-legacy.hc

index be8983e..198bf0a 100644 (file)
@@ -254,31 +254,3 @@ vc_chrootsafe_legacy (const char *dir)
        errno = EINVAL;
        return -1;
 }
-
-#if 0
-/*
-       Return != 0 if chrootsafe is available
-*/
-int has_chrootsafe()
-{
-       init();
-       return rev_chrootsafe != -1;
-}
-
-int call_set_ctxlimit (int res, long limit)
-{
-       init();
-       if (rev_set_ctxlimit == -1){
-               fprintf (stderr,"set_ctxlimit: Unsupported system call, update kernel\n");
-       }else if (rev_set_ctxlimit == 0){
-               return set_ctxlimit (res,limit);
-       }else{
-               fprintf (stderr,"set_ctxlimit: kernel support version %d, application expects version 0\n"
-                       ,rev_set_ctxlimit);
-       }
-       errno = EINVAL;
-       return -1;
-}
-
-
-#endif