/netbsd-current/external/bsd/tmux/dist/compat/ |
H A D | 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...] |
/netbsd-current/sys/arch/hp300/stand/common/ |
H A D | hpib.c | 85 hpibid(int unit, int slave) argument 91 rv = fhpibrecv(unit, 31, slave, (uint8_t *)&id, 2); 93 rv = nhpibrecv(unit, 31, slave, (uint8_t *)&id, 2); 100 hpibsend(int unit, int slave, int sec, uint8_t *buf, int cnt) argument 104 return (fhpibsend(unit, slave, sec, buf, cnt)); 105 return nhpibsend(unit, slave, sec, buf, cnt); 109 hpibrecv(int unit, int slave, int sec, uint8_t *buf, int cnt) argument 113 return (fhpibrecv(unit, slave, sec, buf, cnt)); 114 return nhpibrecv(unit, slave, sec, buf, cnt); 118 hpibswait(int unit, int slave) argument 137 hpibgo(int unit, int slave, int sec, uint8_t *addr, int count, int flag) argument [all...] |
/netbsd-current/tests/kernel/tty/ |
H A D | t_pr.c | 72 exercise_ptytty(int master, int slave) argument 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...] |
/netbsd-current/tests/lib/libcurses/slave/ |
H A D | Makefile | 7 TESTS_C+= slave 9 PROG= slave 11 #MAN= slave.7 12 SRCS= slave.c commands.c curses_commands.c
|
/netbsd-current/sys/dev/gpib/ |
H A D | 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, 206 cs80bus_alloc(struct cs80bus_softc *sc, int slave, int punit) argument 230 cs80describe(void *v, int slave, int punit, struct cs80_description *csd) argument 268 cs80reset(void *v, int slave, int punit) argument 309 cs80status(void *v, int slave, int punit, struct cs80_stat *css) argument 337 cs80setoptions(void *v, int slave, int punit, u_int8_t options) argument 355 cs80send(void *v, int slave, int punit, int cmd, void *ptr, int cnt) argument [all...] |
H A D | gpibvar.h | 91 #define gpibpptest(ic, slave) \ 92 (*((ic)->pptest))((ic)->cookie, (slave)) 95 #define gpibxfer(ic, slave, sec, buf, cnt, rw, timo) \ 96 (*((ic)->xfer))((ic)->cookie, (slave), (sec), (buf), (cnt), \ 106 void *hq_softc; /* slave's softc */ 107 int hq_slave; /* slave on bus */ 108 gpib_callback_t hq_callback; /* slave's callback function */ 121 #define gpibsend(ic, slave, sec, addr, cnt) \ 122 _gpibsend((ic)->bus, (slave), (sec), (addr), (cnt)) 123 #define gpibrecv(ic, slave, se [all...] |
H A D | gpib.c | 136 /* Initialize the slave request queue */ 229 _gpibregister(struct gpib_softc *sc, int slave, gpib_callback_t callback, argument 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) argument 298 while ((*pptest)(sc->sc_ic->cookie, slave) == 0) { 367 _gpibsend(struct gpib_softc *sc, int slave, int sec, void *ptr, int origcnt) argument 375 ("_gpibsend: sc=%p slave 420 _gpibrecv(struct gpib_softc *sc, int slave, int sec, void *ptr, int origcnt) argument [all...] |
/netbsd-current/crypto/external/bsd/heimdal/libexec/ |
H A D | Makefile | 11 ipropd-slave \
|
/netbsd-current/lib/libutil/ |
H A D | 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...] |
/netbsd-current/sys/dev/ofw/ |
H A D | ofw_spi_subr.c | 52 uint32_t slave; local 62 slave = 0; 67 slave = be64toh(reg64); 72 slave = be32toh(reg32); 86 prop_dictionary_set_uint32(dev, "slave", slave);
|
/netbsd-current/external/bsd/byacc/dist/package/debian/ |
H A D | postinst | 9 --slave /usr/share/man/man1/yacc.1.gz yaccman \
|
/netbsd-current/sys/arch/hp300/dev/ |
H A D | 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; 276 hpibid(int unit, int slave) argument 294 hpibsend(int unit, int slave, int sec, void *addr, int cnt) argument 302 hpibrecv(int unit, int slave, int sec, void *addr, int cnt) argument 310 hpibpptest(int unit, int slave) argument 335 hpibswait(int unit, int slave) argument 377 hpibgo(int unit, int slave, int sec, void *vbuf, int count, int rw, int timo) argument [all...] |
/netbsd-current/crypto/external/bsd/heimdal/dist/tests/kdc/ |
H A D | check-iprop.in | 68 slave_ver_new=`grep 'up-to-date with version:' iprop-slave-status | awk '{print $4}'` 118 wait_for "iprop versions to change and/or slave to catch up" get_iprop_ver "$@" 126 wait_for "slave to exit" check_pidfile_is_dead ipropd-slave 152 ${kadmin} -l add --random-key --use-defaults iprop/slave.test.h5l.se@${R} || exit 1 153 ${kadmin} -l ext -k ${keytab} iprop/slave.test.h5l.se@${R} || exit 1 196 rm -f iprop-slave-status 198 ipropd_slave="${ipropd_slave} --status-file=iprop-slave-status" 213 echo "starting slave" ; > messages.log 215 KRB5_CONFIG="${objdir}/krb5-slave [all...] |
/netbsd-current/sys/dev/pcmcia/ |
H A D | 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] 193 int slave; local [all...] |
/netbsd-current/sys/arch/rs6000/include/ |
H A D | iocc.h | 60 #define IOCC_DMA_SLAVE_CTRL(slave) \ 61 (IOCC_BASE + 0x380 + (slave * 4)) /* slave control regs */
|
/netbsd-current/tests/kernel/kqueue/write/ |
H A D | 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);
|
/netbsd-current/sys/arch/i386/pci/ |
H A D | viapcib.c | 207 /* Disable slave function */ 352 viapcib_smbus_quick_write(void *opaque, i2c_addr_t slave) argument 358 DPRINTF(("viapcib_smbus_quick_write(%p, 0x%x)\n", opaque, slave)); 364 viapcib_smbus_write(sc, SMBHSTADD, (slave & 0x7f) << 1); 374 viapcib_smbus_quick_read(void *opaque, i2c_addr_t slave) argument 380 DPRINTF(("viapcib_smbus_quick_read(%p, 0x%x)\n", opaque, slave)); 386 viapcib_smbus_write(sc, SMBHSTADD, ((slave & 0x7f) << 1) | 1); 396 viapcib_smbus_send_byte(void *opaque, i2c_addr_t slave, uint8_t byte) argument 403 slave, byte)); 409 viapcib_smbus_write(sc, SMBHSTADD, (slave 421 viapcib_smbus_receive_byte(void *opaque, i2c_addr_t slave, uint8_t *pbyte) argument 450 viapcib_smbus_write_byte(void *opaque, i2c_addr_t slave, uint8_t cmd, int8_t byte) argument 476 viapcib_smbus_read_byte(void *opaque, i2c_addr_t slave, uint8_t cmd, int8_t *pbyte) argument 505 viapcib_smbus_write_word(void *opaque, i2c_addr_t slave, uint8_t cmd, int16_t word) argument 532 viapcib_smbus_read_word(void *opaque, i2c_addr_t slave, uint8_t cmd, int16_t *pword) argument 566 viapcib_smbus_block_write(void *opaque, i2c_addr_t slave, uint8_t cmd, int cnt, void *data) argument 613 viapcib_smbus_block_read(void *opaque, i2c_addr_t slave, uint8_t cmd, int cnt, void *data) argument [all...] |
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | 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_FILEN [all...] |
/netbsd-current/sys/external/bsd/drm2/i2c/ |
H A D | drm_encoder_slave.c | 131 drm_i2c_encoder_init(struct drm_device *dev, struct drm_encoder_slave *slave, argument 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 [all...] |
/netbsd-current/sys/arch/evbarm/netwalker/ |
H A D | netwalker_spi.c | 60 imxspi_cs_enable(void *arg, int slave) argument 62 switch (slave) { 81 imxspi_cs_disable(void *arg, int slave) argument 83 switch (slave) {
|
/netbsd-current/tests/lib/libcurses/ |
H A D | Makefile | 7 SUBDIR= director slave tests check_files
|
/netbsd-current/sys/arch/arm/imx/ |
H A D | imxspi.c | 150 /* attach slave devices */ 158 imxspi_configure(void *arg, int slave, int mode, int speed) argument 201 DPRINTFN(3, ("%s: slave %d mode %d speed %d\n", 202 __func__, slave, mode, speed)); 208 imxspi_configure_enhanced(void *arg, int slave, int mode, int speed) argument 225 contrl |= __SHIFTIN(slave, ECSPI_CON_CS); 226 contrl |= __SHIFTIN(__BIT(slave), ECSPI_CON_MODE); 230 config &= ~(__SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_POL) | 231 __SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_CTL) | 232 __SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_PH [all...] |
/netbsd-current/usr.sbin/timed/timed/ |
H A D | Makefile | 8 slave.c timed.c byteorder.c measure.c cksum.c tspname.c
|
/netbsd-current/crypto/external/bsd/heimdal/libexec/ipropd-slave/ |
H A D | Makefile | 8 PROG= ipropd-slave
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/ |
H A D | nouveau_encoder.h | 82 struct drm_encoder_slave *slave = to_encoder_slave(enc); local 84 return container_of(slave, struct nouveau_encoder, base);
|