HomeSort by: relevance | last modified time | path
    Searched defs:slave (Results 1 - 25 of 49) sorted by relevancy

1 2

  /src/external/bsd/tmux/dist/compat/
forkpty-haiku.c 32 int slave = -1; local
47 if ((slave = open(path, O_RDWR|O_NOCTTY)) == -1)
57 if (ioctl(slave, TIOCSCTTY, NULL) == -1)
60 if (tio != NULL && tcsetattr(slave, TCSAFLUSH, tio) == -1)
62 if (ioctl(slave, TIOCSWINSZ, ws) == -1)
65 dup2(slave, 0);
66 dup2(slave, 1);
67 dup2(slave, 2);
68 if (slave > 2)
69 close(slave);
    [all...]
  /src/lib/libutil/
pty.c 68 int master, slave; local
85 slave = pt.sfd;
119 (slave = open(line, O_RDWR, 0)) != -1) {
122 *aslave = slave;
126 (void)tcsetattr(slave, TCSAFLUSH, term);
128 (void)ioctl(slave, TIOCSWINSZ, winp);
141 int master, slave; local
149 if (openpty(&master, &slave, name, term, winp) == -1)
159 login_tty(slave);
166 (void)close(slave);
    [all...]
  /src/sys/arch/bebox/stand/boot/
devopen.c 44 * /dev/disk/ide/0/slave/0_n
75 char slave[] = "slave"; local
86 } else if (strncmp(p, slave, strlen(slave)) == 0) {
88 p += strlen(slave);
  /src/sys/arch/hp300/stand/common/
autoconf.c 149 int sc, type, ctlr, slave, punit; local
158 slave = (rp->msus & 0xFF);
161 bdev = MAKEBOOTDEV(type, ctlr, slave, punit, 0);
  /src/tests/kernel/kqueue/read/
t_ttypty.c 68 (void)printf("tty: openpty master %d slave %d tty '%s'\n",
129 ATF_TC(slave); variable
130 ATF_TC_HEAD(slave, tc)
132 atf_tc_set_md_var(tc, "descr", "Checks EVFILT_READ for slave tty");
134 ATF_TC_BODY(slave, tc)
143 "Checks EVFILT_READ reporting for slave tty being closed");
155 (void)printf("tty: openpty master %d slave %d tty '%s'\n",
179 ATF_TP_ADD_TC(tp, slave);
  /src/tests/kernel/kqueue/write/
t_ttypty.c 64 (void)printf("tty: openpty master %d slave %d tty '%s'\n",
114 ATF_TC(slave); variable
115 ATF_TC_HEAD(slave, tc)
117 atf_tc_set_md_var(tc, "descr", "Checks EVFILT_WRITE for slave tty");
119 ATF_TC_BODY(slave, tc)
127 ATF_TP_ADD_TC(tp, slave);
  /src/tests/kernel/tty/
t_pr.c 72 exercise_ptytty(int master, int slave)
77 * send a few bytes from master to slave and read them back
79 error = sendsome(master, slave);
89 error = sendsome(slave, master);
108 int master, slave, error, v; local
111 slave = rump_sys_open("/dev/ttyp1", O_RDWR|O_NONBLOCK);
112 ATF_CHECK(slave != -1);
118 rump_sys_ioctl(slave, FIOASYNC, &v);
119 error = exercise_ptytty(master, slave);
123 rump_sys_close(slave);
136 int master, slave, error; local
    [all...]
  /src/sys/dev/isa/
ast.c 61 int sc_alive; /* mask of slave units attached */
151 device_t slave; local
164 "can't map i/o space for slave %d\n", i);
181 slave = config_found(self, &ca, commultiprint, CFARGS_NONE);
182 if (slave != NULL) {
184 sc->sc_slaves[i] = device_private(slave);
tcom.c 100 int sc_alive; /* mask of slave units attached */
190 device_t slave; local
204 "can't map i/o space for slave %d\n", i);
222 slave = config_found(self, &ca, commultiprint, CFARGS_NONE);
223 if (slave != NULL) {
225 sc->sc_slaves[i] = device_private(slave);
  /src/sys/external/bsd/drm2/dist/drm/nouveau/
nouveau_encoder.h 82 struct drm_encoder_slave *slave = to_encoder_slave(enc); local
84 return container_of(slave, struct nouveau_encoder, base);
  /src/sys/dev/pcmcia/
pcmcom.c 77 device_t sc_slaves[NSLAVES]; /* slave info */
78 int sc_nslaves; /* slave count */
87 int pca_slave; /* slave # */
142 int slave; local
164 for (slave = 0; slave < sc->sc_nslaves; slave++) {
167 printf("%s: slave %d\n", device_xname(self), slave);
169 pca.pca_iot = cfe->iospace[slave].handle.iot
193 int slave; local
    [all...]
  /src/sys/external/bsd/drm2/i2c/
drm_encoder_slave.c 131 drm_i2c_encoder_init(struct drm_device *dev, struct drm_encoder_slave *slave,
141 slave->bus_priv = bus_priv;
164 ret = (*driver->encoder_init)(client, dev, slave);
169 (*slave->slave_funcs->set_config)(&slave->base,
180 slave->bus_priv = NULL;
188 struct drm_encoder_slave *const slave = to_encoder_slave(encoder); local
189 struct drm_i2c_encoder_bus_priv *const bus_priv = slave->bus_priv;
202 struct drm_encoder_slave *const slave = to_encoder_slave(encoder); local
203 struct drm_i2c_encoder_bus_priv *const bus_priv = slave->bus_priv
    [all...]
  /src/tests/lib/libcurses/director/
director.c 51 #define DEF_SLAVE "./slave"
59 int master; /* pty to the slave */
70 * Handle the slave exiting unexpectedly, try to recover the exit message
82 fprintf(stderr, "ERROR: Slave has exited\n");
84 fprintf(stderr, "output from slave: ");
97 fprintf(stderr, "slave exited with message \"%s\"\n",
117 fprintf(stderr, " -s is the path to the slave executable\n");
130 const char *termpath, *term, *slave; local
139 termpath = term = slave = NULL;
156 slave = optarg
    [all...]
  /src/usr.sbin/timed/timed/
slave.c 1 /* $NetBSD: slave.c,v 1.19 2018/01/16 07:57:58 maya Exp $ */
35 static char sccsid[] = "@(#)slave.c 8.1 (Berkeley) 6/6/93";
37 __RCSID("$NetBSD: slave.c,v 1.19 2018/01/16 07:57:58 maya Exp $");
60 slave(void) function
183 fprintf(fd, "slave ignored: ");
195 fprintf(fd, "slave ignored: ");
294 * forever. Each time a gateway receives it on its slave side, it will
326 if (fromnet->status != SLAVE)
372 if (fromnet->status == SLAVE) {
423 * more than one master: the first slave t
    [all...]
  /src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
wait-process.c 117 'child' field to 0 when unregistering a slave process, and wouldn't need
128 /* The registered slave subprocesses. */
134 /* The termination signal for slave subprocesses.
148 /* Get the last registered slave. */
157 pid_t slave = slaves[n].child; local
159 /* Kill the slave. */
160 kill (slave, TERMINATOR);
165 /* Register a subprocess as being a slave process. This means that the
180 /* Try to store the new slave in an unused entry of the slaves array. */
225 new slave and its 'used' bit have been written to the memory location
    [all...]
  /src/sys/dev/gpib/
cs80bus.c 79 * CS80/SS80 has a 2-level addressing scheme; slave, the analog
81 * IDs are on a per-slave basis; punits are often used for disk
89 * in cs80bus_attach_children(). For each GPIB slave, we loop
91 * them to modify the punit parameter (but NOT the slave!).
108 int slave; local
116 for (slave = 0; slave < 8; slave++) {
119 slave))
123 slave, &id, 2) != 2
    [all...]
gpib.c 136 /* Initialize the slave request queue */
229 _gpibregister(struct gpib_softc *sc, int slave, gpib_callback_t callback,
234 (*hdl)->hq_slave = slave;
278 int slave; local
282 slave = TAILQ_FIRST(&sc->sc_queue)->hq_slave;
283 (*sc->sc_ic->ppwatch)(sc->sc_ic->cookie, slave);
290 _gpibswait(struct gpib_softc *sc, int slave)
298 while ((*pptest)(sc->sc_ic->cookie, slave) == 0) {
367 _gpibsend(struct gpib_softc *sc, int slave, int sec, void *ptr, int origcnt)
375 ("_gpibsend: sc=%p slave %d sec=%d ptr=%p cnt=%d\n"
    [all...]
  /src/sys/arch/hp300/dev/
hpib.c 108 * HP-IB has a 2-level addressing scheme; slave, the analog
110 * IDs are on a per-slave basis; punits are often used for disk
119 * * We nevertheless probe the whole (slave, punit) tuple space, since
156 /* Initialize the slave request queue. */
167 int id, slave, punit; local
170 for (slave = 0; slave < HPIB_NSLAVES; slave++) {
179 id = hpibid(device_unit(sc->sc_dev), slave);
190 ha.ha_slave = slave;
    [all...]
fhpib.c 235 fhpibsend(struct hpibbus_softc *hs, int slave, int sec, void *ptr, int origcnt)
250 hd->hpib_data = C_LAG + slave;
287 printf("%s: fhpibsend failed: slave %d, sec %x, ",
288 device_xname(sc->sc_dev), slave, sec);
296 fhpibrecv(struct hpibbus_softc *hs, int slave, int sec, void *ptr, int origcnt)
305 * Slave < 0 implies continuation of a previous receive
308 if (slave >= 0) {
316 hd->hpib_data = C_TAG + slave;
336 hd->hpib_data = (slave == 31) ? C_UNA : C_UNT;
348 printf("%s: fhpibrecv failed: slave %d, sec %x, "
648 int slave; local
    [all...]
mt.c 103 int sc_hpibno; /* logical HPIB this slave it attached to */
104 int sc_slave; /* HPIB slave address (0-6) */
194 int hpibno, slave; local
203 slave = ha->ha_slave;
210 sc->sc_slave = slave;
ppi.c 96 int sc_slave; /* HP-IB slave address */
302 int ctlr, slave; local
309 slave = sc->sc_slave;
361 cnt = hpibsend(ctlr, slave, sc->sc_sec, cp, len);
363 cnt = hpibrecv(ctlr, slave, sc->sc_sec, cp, len);
370 ctlr, slave, sc->sc_sec, cp, len, cnt);
  /src/crypto/external/bsd/heimdal/dist/lib/roken/
rkpty.c 87 static int slave; variable
105 if(openpty(&master, &slave, line, 0, 0) == 0)
129 slave = open(line, O_RDWR);
130 if (slave < 0)
131 errx(1, "failed to open slave when using %s", *q);
132 ioctl(slave, I_PUSH, "ptem");
133 ioctl(slave, I_PUSH, "ldterm");
362 dup2(slave, STDIN_FILENO);
363 dup2(slave, STDOUT_FILENO);
364 dup2(slave, STDERR_FILENO)
    [all...]
  /src/external/bsd/nvi/dist/ex/
ex_script.c 598 int master, slave; local
606 /* open slave terminal */
607 if ((slave = ptys_open(master, name)) >= 0) {
609 *aslave = slave;
616 (void) tcsetattr(slave, TCSAFLUSH, termp);
619 (void) ioctl(slave, TIOCSWINSZ, (struct winsize *)winp);
627 * to it. pts_name is also returned which is the name of the slave.
654 /* get slave's name */
665 * This function opens the slave pty.
711 int master, slave, ttygid local
    [all...]
  /src/external/gpl3/gdb.old/dist/sim/bfin/
dv-bfin_ebiu_amc.c 103 struct hw *slave = amc->slaves[i]; local
106 slave ? hw_path (slave) : "<floating pins>"));
109 0, addr, amc->bank_size, 0, slave, NULL); local
  /src/external/gpl3/gdb/dist/sim/bfin/
dv-bfin_ebiu_amc.c 103 struct hw *slave = amc->slaves[i]; local
106 slave ? hw_path (slave) : "<floating pins>"));
109 0, addr, amc->bank_size, 0, slave, NULL); local

Completed in 104 milliseconds

1 2