/systemd/src/shared/ |
H A D | sysctl-util.c | 62 return write_string_file(p, value, 0);
|
/systemd/src/test/ |
H A D | test-hostname-util.c | 111 write_string_file(path, "foo", WRITE_STRING_FILE_CREATE); 117 write_string_file(path, "# comment\nfoo", WRITE_STRING_FILE_CREATE); 124 write_string_file(path, "# comment\n\n foo ", WRITE_STRING_FILE_CREATE); 131 write_string_file(path, "!foo/bar.com", WRITE_STRING_FILE_CREATE); 139 write_string_file(path, "# nothing here\n", WRITE_STRING_FILE_CREATE);
|
H A D | test-fileio.c | 332 char fn[] = "/tmp/test-write_string_file-XXXXXX"; 339 assert_se(write_string_file(fn, "boohoo", WRITE_STRING_FILE_CREATE) == 0); 355 assert_se(write_string_file("/a/file/which/does/not/exists/i/guess", "boohoo", 0) < 0); 356 assert_se(write_string_file(fn, "boohoo", 0) == 0); 371 r = write_string_file("/proc/cmdline", buf, 0); 373 r = write_string_file("/proc/cmdline", buf2, 0); 376 assert_se(write_string_file("/proc/cmdline", buf, WRITE_STRING_FILE_VERIFY_ON_FAILURE) == 0); 377 assert_se(write_string_file("/proc/cmdline", buf2, WRITE_STRING_FILE_VERIFY_ON_FAILURE) == 0); 379 r = write_string_file("/proc/cmdline", buf, WRITE_STRING_FILE_VERIFY_ON_FAILURE|WRITE_STRING_FILE_AVOID_NEWLINE); 381 assert_se(write_string_file("/pro [all...] |
H A D | test-copy.c | 50 assert_se(write_string_file(fn, "foo bar bar bar foo", WRITE_STRING_FILE_CREATE) == 0); 74 assert_se(write_string_file(in_fn, text, WRITE_STRING_FILE_CREATE) == 0); 101 assert_se(write_string_file(f, "file", WRITE_STRING_FILE_CREATE) == 0);
|
H A D | test-install-root.c | 39 assert_se(write_string_file(p, 189 assert_se(write_string_file(p, 194 assert_se(write_string_file(p, 199 assert_se(write_string_file(p, 314 assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); 347 assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); 353 assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); 380 assert_se(write_string_file(p, 485 assert_se(write_string_file(p, 490 assert_se(write_string_file( [all...] |
H A D | test-btrfs.c | 72 r = write_string_file("/xxxtest/afile", "ljsadhfljasdkfhlkjdsfha", WRITE_STRING_FILE_CREATE);
|
H A D | test-execute.c | 165 r = write_string_file("/tmp/test-exec_environmentfile.conf", e, WRITE_STRING_FILE_CREATE);
|
H A D | test-util.c | 1378 assert_se(write_string_file(name, "#!/bin/sh\necho 'Executing '$0\ntouch $(dirname $0)/it_works", WRITE_STRING_FILE_CREATE) == 0); 1379 assert_se(write_string_file(name2, "#!/bin/sh\necho 'Executing '$0\ntouch $(dirname $0)/it_works2", WRITE_STRING_FILE_CREATE) == 0); 1380 assert_se(write_string_file(overridden, "#!/bin/sh\necho 'Executing '$0\ntouch $(dirname $0)/failed", WRITE_STRING_FILE_CREATE) == 0); 1381 assert_se(write_string_file(override, "#!/bin/sh\necho 'Executing '$0", WRITE_STRING_FILE_CREATE) == 0); 1382 assert_se(write_string_file(masked, "#!/bin/sh\necho 'Executing '$0\ntouch $(dirname $0)/failed", WRITE_STRING_FILE_CREATE) == 0);
|
/systemd/src/binfmt/ |
H A D | binfmt.c | 57 return write_string_file(fn, "-1", 0); 65 r = write_string_file("/proc/sys/fs/binfmt_misc/register", rule, 0); 192 write_string_file("/proc/sys/fs/binfmt_misc/status", "-1", 0);
|
/systemd/src/hibernate-resume/ |
H A D | hibernate-resume.c | 67 r = write_string_file("/sys/power/resume", major_minor, WRITE_STRING_FILE_CREATE);
|
/systemd/src/basic/ |
H A D | fileio-label.c | 34 r = write_string_file(fn, line, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC);
|
H A D | fileio.h | 39 int write_string_file(const char *fn, const char *line, WriteStringFileFlags flags);
|
H A D | smack-util.c | 129 r = write_string_file(p, label, 0);
|
H A D | capability-util.c | 263 r = write_string_file(fn, p, WRITE_STRING_FILE_CREATE);
|
H A D | cgroup-util.c | 720 return write_string_file(fs, c, 0); 914 r = write_string_file(fs, agent, 0); 932 r = write_string_file(fs, "1", 0); 959 r = write_string_file(fs, "0", 0); 969 r = write_string_file(fs, "", 0); 1826 return write_string_file(p, value, 0); 2180 r = write_string_file(fs, s, 0);
|
H A D | fileio.c | 88 int write_string_file(const char *fn, const char *line, WriteStringFileFlags flags) { function 1230 return write_string_file(fn, ln, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC);
|
/systemd/src/core/ |
H A D | smack-setup.c | 294 r = write_string_file("/proc/self/attr/current", SMACK_RUN_LABEL, 0); 297 r = write_string_file("/sys/fs/smackfs/ambient", SMACK_RUN_LABEL, 0); 300 r = write_string_file("/sys/fs/smackfs/netlabel", 304 r = write_string_file("/sys/fs/smackfs/netlabel", "127.0.0.1 -CIPSO", 0);
|
H A D | machine-id-setup.c | 276 r = write_string_file(run_machine_id, id, WRITE_STRING_FILE_CREATE);
|
/systemd/src/nspawn/ |
H A D | nspawn-cgroup.c | 109 r = write_string_file(fn, pid_string, 0);
|
/systemd/src/sleep/ |
H A D | sleep.c | 45 k = write_string_file("/sys/power/disk", *mode, 0);
|
/systemd/src/vconsole/ |
H A D | vconsole-setup.c | 63 k = write_string_file("/sys/module/vt/parameters/default_utf8", "0", 0); 96 k = write_string_file("/sys/module/vt/parameters/default_utf8", "1", 0);
|
/systemd/src/rfkill/ |
H A D | rfkill.c | 228 r = write_string_file(state_file, one_zero(event->soft), WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC); 281 r = write_string_file(state_file, one_zero(event->soft), WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC);
|
/systemd/src/backlight/ |
H A D | backlight.c | 422 r = write_string_file(saved, value, WRITE_STRING_FILE_CREATE);
|
/systemd/src/udev/ |
H A D | udevd.c | 407 write_string_file("/proc/self/oom_score_adj", "0", 0); 1095 write_string_file(filename, "change", WRITE_STRING_FILE_CREATE); 1110 write_string_file(filename, "change", WRITE_STRING_FILE_CREATE); 1118 write_string_file(filename, "change", WRITE_STRING_FILE_CREATE); 1755 write_string_file("/proc/self/oom_score_adj", "-1000", 0);
|
/systemd/src/firstboot/ |
H A D | firstboot.c | 413 r = write_string_file(etc_hostname, arg_hostname, WRITE_STRING_FILE_CREATE); 434 r = write_string_file(etc_machine_id, sd_id128_to_string(arg_machine_id, id), WRITE_STRING_FILE_CREATE);
|