Lines Matching defs:to

4  * The contents of this file are subject to the terms of the
23 * Use is subject to license terms.
71 /* Can be set to zero to emulate the old, broken behavior */
92 * Table indicating character classes to tty driver. In particular,
100 * range cause even greater distress to other UNIX terminal drivers....
178 * translate to themselves. All other characters have a zero in the table,
214 * WARNING: as for above ISO sets, \377 may be used. Translate it to
222 * translate to themselves, except for lower-case letters which translate
223 * to their upper-case equivalents. All other characters have a zero in
259 * WARNING: as for above ISO sets, \377 may be used. Translate it to
318 * characters translate to themselves. All other _bytes_ have a zero in
326 * seriously, it doesn't make much sense to use olcuc with multi-byte, and
327 * it will probably never be used. Consideration should be given to disallowing
352 * translate to themselves, except for lower-case letters which translate
353 * to their upper-case equivalents. All other bytes have a zero in
524 * usr/src/common/unicode/. The tables are used to figure out corresponding
561 * reflected fairly quickly to the module below us. We also have a
765 * semantics. If not, we'll have to approximate it using TCSBRK. If
769 * When the ldterm_drain_limit tunable is set to zero, we behave the
780 /* prepare to clear the water marks on close */
787 * to values appropriate for a terminal. Also set the "vmin"
788 * and "vtime" values to 1 and 0, turn on message-nondiscard
872 * If the driver isn't known to have POSIX close semantics,
873 * then we have to emulate this the old way. This is done by
874 * sending down TCSBRK,1 to drain the output and waiting for
887 * If we're not able to receive signals at this point, then
912 * From here to the end, the routine does not sleep and does not
913 * reference STREAMS, so it's guaranteed to run to completion.
950 * We received our ack from the driver saying there is nothing left to
1030 * IGNBRK, BRINT and PARMRK have been negotiated to
1033 * already done, it should be ok to use the apparent
1078 * The M_CTL has been standardized to look like an
1118 * what the right thing to do with a partial
1142 /* no longer any reason to drain from ldterm */
1153 putnext(q, mp); /* In case anyone else has to see it */
1247 * Setting a special character to NUL
1381 * Map upper case input to lower case
1436 * Set QWANTW to ensure that the read queue service procedure
1507 * This routine is called from both ldtermrput and ldtermrsrv to
1530 * bell down the line to stop input and
1533 * response to to the typed input. Typically
1579 * tp->t_rd_request to NULL?
1589 * nowhere to go anyway, and we're probably
1590 * not going to see another ^Q for a while.
1668 * to character tty
1715 * Do canonical mode input; check whether this character is to be
1717 * to any of the special characters and handle it accordingly.
1718 * Otherwise, just add it to the current line.
1735 * Setting a special character to NUL disables it, so if this
1757 * smaller than or equal to UNKNOWN_WIDTH, the character at
1835 * that sequence maps to.
1892 * Byte will cause line to overflow, or the next EUC
1922 * Add the character to the current line.
1934 * Chain the new one to the end of the old one, and
1944 * In multi-byte mode, we have to keep track of where we are.
1982 * EOL2/XCASE should be conditioned with IEXTEN to be truly
1983 * POSIX conformant. This is going to cause problems for
2085 tp->t_endmsg = bp; /* point to that mblk */
2094 * can't be applied to multi-byte processing. We do our own thing
2115 * echoed, some data was written to the
2152 * to the terminal; we can't erase
2202 * widths to figure out where we are (we've kept track in most
2426 * and it's presumptuous for us to attempt "word erase" when we don't
2431 * In the TS_MEUC case (which is how we got here), we define a token to
2432 * be space- or tab-delimited, and erase one of them. It helps to
2447 * ip points to the width of the actual bytes. t_eucp points
2548 * This loop similar to "ldterm_csi_werase" above.
2666 * that the next character is to be treated
2734 * Chain the new one to the end of the old
2746 * here move bytes according to the minimum of room
2756 DEBUG5(("Bytes to move = %lu\n", bytes_to_move));
2775 * need to do VMIN/VTIME processing. The four possible cases
2809 * Also, remember to start a new timer *every*
2836 * Echo a typed byte to the terminal. Returns the number of bytes
2891 * useful to do with them.
2937 * Copy a string, of length len, to the output queue.
3002 * failure causes write-side processing to stall, we disable the
3003 * write side and arrange to call this function when allocation once
3023 * Line discipline output queue put procedure. Attempts to process
3073 * no way to cancel an existing M_READ
3074 * request. We kludge by allowing a flush to
3084 * Stream head needs data to satisfy timed
3196 * Exception: ioctls, except for those defined to
3229 * ldtermwmsg to dispose of mp.
3244 * We expect this loop to iterate at most once, but must be
3246 * paying strict attention to what canput tells it.
3251 * messages, so we don't have to worry about them
3261 * for now and wait to be rescheduled.
3271 * processed completely (due to allocation failures), put the
3273 * the queue, and schedule a qbufcall to arrange to complete its
3278 * This routine is called from both ldtermwput and ldtermwsrv to do the
3309 * we have something useful to do with them.
3342 * queue, since it's pointless to attempt further processing
3345 * the queue to be serviced.)
3356 * Schedule a qbufcall to re-enable the queue. The failure
3383 mblk_t **contpp; /* where to stuff ptr to newly-allocated blk */
3388 mblk_t *bp; /* block to stuff an M_DELAY message in */
3392 * Allocate a new block into which to put bytes. If we can't,
3415 * stuff the pointer to it in "*omp". All subsequent blocks
3416 * should have the pointer to them stuffed into the "b_cont"
3417 * field of the previous block. "contpp" points to the place
3454 * We need to make sure that this is not
3485 * what it is mapped to.
3527 * lower case to upper case if OLCUC
3538 * possibly mapping upper case to
3544 * just drop through to the "big
3546 * _might_ be faster to let "movtuc"
3577 * We're save to just do this column
3597 * Again, we need to make sure that this is not
3604 * We also add the display width to 'tp->t_col' if
3628 * multi-byte mode, we HAVE to look at
3629 * EVERYTHING going out to maintain column
3651 * Map <CR>to<NL> on output if OCRNL flag
3677 * Map <NL> to <CR><NL> on output if ONLCR
3692 * multi-byte mode, we use "t_eucign" to help
3694 * byte of an EUC, we set t_eucign to the
3697 * character to the column position. In
3702 * dropped through for ASCII, but we want to
3797 * Map '\t' to spaces if XTABS flag
3813 * room to fully
3816 * up to continue
3942 * We have to start a new
3967 unsigned char *to = origto;
3971 *to++ = c;
3974 return (to - origto);
4012 * c == \0 is brk case; need to flush on BRKINT even if
4041 * routine to prevent flushing our
4071 * whatever we're supposed to do with it, and either replies
4072 * immediately or passes it to the next module down.
4118 * so we have to support it.
4140 * The driver may want to know about the
4152 * Old-style "ioctl" to set current
4192 * The driver may want to know about the
4203 * service procedure to see. Then turn it into the
4205 * below us doesn't have to know about TCFLSH.
4280 * TCSBRK is expected to be handled by the driver.
4282 * the argument to TCSBRK is zero driver has to drain
4284 * the driver drains the data is going to cause
4290 * EUC_WSET, we have to pass the information on, even
4321 * out of hand. It's not impossible for us to
4324 * columns to be 2 and the max number of
4325 * bytes to be 3. This allows room for some
4329 * need to, you can push EUC_MAXW up to over
4343 * force codeset 0 (ASCII) to be one byte,
4351 * to allocate a block to hold the parallel
4353 * what amounts to a CSWIDTH definition. We
4357 tp->t_maxeuc = 0; /* reset to say we're NOT */
4364 * to get the buffer we need to hold display
4418 * the t_csdata, set t_csdata.codeset_type to
4441 * current codeset type is EUC. So, set it to
4454 * If we are able to allocate two blocks (the
4456 * it downstream, otherwise we'll need to NAK
4457 * it, and drop whatever we WERE able to
4663 * We are not going to use this data
4674 * characters, we switch to default EUC codeset
4779 * stream head to message-nondiscard or byte-stream
4781 * change its mind about whether to send data
4821 DEBUG4(("M_SETOPTS to stream head\n"));
4847 * Get current parameters and return them to
4868 * Old-style "ioctl" to get current
4869 * parameters and return them to stream head
4979 * Routine to adjust termios flags to be processed by the line
4981 * the driver intends to process. XOR'ing the driver sent termios
5005 * Copy from amodes to modes already done by TCSETA/TCSETS
5016 * We'd better be pointing to the last byte. If we aren't, it will get
5031 /* What to do now? */
5039 ung = 1; /* number of bytes to un-get from buffer */
5050 * Now, "ung" is the number of bytes to unget from the buffer
5082 * of parallel array for this position, just to make sure...
5094 * be useful to somebody.
5117 * user level are passed to us. When we copy it "in" to ourselves, we
5118 * do the increment. That allows us to avoid treating each character
5119 * set separately for "t_eucleft" purposes. When we copy it "out" to
5120 * return it to the user, we decrement the values so the user gets
5125 cp_eucwioc(eucioc_t *from, eucioc_t *to, int dir)
5127 bcopy(from, to, EUCSIZE);
5128 if (dir == EUCOUT) { /* copying out to user */
5129 if (to->eucw[2])
5130 --to->eucw[2];
5131 if (to->eucw[3])
5132 --to->eucw[3];
5134 if (to->eucw[2])
5135 ++to->eucw[2];
5136 if (to->eucw[3])
5137 ++to->eucw[3];
5223 * implemented to use only the codeset number, but that would require
5224 * the caller to have that value available. Perhaps the user doesn't
5225 * want to make the extra call or keep the value of codeset around.
5332 /* This is to silence the lint. */
5338 * the width as 'UNKNOWN_WIDTH' for now. We need to have all
5339 * the bytes to figure out the display width.
5397 * The following additional checking is needed to conform to
5415 * hence left shift six bits to make space and then get