Searched refs:master (Results 1 - 12 of 12) sorted by relevance

/systemd/src/login/
H A Dlogind-device.h33 bool master; member in struct:Device
41 Device* device_new(Manager *m, const char *sysfs, bool master);
H A Dlogind-device.c26 Device* device_new(Manager *m, const char *sysfs, bool master) { argument
49 d->master = master;
104 /* We keep the device list sorted by the "master" flag. That is, master
107 * list to find the first non-master device when adding non-master
108 * devices. We assume there is only a few (normally 1) master devices
111 if (d->master || !s->devices)
115 if (!i->devices_next || !i->master) {
[all...]
H A Dlogind-core.c37 int manager_add_device(Manager *m, const char *sysfs, bool master, Device **_device) { argument
45 /* we support adding master-flags, but not removing them */
46 d->master = d->master || master;
48 d = device_new(m, sysfs, master);
206 bool master; local
218 master = udev_device_has_tag(d, "master-of-seat");
220 /* Ignore non-master device
[all...]
H A Dlogind.h138 int manager_add_device(Manager *m, const char *sysfs, bool master, Device **_device);
H A Dlogind-seat.c599 /* device list is ordered by "master" flag */
600 return !!s->devices && s->devices->master;
/systemd/src/shared/
H A Dptyfwd.h40 int pty_forward_new(sd_event *event, int master, PTYForwardFlags flags, PTYForward **f);
H A Dptyfwd.c45 int master; member in struct:PTYForward
172 k = write(f->master, f->in_buffer, f->in_buffer_full);
195 k = read(f->master, f->out_buffer + f->out_buffer_full, LINE_MAX - f->out_buffer_full);
198 /* Note that EIO on the master device
271 assert(fd == f->master);
322 (void) ioctl(f->master, TIOCSWINSZ, &ws);
329 int master,
361 r = fd_nonblock(master, true);
365 f->master = master;
327 pty_forward_new( sd_event *event, int master, PTYForwardFlags flags, PTYForward **ret) argument
[all...]
/systemd/src/machine/
H A Dmachine-dbus.c484 _cleanup_close_ int master = -1; local
505 master = machine_openpt(m, O_RDWR|O_NOCTTY|O_CLOEXEC);
506 if (master < 0)
507 return master;
509 r = ptsname_namespace(master, &pty_name);
517 r = sd_bus_message_append(reply, "hs", master, pty_name);
574 _cleanup_close_ int master = -1; local
597 master = machine_openpt(m, O_RDWR|O_NOCTTY|O_CLOEXEC);
598 if (master < 0)
599 return master;
644 _cleanup_close_ int master = -1, slave = -1; local
[all...]
H A Dmachinectl.c1175 static int process_forward(sd_event *event, PTYForward **forward, int master, PTYForwardFlags flags, const char *name) { argument
1181 assert(master >= 0);
1194 r = pty_forward_new(event, master, flags, forward);
1230 int master = -1, r; local
1284 r = sd_bus_message_read(reply, "hs", &master, &pty);
1288 return process_forward(event, &forward, master, PTY_FORWARD_IGNORE_VHANGUP, machine);
1297 int master = -1, r; local
1388 r = sd_bus_message_read(reply, "hs", &master, &pty);
1392 return process_forward(event, &forward, master, 0, machine);
/systemd/src/run/
H A Drun.c737 _cleanup_close_ int master = -1; local
746 master = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC|O_NDELAY);
747 if (master < 0)
750 r = ptsname_malloc(master, &pty_path);
754 if (unlockpt(master) < 0)
778 r = sd_bus_message_read(reply, "hs", &master, &s);
784 master = fcntl(master, F_DUPFD_CLOEXEC, 3);
785 if (master < 0)
786 return log_error_errno(errno, "Failed to duplicate master f
[all...]
/systemd/src/basic/
H A Dterminal-util.c1057 int master; local
1065 master = posix_openpt(flags|O_NOCTTY|O_CLOEXEC);
1066 if (master < 0)
1069 if (unlockpt(master) < 0)
1072 if (send_one_fd(pair[1], master, 0) < 0)
1108 int master; local
1116 master = open_terminal(name, mode|O_NOCTTY|O_CLOEXEC);
1117 if (master < 0)
1120 if (send_one_fd(pair[1], master, 0) < 0)
/systemd/src/nspawn/
H A Dnspawn.c3084 _cleanup_close_ int master = -1, image_fd = -1; local
3277 master = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC|O_NDELAY);
3278 if (master < 0) {
3283 r = ptsname_malloc(master, &console);
3289 if (unlockpt(master) < 0) {
3379 master = safe_close(master);
3590 r = pty_forward_new(event, master, PTY_FORWARD_IGNORE_VHANGUP | (interactive ? 0 : PTY_FORWARD_READ_ONLY), &forward);
3661 if (master >= 0)
3662 (void) copy_bytes(master, STDOUT_FILEN
[all...]

Completed in 48 milliseconds