Searched refs:write_string_file (Results 1 - 25 of 32) sorted by relevance

12

/systemd/src/shared/
H A Dsysctl-util.c62 return write_string_file(p, value, 0);
/systemd/src/test/
H A Dtest-hostname-util.c111 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 Dtest-fileio.c332 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 Dtest-copy.c50 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 Dtest-install-root.c39 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 Dtest-btrfs.c72 r = write_string_file("/xxxtest/afile", "ljsadhfljasdkfhlkjdsfha", WRITE_STRING_FILE_CREATE);
H A Dtest-execute.c165 r = write_string_file("/tmp/test-exec_environmentfile.conf", e, WRITE_STRING_FILE_CREATE);
H A Dtest-util.c1378 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 Dbinfmt.c57 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 Dhibernate-resume.c67 r = write_string_file("/sys/power/resume", major_minor, WRITE_STRING_FILE_CREATE);
/systemd/src/basic/
H A Dfileio-label.c34 r = write_string_file(fn, line, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC);
H A Dfileio.h39 int write_string_file(const char *fn, const char *line, WriteStringFileFlags flags);
H A Dsmack-util.c129 r = write_string_file(p, label, 0);
H A Dcapability-util.c263 r = write_string_file(fn, p, WRITE_STRING_FILE_CREATE);
H A Dcgroup-util.c720 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 Dfileio.c88 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 Dsmack-setup.c294 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 Dmachine-id-setup.c276 r = write_string_file(run_machine_id, id, WRITE_STRING_FILE_CREATE);
/systemd/src/nspawn/
H A Dnspawn-cgroup.c109 r = write_string_file(fn, pid_string, 0);
/systemd/src/sleep/
H A Dsleep.c45 k = write_string_file("/sys/power/disk", *mode, 0);
/systemd/src/vconsole/
H A Dvconsole-setup.c63 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 Drfkill.c228 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 Dbacklight.c422 r = write_string_file(saved, value, WRITE_STRING_FILE_CREATE);
/systemd/src/udev/
H A Dudevd.c407 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 Dfirstboot.c413 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);

Completed in 5146 milliseconds

12