Home
last modified time | relevance | path

Searched refs:copy_fd (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/shared/ !
Ddata-fd-util.c161 _cleanup_close_ int copy_fd = -1, tmp_fd = -1; in copy_data_fd() local
192 copy_fd = memfd_new("data-fd"); in copy_data_fd()
193 if (copy_fd >= 0) { in copy_data_fd()
196 r = copy_bytes(fd, copy_fd, DATA_FD_MEMORY_LIMIT, 0); in copy_data_fd()
200 f = lseek(copy_fd, 0, SEEK_SET); in copy_data_fd()
206 r = memfd_set_sealed(copy_fd); in copy_data_fd()
210 return TAKE_FD(copy_fd); in copy_data_fd()
256 copy_fd = TAKE_FD(pipefds[0]); in copy_data_fd()
270 if (copy_fd >= 0) { in copy_data_fd()
274 r = copy_bytes(copy_fd, tmp_fd, UINT64_MAX, 0); in copy_data_fd()
[all …]
/systemd-251/src/basic/ !
Dfd-util.c615copy_fd[3] = { -1, -1, -1 }; /* This contains all fds we duplicate here temporarily, and hence nee… in rearrange_stdio() local
666copy_fd[i] = fcntl(fd[i], F_DUPFD_CLOEXEC, 3); /* Duplicate this with O_CLOEXEC set */ in rearrange_stdio()
667 if (copy_fd[i] < 0) { in rearrange_stdio()
672 fd[i] = copy_fd[i]; in rearrange_stdio()
711 safe_close(copy_fd[i]); in rearrange_stdio()
/systemd-251/src/libsystemd/sd-bus/ !
Dbus-message.c2649 _cleanup_close_ int copy_fd = -1; in sd_bus_message_append_array_memfd() local
2667 copy_fd = fcntl(memfd, F_DUPFD_CLOEXEC, 3); in sd_bus_message_append_array_memfd()
2668 if (copy_fd < 0) in sd_bus_message_append_array_memfd()
2669 return copy_fd; in sd_bus_message_append_array_memfd()
2707 part->memfd = copy_fd; in sd_bus_message_append_array_memfd()
2711 copy_fd = -1; in sd_bus_message_append_array_memfd()
2725 _cleanup_close_ int copy_fd = -1; in sd_bus_message_append_string_memfd() local
2742 copy_fd = fcntl(memfd, FD_CLOEXEC, 3); in sd_bus_message_append_string_memfd()
2743 if (copy_fd < 0) in sd_bus_message_append_string_memfd()
2744 return copy_fd; in sd_bus_message_append_string_memfd()
[all …]