Home
last modified time | relevance | path

Searched refs:xsprintf (Results 1 – 25 of 87) sorted by relevance

1234

/systemd-251/src/test/
Dtest-signal-util.c64 xsprintf(buf, "RTMIN+%d", SIGRTMAX-SIGRTMIN); in TEST()
67 xsprintf(buf, "RTMIN+%d", INT_MAX); in TEST()
70 xsprintf(buf, "RTMAX-%d", SIGRTMAX-SIGRTMIN); in TEST()
73 xsprintf(buf, "RTMAX-%d", INT_MAX); in TEST()
Dtest-ip-protocol-list.c16 xsprintf(str, "%i", i); in test_int()
25 xsprintf(str, "%i", i); in test_int_fail()
/systemd-251/src/libsystemd/sd-network/
Dsd-network.c117 xsprintf(path, "/run/systemd/netif/links/%i", ifindex); in network_link_get_string()
141 xsprintf(path, "/run/systemd/netif/links/%i", ifindex); in network_link_get_strv()
328 xsprintf(path, "/run/systemd/netif/links/%i", ifindex); in sd_network_link_get_dns_default_route()
350 xsprintf(path, "/run/systemd/netif/links/%i", ifindex); in network_link_get_ifindexes()
396 xsprintf(path, "/run/systemd/netif/links/%i", ifindex); in sd_network_link_get_stat()
/systemd-251/src/login/
Duser-runtime-dir.c78 xsprintf(options, in user_mkdir_runtime_path()
160 xsprintf(runtime_path, "/run/user/" UID_FMT, uid); in do_mount()
183 xsprintf(runtime_path, "/run/user/" UID_FMT, uid); in do_umount()
/systemd-251/src/core/
Dselinux-access.c55 xsprintf(login_uid_buf, UID_FMT, login_uid); in audit_callback()
57 xsprintf(uid_buf, UID_FMT, uid); in audit_callback()
59 xsprintf(gid_buf, GID_FMT, gid); in audit_callback()
Dcgroup.c959 xsprintf(buf, "%" PRIu64 "\n", weight); in cgroup_apply_unified_cpu_weight()
968 xsprintf(buf, USEC_FMT " " USEC_FMT "\n", in cgroup_apply_unified_cpu_quota()
971 xsprintf(buf, "max " USEC_FMT "\n", period); in cgroup_apply_unified_cpu_quota()
978 xsprintf(buf, "%" PRIu64 "\n", shares); in cgroup_apply_legacy_cpu_shares()
987 xsprintf(buf, USEC_FMT "\n", period); in cgroup_apply_legacy_cpu_quota()
991 xsprintf(buf, USEC_FMT "\n", MAX(quota * period / USEC_PER_SEC, USEC_PER_MSEC)); in cgroup_apply_legacy_cpu_quota()
1087xsprintf(buf, DEVNUM_FORMAT_STR " %" PRIu64 "\n", DEVNUM_FORMAT_VAL(dev), bfq_weight); in set_bfq_weight()
1089 xsprintf(buf, "%" PRIu64 "\n", bfq_weight); in set_bfq_weight()
1120 xsprintf(buf, DEVNUM_FORMAT_STR " %" PRIu64 "\n", DEVNUM_FORMAT_VAL(dev), io_weight); in cgroup_apply_io_device_weight()
1141 xsprintf(buf, DEVNUM_FORMAT_STR " %" PRIu64 "\n", DEVNUM_FORMAT_VAL(dev), blkio_weight); in cgroup_apply_blkio_device_weight()
[all …]
Ddynamic-user.c153 xsprintf(path1, "/run/systemd/dynamic-uid/direct:" UID_FMT, uid); in make_uid_symlinks()
263 xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, candidate); in pick_uid()
359 xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, uid); in unlink_uid_lock()
710 xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, uid); in dynamic_user_lookup_uid()
Dbpf-devices.c356 xsprintf(buf, "%c %u:%u %s", type, *maj, *min, acc); in allow_list_device_pattern()
358 xsprintf(buf, "%c %u:* %s", type, *maj, acc); in allow_list_device_pattern()
360 xsprintf(buf, "%c *:* %s", type, acc); in allow_list_device_pattern()
/systemd-251/src/journal/
Djournald-console.c59 xsprintf(tbuf, "[%5"PRI_TIME".%06"PRI_NSEC"] ", in server_forward_console()
73 xsprintf(header_pid, "["PID_FMT"]: ", ucred->pid); in server_forward_console()
Djournald-syslog.c141 xsprintf(header_priority, "<%i>", priority); in server_forward_syslog()
159 xsprintf(header_pid, "["PID_FMT"]: ", ucred->pid); in server_forward_syslog()
400 xsprintf(syslog_priority, "PRIORITY=%i", priority & LOG_PRIMASK); in server_process_syslog_message()
404 xsprintf(syslog_facility, "SYSLOG_FACILITY=%i", LOG_FAC(priority)); in server_process_syslog_message()
/systemd-251/src/basic/
Dnamespace-util.c204 xsprintf(path, "/proc/" PID_FMT "/uid_map", pid); in userns_acquire()
209 xsprintf(path, "/proc/" PID_FMT "/gid_map", pid); in userns_acquire()
Dsignal-util.c167 xsprintf(buf, "RTMIN+%d", signo - SIGRTMIN); in signal_to_string()
169 xsprintf(buf, "%d", signo); in signal_to_string()
Dlog.c394 xsprintf(prefix, "<%i>", level); in write_to_console()
405 xsprintf(tid_string, "(" PID_FMT ") ", gettid()); in write_to_console()
468 xsprintf(header_priority, "<%i>", level); in write_to_syslog()
477 xsprintf(header_pid, "["PID_FMT"]: ", getpid_cached()); in write_to_syslog()
538 xsprintf(header_priority, "<%i>", level); in write_to_kmsg()
539 xsprintf(header_pid, "["PID_FMT"]: ", getpid_cached()); in write_to_kmsg()
Dmkdir.c71 xsprintf(u, UID_FMT, uid); in mkdir_safe_internal()
73 xsprintf(g, GID_FMT, gid); in mkdir_safe_internal()
/systemd-251/src/udev/
Dudev-builtin-input_id.c64 xsprintf(width, "%d", abs_size_mm(&xabsinfo)); in extract_info()
65 xsprintf(height, "%d", abs_size_mm(&yabsinfo)); in extract_info()
90 xsprintf(text, "%s", v); in get_cap_mask()
Dudev-builtin-net_id.c530 xsprintf(names->vio_slot, "v%u", slotid); in names_vio()
597 xsprintf(names->platform_path, "a%s%xi%u", vendor, model, instance); in names_platform()
752 xsprintf(names->bcma_core, "b%u", core); in names_bcma()
934 xsprintf(names->xen_slot, "X%u", id); in names_xen()
955 xsprintf(str, "OUI:%02X%02X%02X%02X%02X%02X", in ieee_oui()
1028xsprintf(str, "%sx%s", prefix, HW_ADDR_TO_STR_FULL(&info.hw_addr, HW_ADDR_TO_STRING_NO_COLON)); in builtin_net_id()
/systemd-251/src/libsystemd/sd-device/
Ddevice-private.c639 xsprintf(path_wd, "/run/udev/watch/%d", wd); in device_get_watch_handle()
661 xsprintf(path_wd, "/run/udev/watch/%d", wd); in device_remove_watch_handle()
703 xsprintf(path_wd, "/run/udev/watch/%d", wd); in device_set_watch_handle()
737 xsprintf(path_wd, "%d", wd); in device_new_from_watch_handle_at()
740 xsprintf(path_wd, "/run/udev/watch/%d", wd); in device_new_from_watch_handle_at()
/systemd-251/src/shared/
Defi-api.c240 xsprintf(variable, EFI_GLOBAL_VARIABLE_STR("Boot%04X"), id); in efi_get_boot_option()
415 xsprintf(variable, EFI_GLOBAL_VARIABLE_STR("Boot%04X"), id); in efi_add_boot_option()
425 xsprintf(variable, EFI_GLOBAL_VARIABLE_STR("Boot%04X"), id); in efi_remove_boot_option()
Duserdb-dropin.c148 xsprintf(buf, UID_FMT ".user", uid); in dropin_user_record_by_uid()
292 xsprintf(buf, GID_FMT ".group", gid); in dropin_group_record_by_gid()
Dspawn-polkit-agent.c44 xsprintf(notify_fd, "%i", pipe_fd[1]); in polkit_agent_open()
Dblockdev-util.h13 xsprintf(buf, "/sys/dev/block/%u:%u%s", major(devno), minor(devno), strempty(suffix))
/systemd-251/coccinelle/
Dxsprintf.cocci8 + xsprintf(e, fmt, vaargs);
/systemd-251/man/
Dhwdb-usb-device.c14 xsprintf(match, "usb:v%04Xp%04X", vid, pid); in print_usb_properties()
/systemd-251/src/fsck/
Dfsck.c364 xsprintf(dash_c, "-C%i", progress_socket); in run()
367 xsprintf(dash_c, "-C%i", progress_pipe[1]); in run()
/systemd-251/src/libsystemd/sd-journal/
Djournal-send.c110 xsprintf(p, "PRIORITY=%i", priority & LOG_PRIMASK); in sd_journal_printv()
387 xsprintf(error, "ERRNO=%i", _saved_errno_); in fill_iovec_perror_and_send()
486 xsprintf(p, "PRIORITY=%i", priority & LOG_PRIMASK); in sd_journal_printv_with_location()

1234