Home
last modified time | relevance | path

Searched refs:slave (Results 1 – 25 of 43) sorted by relevance

12

/openbsd-src/regress/sys/kern/kqueue/
H A Dkqueue-pty.c63 int fd, kq, massa, slave; in pty_rdrw() local
72 if (openpty(&massa, &slave, NULL, &tt, NULL) < 0) in pty_rdrw()
76 if (fcntl(slave, F_SETFL, O_NONBLOCK) < 0) in pty_rdrw()
84 EV_SET(&ev[2], slave, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, NULL); in pty_rdrw()
85 EV_SET(&ev[3], slave, EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, NULL); in pty_rdrw()
91 ASSX(pty_check(kq, ev, 4, -massa, -slave, massa, slave) == 0); in pty_rdrw()
96 ASSX(pty_check(kq, ev, 4, -massa, slave, massa, slave) == 0); in pty_rdrw()
98 read(slave, buf, sizeof(buf)); in pty_rdrw()
100 ASSX(pty_check(kq, ev, 4, -massa, -slave, massa, slave) == 0); in pty_rdrw()
105 ASSX(pty_check(kq, ev, 4, -massa, slave, -massa, slave) == 0); in pty_rdrw()
[all …]
/openbsd-src/lib/libutil/
H A Dpty.c72 int master, slave; in fdopenpty() local
83 slave = ptm.sfd; in fdopenpty()
91 *aslave = slave; in fdopenpty()
93 (void) tcsetattr(slave, TCSAFLUSH, termp); in fdopenpty()
95 (void) ioctl(slave, TIOCSWINSZ, winp); in fdopenpty()
120 int master, slave; in fdforkpty() local
123 if (fdopenpty(ptmfd, &master, &slave, name, termp, winp) == -1) in fdforkpty()
128 (void) close(slave); in fdforkpty()
135 login_tty(slave); in fdforkpty()
142 (void) close(slave); in fdforkpty()
/openbsd-src/lib/libc/stdlib/
H A Dposix_pty.c109 static char slave[sizeof(((struct ptmget *)NULL)->sn)]; in ptsname() local
115 strlcpy(slave, _PATH_DEV, sizeof(slave)); in ptsname()
116 strlcat(slave, master, sizeof(slave)); in ptsname()
117 slave[sizeof(_PATH_DEV) - 1] = 't'; in ptsname()
119 return slave; in ptsname()
/openbsd-src/regress/sys/kern/pledge/generic/
H A Dpty.c15 int master, slave; in pty_open() local
31 slave = open(ptsname(master), O_RDWR); in pty_open()
32 if (slave == -1) { in pty_open()
38 pty->slave = slave; in pty_open()
45 close(pty->slave); in pty_close()
71 if (ioctl(pty->slave, TIOCSCTTY, NULL) == -1) { in pty_attach()
H A Dpty.h9 int slave; member
/openbsd-src/gnu/lib/libreadline/examples/
H A Drlfe.c233 int slave = -1; in get_slave_pty() local
261 slave = open(name, O_RDWR); in get_slave_pty()
262 return (slave); in get_slave_pty()
501 int slave; /* file descriptor for slave pty */ in main() local
507 if ((slave = get_slave_pty(name)) < 0) in main()
529 if (ioctl(slave, TIOCSCTTY, NULL)) in main()
534 if ((slave = get_slave_pty(name)) < 0) in main()
543 dup2(slave, STDIN_FILENO); in main()
544 dup2(slave, STDOUT_FILENO); in main()
545 dup2(slave, STDERR_FILENO); in main()
[all …]
/openbsd-src/usr.sbin/ypserv/ypinit/
H A Dypinit.sh79 a slave YP server. When building a slave YP server, `master_server'
264 echo "${HOST} has been set up as a YP slave server with errors. " 1>&2
267 echo "${HOST} has been set up as a YP slave server without any errors. "
284 echo "Please continue to add any slave servers, one per line. When you are"
/openbsd-src/usr.bin/script/
H A Dscript.c78 int master, slave; variable
140 if (openpty(&master, &slave, NULL, &tt, &win) == -1) in main()
231 ioctl(slave, TIOCSWINSZ, &win); in handlesigwinch()
232 if (ioctl(slave, TIOCGPGRP, &pgrp) != -1) in handlesigwinch()
319 login_tty(slave); in doshell()
/openbsd-src/sbin/ldattach/
H A Dldattach.c118 int ch, fd, master = -1, slave, pty = 0, ldisc, nodaemon = 0; in main() local
298 if (openpty(&master, &slave, ptyn, NULL, NULL)) in main()
300 close(slave); in main()
/openbsd-src/usr.bin/mg/
H A Dmain.c298 int slave; in pty_init() local
304 openpty(&master, &slave, NULL, NULL, &ws); in pty_init()
305 login_tty(slave); in pty_init()
/openbsd-src/sys/arch/loongson/loongson/
H A Dloongson2_machdep.c226 uint64_t mmap, uint slave) in loongson2f_setup_window() argument
242 *awrreg = mmap | slave; in loongson2f_setup_window()
/openbsd-src/usr.sbin/nsd/doc/
H A DREADME302 a zone transfer will be initiated to obtain the slave zone contents.
306 For a slave zone list the masters, by IP address. Below is an example
307 of a slave zone with two master servers. If a master only supports AXFR
321 By default, a slave will fallback to AXFR requests if the master told us it does
322 not support IXFR. You can configure the slave not to do AXFR fallback with:
326 For a master zone, list the slave servers, by IP address or subnet.
327 Below is an example of a master zone with two slave servers.
437 are sent to slave servers.
440 contents of the zone files for slave zones to disk in the text-based zone
443 NSD will send notifications to slave zones if a master zone is updated.
[all …]
/openbsd-src/regress/sys/kern/flock/
H A Dflock.c1728 int master, res, slave; in test25() local
1730 res = openpty(&master, &slave, NULL, NULL, NULL); in test25()
1739 res = fcntl(slave, F_SETLKW, &fl); in test25()
1747 res = fcntl(slave, F_SETLKW, &fl); in test25()
1755 res = fcntl(slave, F_SETLKW, &fl); in test25()
1758 close(slave); in test25()
/openbsd-src/distrib/notes/macppc/
H A Dprep52 (After installation, boot /bsd from the slave
69 ultra1 = slave device, primary ATA bus
71 ide1 = slave device, secondary ATA bus (Zip drive, if installed)
/openbsd-src/sbin/dump/
H A Dtape.c96 static struct slave { struct
108 static struct slave *slp; argument
450 struct slave *tslp; in rollforward()
/openbsd-src/sys/dev/pci/drm/radeon/
H A Dradeon_ttm.c556 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in radeon_ttm_tt_populate() local
567 if (slave && ttm->sg) { in radeon_ttm_tt_populate()
580 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in radeon_ttm_tt_unpopulate() local
590 if (slave) in radeon_ttm_tt_unpopulate()
/openbsd-src/distrib/notes/landisk/
H A Dprep27 to ``master'' or ``single drive'', as slave drives are not bootable.
/openbsd-src/gnu/usr.bin/binutils-2.17/gas/config/
H A Dtc-alpha.c567 fixS *slave; in alpha_adjust_relocs() local
682 for (slave = fixp->tc_fix_data.info->slaves; in alpha_adjust_relocs()
683 slave != (fixS *) 0; in alpha_adjust_relocs()
684 slave = slave->tc_fix_data.next_reloc) in alpha_adjust_relocs()
686 slave->fx_next = fixp->fx_next; in alpha_adjust_relocs()
687 fixp->fx_next = slave; in alpha_adjust_relocs()
699 slave = fixp->tc_fix_data.info->slaves; in alpha_adjust_relocs()
700 slave->fx_next = next; in alpha_adjust_relocs()
701 fixp->fx_next = slave; in alpha_adjust_relocs()
/openbsd-src/gnu/usr.bin/binutils/gas/config/
H A Dtc-alpha.c1718 fixS *slave; local
1833 for (slave = fixp->tc_fix_data.info->slaves;
1834 slave != (fixS *) 0;
1835 slave = slave->tc_fix_data.next_reloc)
1837 slave->fx_next = fixp->fx_next;
1838 fixp->fx_next = slave;
1850 slave = fixp->tc_fix_data.info->slaves;
1851 slave->fx_next = next;
1852 fixp->fx_next = slave;
/openbsd-src/gnu/usr.bin/perl/cpan/libnet/lib/Net/
H A DNNTP.pm412 sub slave { subroutine
/openbsd-src/etc/mtree/
H A D4.4BSD.dist617 slave uname=root gname=_nsd mode=0775
/openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/27_io/
H A Dfilebuf_virtuals-1.tst84 /mnt/cdrom/marley-songs_of_freedom/disk_2/slave driver
H A Dfilebuf_virtuals-1.txt84 /mnt/cdrom/marley-songs_of_freedom/disk_2/slave driver
H A Dostream_inserter_other-1.tst84 /mnt/cdrom/marley-songs_of_freedom/disk_2/slave driver
H A Dostream_inserter_other-2.tst84 /mnt/cdrom/marley-songs_of_freedom/disk_2/slave driver

12