Home
last modified time | relevance | path

Searched refs:write_string_file (Results 1 – 25 of 52) sorted by relevance

123

/systemd-251/src/test/
Dtest-exec-util.c84 assert_se(write_string_file(name, in test_execute_directory_one()
87 assert_se(write_string_file(name2, in test_execute_directory_one()
90 assert_se(write_string_file(overridden, in test_execute_directory_one()
93 assert_se(write_string_file(override, in test_execute_directory_one()
96 assert_se(write_string_file(masked, in test_execute_directory_one()
99 assert_se(write_string_file(masked2, in test_execute_directory_one()
102 assert_se(write_string_file(masked2e, in test_execute_directory_one()
166 assert_se(write_string_file(name, t, WRITE_STRING_FILE_CREATE) == 0); in TEST()
169 assert_se(write_string_file(name2, t, WRITE_STRING_FILE_CREATE) == 0); in TEST()
172 assert_se(write_string_file(name3, t, WRITE_STRING_FILE_CREATE) == 0); in TEST()
[all …]
Dtest-hostname-setup.c22 assert_se(write_string_file(path, "foo", WRITE_STRING_FILE_CREATE) == 0); in TEST()
28 assert_se(write_string_file(path, "# comment\nfoo", WRITE_STRING_FILE_CREATE) == 0); in TEST()
35 assert_se(write_string_file(path, "# comment\n\n foo ", WRITE_STRING_FILE_CREATE) == 0); in TEST()
42 assert_se(write_string_file(path, "!foo/bar.com", WRITE_STRING_FILE_CREATE) == 0); in TEST()
50 assert_se(write_string_file(path, "# nothing here\n", WRITE_STRING_FILE_CREATE) == 0); in TEST()
Dtest-install-root.c34 assert_se(write_string_file(p, in TEST()
179 assert_se(write_string_file(p, in TEST()
225 assert_se(write_string_file(p, in TEST()
230 assert_se(write_string_file(p, in TEST()
235 assert_se(write_string_file(p, in TEST()
355 assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); in TEST()
390 assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); in TEST()
396 assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); in TEST()
425 assert_se(write_string_file(p, in TEST()
536 assert_se(write_string_file(p, in TEST()
[all …]
Dtest-psi-util.c25 assert_se(write_string_file(path, "herpdederp\n", WRITE_STRING_FILE_CREATE) == 0); in TEST()
29 …assert_se(write_string_file(path, "some avg10=0.22=55 avg60=0.17=8 avg300=1.11=00 total=58761459\n" in TEST()
34 …assert_se(write_string_file(path, "some avg10=0.22 avg60=0.17 avg60=0.18 avg300=1.11 total=5876145… in TEST()
38 assert_se(write_string_file(path, "some avg10=0.22 avg60=0.17 avg300=1.11 total=58761459\n" in TEST()
58 …assert_se(write_string_file(path, "some avg5=0.55 avg10=0.22 avg60=0.17 avg300=1.11 total=58761459… in TEST()
Dtest-install-file.c21 assert_se(write_string_file(a, "wups", WRITE_STRING_FILE_CREATE) >= 0); in TEST()
29 assert_se(write_string_file(b, "ttss", WRITE_STRING_FILE_CREATE) >= 0); in TEST()
58 assert_se(write_string_file(b, "ttss", WRITE_STRING_FILE_CREATE) >= 0); in TEST()
Dtest-fileio.c428 TEST(write_string_file) { in TEST() argument
436 assert_se(write_string_file(fn, "boohoo", WRITE_STRING_FILE_CREATE) == 0); in TEST()
450 assert_se(write_string_file("/a/file/which/does/not/exists/i/guess", "boohoo", 0) < 0); in TEST()
451 assert_se(write_string_file(fn, "boohoo", 0) == 0); in TEST()
467 r = write_string_file("/proc/version", buf, 0); in TEST()
469 r = write_string_file("/proc/version", buf2, 0); in TEST()
472 … assert_se(write_string_file("/proc/version", buf, WRITE_STRING_FILE_VERIFY_ON_FAILURE) == 0); in TEST()
473 … assert_se(write_string_file("/proc/version", buf2, WRITE_STRING_FILE_VERIFY_ON_FAILURE) == 0); in TEST()
475 …r = write_string_file("/proc/version", buf, WRITE_STRING_FILE_VERIFY_ON_FAILURE|WRITE_STRING_FILE_… in TEST()
477 …assert_se(write_string_file("/proc/version", buf2, WRITE_STRING_FILE_VERIFY_ON_FAILURE|WRITE_STRIN… in TEST()
[all …]
Dtest-copy.c41 assert_se(write_string_file(fn, "foo bar bar bar foo", WRITE_STRING_FILE_CREATE) == 0); in TEST()
65 assert_se(write_string_file(in_fn, text, WRITE_STRING_FILE_CREATE) == 0); in TEST()
99 …assert_se(write_string_file(f, "file", WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_MKDIR_0755) == 0… in TEST()
Dtest-bootspec.c74 …assert_se(write_string_file(j, entries[i].contents, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_MKD… in TEST_RET()
Dtest-btrfs.c54 … r = write_string_file("/xxxtest/afile", "ljsadhfljasdkfhlkjdsfha", WRITE_STRING_FILE_CREATE); in main()
/systemd-251/src/core/
Dsmack-setup.c323 …r = write_string_file("/proc/self/attr/current", SMACK_RUN_LABEL, WRITE_STRING_FILE_DISABLE_BUFFER… in mac_smack_setup()
326 …r = write_string_file("/sys/fs/smackfs/ambient", SMACK_RUN_LABEL, WRITE_STRING_FILE_DISABLE_BUFFER… in mac_smack_setup()
329 r = write_string_file("/sys/fs/smackfs/netlabel", in mac_smack_setup()
333 …r = write_string_file("/sys/fs/smackfs/netlabel", "127.0.0.1 -CIPSO", WRITE_STRING_FILE_DISABLE_BU… in mac_smack_setup()
/systemd-251/src/binfmt/
Dbinfmt.c32 return write_string_file(fn, "-1", WRITE_STRING_FILE_DISABLE_BUFFER); in delete_rule()
62 …r = write_string_file("/proc/sys/fs/binfmt_misc/register", rule, WRITE_STRING_FILE_DISABLE_BUFFER); in apply_rule()
228 … r = write_string_file("/proc/sys/fs/binfmt_misc/status", "-1", WRITE_STRING_FILE_DISABLE_BUFFER); in run()
/systemd-251/src/sleep/
Dsleep.c49 r = write_string_file("/sys/power/resume", resume_str, WRITE_STRING_FILE_DISABLE_BUFFER); in write_hibernate_location_info()
76 … r = write_string_file("/sys/power/resume_offset", offset_str, WRITE_STRING_FILE_DISABLE_BUFFER); in write_hibernate_location_info()
92 k = write_string_file("/sys/power/disk", *mode, WRITE_STRING_FILE_DISABLE_BUFFER); in write_mode()
/systemd-251/src/basic/
Dnamespace-util.c205 r = write_string_file(path, uid_map, WRITE_STRING_FILE_DISABLE_BUFFER); in userns_acquire()
210 r = write_string_file(path, gid_map, WRITE_STRING_FILE_DISABLE_BUFFER); in userns_acquire()
Dprocfs-util.c66 … r = write_string_file("/proc/sys/kernel/pid_max", buffer, WRITE_STRING_FILE_DISABLE_BUFFER); in procfs_tasks_set_limit()
72 … r = write_string_file("/proc/sys/kernel/threads-max", buffer, WRITE_STRING_FILE_DISABLE_BUFFER); in procfs_tasks_set_limit()
Dcgroup-util.c392 r = write_string_file(killfile, "1", WRITE_STRING_FILE_DISABLE_BUFFER); in cg_kill_kernel_sigkill()
798 r = write_string_file(fs, agent, WRITE_STRING_FILE_DISABLE_BUFFER); in cg_install_release_agent()
816 r = write_string_file(fs, "1", WRITE_STRING_FILE_DISABLE_BUFFER); in cg_install_release_agent()
843 r = write_string_file(fs, "0", WRITE_STRING_FILE_DISABLE_BUFFER); in cg_uninstall_release_agent()
853 r = write_string_file(fs, "", WRITE_STRING_FILE_DISABLE_BUFFER); in cg_uninstall_release_agent()
1723 return write_string_file(p, value, WRITE_STRING_FILE_DISABLE_BUFFER); in cg_set_attribute()
Dutil.c171 …r = write_string_file("/proc/sys/kernel/core_pattern", "|/bin/false", WRITE_STRING_FILE_DISABLE_BU… in disable_coredumps()
Dsysctl-util.c61 …return write_string_file(p, value, WRITE_STRING_FILE_VERIFY_ON_FAILURE | WRITE_STRING_FILE_DISABLE… in sysctl_write()
/systemd-251/src/shared/
Dbinfmt-util.c29 … r = write_string_file("/proc/sys/fs/binfmt_misc/status", "-1", WRITE_STRING_FILE_DISABLE_BUFFER); in disable_binfmt()
Dcoredump-util.c72 return write_string_file("/proc/self/coredump_filter", t, in set_coredump_filter()
Dreboot-util.c34 r = write_string_file("/run/systemd/reboot-param", parameter, in update_reboot_parameter_and_warn()
Dhostname-setup.c135 r = write_string_file("/run/systemd/default-hostname", hostname, in hostname_update_source_hint()
/systemd-251/src/oom/
Dtest-oomd-util.c265 …assert_se(write_string_file(path, "some\nwords\nacross\nmultiple\nlines", WRITE_STRING_FILE_CREATE… in test_oomd_system_context_acquire()
268 assert_se(write_string_file(path, "MemTotal: 32495256 kB trailing\n" in test_oomd_system_context_acquire()
274 assert_se(write_string_file(path, "MemTotal: 32495256 kB\n" in test_oomd_system_context_acquire()
/systemd-251/src/hibernate-resume/
Dhibernate-resume.c43 …r = write_string_file("/sys/power/resume", FORMAT_DEVNUM(st.st_rdev), WRITE_STRING_FILE_DISABLE_BU… in main()
/systemd-251/src/rfkill/
Drfkill.c155 …r = write_string_file(state_file, one_zero(event->soft), WRITE_STRING_FILE_CREATE|WRITE_STRING_FIL… in load_state()
248 …r = write_string_file(item->file, one_zero(item->state), WRITE_STRING_FILE_CREATE|WRITE_STRING_FIL… in save_state_write_one()
/systemd-251/src/run-generator/
Drun-generator.c103 r = write_string_file( in generate()

123