| 262 | } |
| 263 | |
| 264 | static __inline void |
| 265 | ttyinq_set_quotes(struct ttyinq_block *tib, size_t offset, |
| 266 | size_t length, int value) |
| 267 | { |
| 268 | |
| 269 | if (value) { |
| 270 | /* Set the bits. */ |
| 271 | for (; length > 0; length--, offset++) |
| 272 | SETBIT(tib, offset); |
| 273 | } else { |
| 274 | /* Unset the bits. */ |
| 275 | for (; length > 0; length--, offset++) |
| 276 | CLRBIT(tib, offset); |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | size_t |
| 281 | ttyinq_write(struct ttyinq *ti, const void *buf, size_t nbytes, int quote) |