/systemd-251/src/libsystemd/sd-journal/ |
D | journal-send.c | 87 _public_ int sd_journal_print(int priority, const char *format, ...) { in sd_journal_print() argument 91 va_start(ap, format); in sd_journal_print() 92 r = sd_journal_printv(priority, format, ap); in sd_journal_print() 98 _public_ int sd_journal_printv(int priority, const char *format, va_list ap) { in sd_journal_printv() argument 108 assert_return(format, -EINVAL); in sd_journal_printv() 113 len = vsnprintf(buffer + 8, LINE_MAX, format, aq); in sd_journal_printv() 123 assert_se(vsnprintf(buffer + 8, len + 1, format, ap) == len); in sd_journal_printv() 139 _printf_(1, 0) static int fill_iovec_sprintf(const char *format, va_list ap, int extra, struct iove… in fill_iovec_sprintf() argument 157 while (format) { in fill_iovec_sprintf() 174 if (vasprintf(&buffer, format, aq) < 0) { in fill_iovec_sprintf() [all …]
|
/systemd-251/test/ |
D | test-systemd-tmpfiles.py | 34 print('Running {} on {!r}'.format(' '.join(exe_with_args + args), line)) 82 spec = line.format(arg) 85 print('expect: {!r}\nactual: {!r}'.format(expected, content)) 92 test_content('f {} - - - - %m', '{}'.format(id128.get_machine().hex), user=user) 95 print('/etc/machine-id: {!r}'.format(open('/etc/machine-id').read())) 96 print('/proc/cmdline: {!r}'.format(open('/proc/cmdline').read())) 98 test_content('f {} - - - - %b', '{}'.format(id128.get_boot().hex), user=user) 99 test_content('f {} - - - - %H', '{}'.format(socket.gethostname()), user=user) 100 test_content('f {} - - - - %v', '{}'.format(os.uname().release), user=user) 101 test_content('f {} - - - - %U', '{}'.format(os.getuid() if user else 0), user=user) [all …]
|
D | test-exec-deserialization.py | 29 self.unitfile_path = '/run/systemd/system/{0}'.format(self.unit) 38 '''.format(self.output_file) 46 '''.format(self.output_file) 55 '''.format(self.output_file) 64 '''.format(self.output_file) 74 '''.format(self.output_file) 82 '''.format(self.output_file) 172 unitfile_path = "/run/systemd/system/{}".format(unit)
|
D | networkd-test.py | 130 dropin_dir = os.path.join(NETWORK_UNITDIR, "{}.d".format(unit_name)) 131 dropin_path = os.path.join(dropin_dir, "{}.conf".format(dropin_name)) 167 ['--interface={}'.format(iface) for iface in kwargs]) 179 self.fail("Link {} expects state {}, found {}".format(iface, expected, actual)) 184 self.fail("Missing links in status output: {}".format(interfaces)) 338 print('---- {} ----'.format(unit)) 375 '''.format(iface=self.iface, dhcp_mode=dhcp_mode, extra_opts=extra_opts)) 420 … self.assertRegex(out, (r'{}\s+ether\s+[a-z-]+\s+unmanaged'.format(self.if_router)).encode()) 421 … self.assertRegex(out, (r'{}\s+ether\s+routable\s+configured'.format(self.iface)).encode()) 438 print('\n---- {} ----\n{}'.format(self.config, f.read())) [all …]
|
D | sysv-generator-test.py | 103 keys.setdefault('Short-Description', 'test {} service'.format(name_without_sh)) 104 … keys.setdefault('Description', 'long description for test {} service'.format(name_without_sh)) 110 f.write('#{:>20} {}\n'.format(k + ':', v)) 116 d = os.path.join(self.rcnd_dir, 'rc{}.d'.format(runlevel)) 135 link = os.path.join(self.out_dir, '{}.target.wants'.format(target), unit) 143 '{} unexpectedly exists'.format(link)) 177 '{} start'.format(init_script)) 179 '{} stop'.format(init_script)) 265 os.symlink('../init.d/' + name, os.path.join(d, 'S{:>2}{}'.format(prio, name))) 340 '{} start'.format(init_script)) [all …]
|
/systemd-251/src/basic/ |
D | log.c | 746 const char *format, in log_internalv() argument 758 (void) vsnprintf(buffer, sizeof buffer, format, ap); in log_internalv() 769 const char *format, ...) { in log_internal() argument 774 va_start(ap, format); in log_internal() 775 r = log_internalv(level, error, file, line, func, format, ap); in log_internal() 791 const char *format, in log_object_internalv() argument 813 (void) vsnprintf(b, LINE_MAX, format, ap); in log_object_internalv() 829 const char *format, ...) { in log_object_internal() argument 834 va_start(ap, format); in log_object_internal() 835 …ct_internalv(level, error, file, line, func, object_field, object, extra_field, extra, format, ap); in log_object_internal() [all …]
|
D | env-util.h | 28 char *replace_env_n(const char *format, size_t n, char **env, unsigned flags); 31 static inline char *replace_env(const char *format, char **env, unsigned flags) { in replace_env() argument 32 return replace_env_n(format, strlen(format), env, flags); in replace_env()
|
D | log.h | 106 const char *format, ...) _printf_(6,7); 114 const char *format, 127 const char *format, 140 const char *format, ...) _printf_(10,11); 148 const char *format, ...) _printf_(6,0) _sentinel_; 162 const char *format, 339 const char *format, ...) _printf_(9, 10);
|
D | sysctl-util.h | 14 int sysctl_writef(const char *property, const char *format, ...) _printf_(2, 3); 22 #define DEFINE_SYSCTL_WRITE_IP_PROPERTY(name, type, format) \ argument 25 xsprintf(buf, format, value); \
|
/systemd-251/src/core/ |
D | show-status.c | 40 int status_vprintf(const char *status, ShowStatusFlags flags, const char *format, va_list ap) { in status_vprintf() argument 48 assert(format); in status_vprintf() 53 if (vasprintf(&s, format, ap) < 0) in status_vprintf() 110 int status_printf(const char *status, ShowStatusFlags flags, const char *format, ...) { in status_printf() argument 114 assert(format); in status_printf() 116 va_start(ap, format); in status_printf() 117 r = status_vprintf(status, flags, format, ap); in status_printf()
|
D | meson.build | 172 libcore_name = 'systemd-core-@0@'.format(shared_lib_tag) 232 meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir)) 233 meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir)) 234 meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir)) 235 meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir)) 238 meson.add_install_script('sh', '-c', mkdir_p.format(pkgsysconfdir / 'system')) 239 meson.add_install_script('sh', '-c', mkdir_p.format(pkgsysconfdir / 'user')) 240 meson.add_install_script('sh', '-c', mkdir_p.format(sysconfdir / 'xdg/systemd'))
|
D | unit-printf.c | 165 int unit_name_printf(const Unit *u, const char* format, char **ret) { in unit_name_printf() argument 191 assert(format); in unit_name_printf() 194 return specifier_printf(format, UNIT_NAME_MAX, table, NULL, u, ret); in unit_name_printf() 197 int unit_full_printf_full(const Unit *u, const char *format, size_t max_length, char **ret) { in unit_full_printf_full() argument 223 assert(format); in unit_full_printf_full() 262 return specifier_printf(format, max_length, table, NULL, u, ret); in unit_full_printf_full()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-error.c | 240 int bus_error_setfv(sd_bus_error *e, const char *name, const char *format, va_list ap) { in bus_error_setfv() argument 255 if (format) { in bus_error_setfv() 261 if (vasprintf(&mesg, format, ap) >= 0) in bus_error_setfv() 273 _public_ int sd_bus_error_setf(sd_bus_error *e, const char *name, const char *format, ...) { in sd_bus_error_setf() argument 276 if (format) { in sd_bus_error_setf() 279 va_start(ap, format); in sd_bus_error_setf() 280 r = bus_error_setfv(e, name, format, ap); in sd_bus_error_setf() 502 _public_ int sd_bus_error_set_errnofv(sd_bus_error *e, int error, const char *format, va_list ap) { in sd_bus_error_set_errnofv() argument 533 if (format) { in sd_bus_error_set_errnofv() 539 if (vasprintf(&m, format, ap) < 0) in sd_bus_error_set_errnofv() [all …]
|
D | bus-convenience.c | 256 const char *format, in sd_bus_reply_method_errorfv() argument 273 bus_error_setfv(&error, name, format, ap); in sd_bus_reply_method_errorfv() 281 const char *format, in sd_bus_reply_method_errorf() argument 287 va_start(ap, format); in sd_bus_reply_method_errorf() 288 r = sd_bus_reply_method_errorfv(call, name, format, ap); in sd_bus_reply_method_errorf() 324 const char *format, in sd_bus_reply_method_errnofv() argument 341 sd_bus_error_set_errnofv(&berror, error, format, ap); in sd_bus_reply_method_errnofv() 349 const char *format, in sd_bus_reply_method_errnof() argument 355 va_start(ap, format); in sd_bus_reply_method_errnof() 356 r = sd_bus_reply_method_errnofv(call, error, format, ap); in sd_bus_reply_method_errnof()
|
/systemd-251/ |
D | .clang-format | 1 # This configuration file can be used to auto-format the code base. 7 # is to use the git-clang-format script (usually installed with clang-format). 11 # 2. Run `git clang-format`. 17 # 2. Run `git clang-format HEAD~` - Refer the commit *before* your changes here. 21 # To run clang-format on all sourcefiles, use the following line: 22 # $ git ls-files 'src/*.[ch]' 'src/*.cc' | xargs clang-format -i -style=file
|
/systemd-251/src/systemd/ |
D | sd-journal.h | 35 int sd_journal_print(int priority, const char *format, ...) _sd_printf_(2, 3); 36 int sd_journal_printv(int priority, const char *format, va_list ap) _sd_printf_(2, 0); 37 int sd_journal_send(const char *format, ...) _sd_printf_(1, 0) _sd_sentinel_; 42 …ority, const char *file, const char *line, const char *func, const char *format, ...) _sd_printf_(… 43 …ority, const char *file, const char *line, const char *func, const char *format, va_list ap) _sd_p… 44 …cation(const char *file, const char *line, const char *func, const char *format, ...) _sd_printf_(… 52 …(priority, format, ap) sd_journal_printv_with_location(priority, "CODE_FILE=" __FILE__, "CODE_LINE… argument
|
/systemd-251/tools/ |
D | catalog-report.py | 46 print('{}:{} {}'.format(x.get('CODE_FILE', '???'), 49 print(' {}'.format(x.get('MESSAGE', 'no message!'))) 53 print(' {}={}'.format(k, v)) 72 print('{} {.hex}: no catalog entry'.format(name, mid)) 82 print('{} {.hex}: no field {}'.format(name, mid, field))
|
/systemd-251/src/boot/efi/ |
D | meson.build | 32 '@0@/@1@/efibind.h'.format(efi_incdir, efi_arch[1]), 63 warning('Not using @0@ as efi-ld, falling back to bfd'.format(efi_ld)) 99 [efi_libdir / 'gnuefi' / 'elf_@0@_efi.lds'.format(efi_arch[1]), 100 efi_libdir / 'gnuefi' / 'crt0-efi-@0@.o'.format(efi_arch[1])], 101 [efi_libdir / 'elf_@0@_efi.lds'.format(efi_arch[1]), 102 efi_libdir / 'crt0-efi-@0@.o'.format(efi_arch[1])]] 127 efi_conf.set(ctype.underscorify().to_upper(), 'EFI_TEXT_ATTR(@0@, @1@)'.format( 147 …os-release ]; then . /etc/os-release; else . /usr/lib/os-release; fi; echo $@0@'.format(sbatvar[1]) 151 … error('Required @0@ option not set and autodetection failed'.format(sbatvar[0])) 243 message('Using "@0@" from c_args for EFI compiler'.format(arg)) [all …]
|
/systemd-251/docs/ |
D | PORTABILITY_AND_STABILITY.md | 14 …onfiguration file format**. Unit files written now will stay compatible with future versions of sy… 38 …cted to convert over time their individual configurations to the systemd format, or they will need… 99 | [Unit file format](https://www.freedesktop.org/software/systemd/man/systemd.unit.html) | File for… 100 …d.network.html) & [Netdev file format](https://www.freedesktop.org/software/systemd/man/systemd.ne… 101 | [Link file format](https://www.freedesktop.org/software/systemd/man/systemd.link.html) | File for… 102 | [Journal File Format](JOURNAL_FILE_FORMAT.md) | File format | yes | yes | - | maybe | - | no | 103 | [Journal Export Format](JOURNAL_EXPORT_FORMATS.md#journal-export-format) | File format | yes | ye… 104 | [Journal JSON Format](JOURNAL_EXPORT_FORMATS.md#journal-json-format) | File format | yes | yes | … 110 | [tmpfiles.d](https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html) | File format | ye… 111 | [sysusers.d](https://www.freedesktop.org/software/systemd/man/sysusers.d.html) | File format | ye… [all …]
|
/systemd-251/man/ |
D | meson.build | 21 '--stringparam', 'systemd.version', '@0@'.format(meson.project_version()), 23 '@0@:@1@'.format(meson.current_build_dir(), meson.current_source_dir())] 84 cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst) 102 message('Skipping @0@.@1@ because @2@ is false'.format(stem, section, condition)) 157 cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst) 238 '@0@/man/*.xml'.format(project_source_root), 239 '@0@/rules/meson.build'.format(meson.current_source_dir())],
|
/systemd-251/src/test/ |
D | generate-sym-test.py | 8 print('#include "{}"'.format(header.split('/')[-1])) 21 print(' &{},'.format(s)) 23 print(' {},'.format(s))
|
/systemd-251/src/journal-remote/ |
D | log-generator.py | 51 data = '{:0{}}'.format(counter, OPTIONS.data_size) 54 entry = template.format(m=0x198603b12d7 + i, 72 print('Wrote {} bytes'.format(bytes), file=sys.stderr)
|
/systemd-251/src/libsystemd/sd-daemon/ |
D | sd-daemon.c | 582 _public_ int sd_pid_notifyf(pid_t pid, int unset_environment, const char *format, ...) { in sd_pid_notifyf() argument 586 if (format) { in sd_pid_notifyf() 589 va_start(ap, format); in sd_pid_notifyf() 590 r = vasprintf(&p, format, ap); in sd_pid_notifyf() 600 _public_ int sd_notifyf(int unset_environment, const char *format, ...) { in sd_notifyf() argument 604 if (format) { in sd_notifyf() 607 va_start(ap, format); in sd_notifyf() 608 r = vasprintf(&p, format, ap); in sd_notifyf()
|
/systemd-251/src/shared/ |
D | serialize.c | 55 int serialize_item_format(FILE *f, const char *key, const char *format, ...) { in serialize_item_format() argument 62 assert(format); in serialize_item_format() 64 va_start(ap, format); in serialize_item_format() 65 k = vsnprintf(buf, sizeof(buf), format, ap); in serialize_item_format()
|
/systemd-251/test/fuzz/ |
D | meson.build | 10 …itize=address,undefined --optimization=@0@ @1@ -Dc_args=@2@ -Dcpp_args=@2@ -Dskip-deps=@3@'.format( 23 git, '--git-dir=@0@/.git'.format(project_source_root), 27 …out = run_command(sh, '-c', 'cd "@0@"; echo test/fuzz/*/*'.format(project_source_root), check: tru…
|