-#define BSPEED B150
-
-/***
- * genbrk send a break
- *
- * return codes; none
- */
-
-genbrk(fn, bnulls)
-register int fn, bnulls;
-{
- register int ret;
-#ifdef SYSIII
- ret = ioctl(fn, TCSBRK, STBNULL);
- DEBUG(5, "break ioctl ret %d\n", ret);
-#endif
-#ifndef SYSIII
-#ifdef TIOCSBRK
- ret = ioctl(fn, TIOCSBRK, STBNULL);
- DEBUG(5, "break ioctl ret %d\n", ret);
-#ifdef TIOCCBRK
- ret = write(fn, "\0\0\0\0\0\0\0\0\0\0\0\0", bnulls);
- ASSERT(ret > 0, "BAD WRITE genbrk", "", ret);
- sleep(1);
- ret = ioctl(fn, TIOCCBRK, STBNULL);
- DEBUG(5, "break ioctl ret %d\n", ret);
-#endif
- DEBUG(4, "ioctl 1 second break\n", STBNULL);
-#else
- struct sgttyb ttbuf;
- register int sospeed;
-
- ret = ioctl(fn, TIOCGETP, &ttbuf);
- sospeed = ttbuf.sg_ospeed;
- ttbuf.sg_ospeed = BSPEED;
- ret = ioctl(fn, TIOCSETP, &ttbuf);
- ret = write(fn, "\0\0\0\0\0\0\0\0\0\0\0\0", bnulls);
- ASSERT(ret > 0, "BAD WRITE genbrk", "", ret);
- ttbuf.sg_ospeed = sospeed;
- ret = ioctl(fn, TIOCSETP, &ttbuf);
- ret = write(fn, "@", 1);
- ASSERT(ret > 0, "BAD WRITE genbrk", "", ret);
- DEBUG(4, "sent BREAK nulls - %d\n", bnulls);
-#endif
-#endif
-}
-
-
-/***
- * notin(sh, lg) check for occurrence of substring "sh"
- * char *sh, *lg;