Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/zdtm/static/cgroup04.c')
-rw-r--r--test/zdtm/static/cgroup04.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/zdtm/static/cgroup04.c b/test/zdtm/static/cgroup04.c
index 5a424be12..8c40ffd6b 100644
--- a/test/zdtm/static/cgroup04.c
+++ b/test/zdtm/static/cgroup04.c
@@ -19,26 +19,6 @@ char *dirname;
TEST_OPTION(dirname, string, "cgroup directory name", 1);
static const char *cgname = "zdtmtst";
-int write_value(const char *path, const char *value)
-{
- int fd, l;
-
- fd = open(path, O_WRONLY);
- if (fd < 0) {
- pr_perror("open %s", path);
- return -1;
- }
-
- l = write(fd, value, strlen(value));
- close(fd);
- if (l < 0) {
- pr_perror("failed to write %s to %s", value, path);
- return -1;
- }
-
- return 0;
-}
-
int mount_and_add(const char *controller, const char *path, const char *prop, const char *value)
{
char aux[1024], paux[1024], subdir[1024];