Home
last modified time | relevance | path

Searched refs:output_fd (Results 1 – 10 of 10) sorted by relevance

/systemd-251/src/import/
Dimport-raw.c45 int output_fd; member
79 safe_close(i->output_fd); in raw_import_unref()
110 .output_fd = -1, in raw_import_new()
171 r = qcow2_detect(i->output_fd); in raw_import_maybe_convert_qcow2()
192 r = qcow2_convert(i->output_fd, converted_fd); in raw_import_maybe_convert_qcow2()
198 CLOSE_AND_REPLACE(i->output_fd, converted_fd); in raw_import_maybe_convert_qcow2()
207 assert(i->output_fd >= 0); in raw_import_finish()
213 if (fsync(i->output_fd) < 0) in raw_import_finish()
228 if (ftruncate(i->output_fd, i->written_uncompressed) < 0) in raw_import_finish()
237 (void) copy_times(i->input_fd, i->output_fd, COPY_CRTIME); in raw_import_finish()
[all …]
Dexport-raw.c38 int output_fd; member
94 .output_fd = -1, in raw_export_new()
148 r = btrfs_reflink(e->input_fd, e->output_fd); in raw_export_process()
159 l = sendfile(e->output_fd, e->input_fd, NULL, COPY_BUFFER_SIZE); in raw_export_process()
205 l = write(e->output_fd, e->buffer, e->buffer_size); in raw_export_process()
225 (void) copy_times(e->input_fd, e->output_fd, COPY_CRTIME); in raw_export_process()
226 (void) copy_xattr(e->input_fd, e->output_fd, 0); in raw_export_process()
286 if (e->output_fd >= 0) in raw_export_start()
329 e->output_fd = fd; in raw_export_start()
Dexport-tar.c27 int output_fd; member
94 .output_fd = -1, in tar_export_new()
168 l = splice(e->tar_fd, NULL, e->output_fd, NULL, COPY_BUFFER_SIZE, 0); in tar_export_process()
214 l = write(e->output_fd, e->buffer, e->buffer_size); in tar_export_process()
263 if (e->output_fd >= 0) in tar_export_start()
325 e->output_fd = fd; in tar_export_start()
/systemd-251/src/shared/
Dptyfwd.c32 int output_fd; member
92 if (f->output_fd >= 0) { in pty_forward_disconnect()
94 (void) tcsetattr(f->output_fd, TCSANOW, &f->saved_stdout_attr); in pty_forward_disconnect()
97 (void) fd_nonblock(f->output_fd, false); in pty_forward_disconnect()
99 f->output_fd = safe_close(f->output_fd); in pty_forward_disconnect()
295 k = write(f->output_fd, f->out_buffer, f->out_buffer_full); in shovel()
380 assert(fd == f->output_fd); in on_stdout_event()
397 if (ioctl(f->output_fd, TIOCGWINSZ, &ws) >= 0) in on_sigwinch_event()
421 .output_fd = -1, in pty_forward_new()
433 f->output_fd = STDOUT_FILENO; in pty_forward_new()
[all …]
Dexec-util.c87 int output_fd, in do_execute() argument
170 r = callbacks[STDOUT_COLLECT](output_fd, callback_args[STDOUT_COLLECT]); in do_execute()
/systemd-251/src/libsystemd/sd-bus/
Dbus-socket.c137 …k = writev(b->output_fd, b->auth_iovec + b->auth_index, ELEMENTSOF(b->auth_iovec) - b->auth_index); in bus_socket_write_auth()
144 k = sendmsg(b->output_fd, &mh, MSG_DONTWAIT|MSG_NOSIGNAL); in bus_socket_write_auth()
147 …k = writev(b->output_fd, b->auth_iovec + b->auth_index, ELEMENTSOF(b->auth_iovec) - b->auth_index); in bus_socket_write_auth()
612 (void) fd_inc_sndbuf(b->output_fd, SNDBUF_SIZE); in bus_socket_setup()
691 if (b->output_fd != b->input_fd) in bus_socket_start_auth()
692 if (sd_is_socket(b->output_fd, AF_UNIX, 0, 0) <= 0) in bus_socket_start_auth()
887 assert(b->output_fd < 0); in bus_socket_connect()
903 b->output_fd = b->input_fd; in bus_socket_connect()
964 assert(b->output_fd < 0); in bus_socket_exec()
1008 b->output_fd = b->input_fd = fd_move_above_stdio(s[0]); in bus_socket_exec()
[all …]
Dbus-container.c24 assert(b->output_fd < 0); in bus_container_connect_socket()
48 b->output_fd = b->input_fd; in bus_container_connect_socket()
Dsd-bus.c134 if (b->input_fd != b->output_fd) in bus_close_io_fds()
135 safe_close(b->output_fd); in bus_close_io_fds()
136 b->output_fd = b->input_fd = safe_close(b->input_fd); in bus_close_io_fds()
243 .output_fd = -1, in sd_bus_new()
274 _public_ int sd_bus_set_fd(sd_bus *bus, int input_fd, int output_fd) { in sd_bus_set_fd() argument
279 assert_return(output_fd >= 0, -EBADF); in sd_bus_set_fd()
283 bus->output_fd = output_fd; in sd_bus_set_fd()
1152 assert(b->output_fd >= 0); in bus_start_fd()
1157 (void) fd_get_path(b->output_fd, &po); in bus_start_fd()
1160 b->input_fd, b->output_fd, in bus_start_fd()
[all …]
Dbus-internal.h187 int input_fd, output_fd; member
/systemd-251/src/systemd/
Dsd-bus.h147 int sd_bus_set_fd(sd_bus *bus, int input_fd, int output_fd);