git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@475
94cd875c-1c1d-0410-91d2-
eb244daf1a30
#include "vserver.h"
#include "internal.h"
#include "pathconfig.h"
+#include "compat-c99.h"
#include <string.h>
#include <unistd.h>
{
if (revdir==0) revdir = DEFAULT_PKGSTATEREVDIR;
+ BS;
vcCfgStyle cur_style = vcCFG_NONE;
size_t l = strlen(revdir);
size_t l1;
default :
return 0;
}
+ BE;
}
#include "vserver.h"
#include "pathconfig.h"
+#include "compat-c99.h"
#include <sys/types.h>
#include <sys/stat.h>
(len>50) ||
(lseek(fd, 0, SEEK_SET)==-1))
return VC_NOCTX;
-
- char buf[len+1];
- if (TEMP_FAILURE_RETRY(read(fd, buf, len+1))!=len)
- return VC_NOCTX;
+ BS;
+ char buf[len+1];
char *errptr;
ctx_t res;
+
+ if (TEMP_FAILURE_RETRY(read(fd, buf, len+1))!=len)
+ return VC_NOCTX;
res = strtol(buf, &errptr, 10);
if (*errptr!='\0' && *errptr!='\n') return VC_NOCTX;
return res;
+ BE;
}
ctx_t