Searched refs:tty (Results 1 - 25 of 47) sorted by relevance

12

/xnu-2782.1.97/bsd/sys/
H A Dtty.h66 * @(#)tty.h 8.6 (Berkeley) 1/21/94
108 * Per-tty structure.
110 * Should be split in two, into device and tty drivers.
114 struct tty { struct
115 lck_mtx_t t_lock; /* Per tty lock */
135 void (*t_oproc)(struct tty *);
137 void (*t_stop)(struct tty *, int);
139 int (*t_param)(struct tty *, struct termios *);
150 #define TTY_NULL (struct tty *)0
163 #define TTIPRI 25 /* Sleep priority for tty read
[all...]
H A Dsubr_prf.h81 #define TOTTY 0x00000002 /* output to tty */
86 extern int prf(const char *fmt, va_list ap, int flags, struct tty *ttyp);
H A Dconf.h83 struct tty;
102 typedef struct tty *d_devtotty_t(dev_t dev);
110 typedef int stop_fcn_t(struct tty *tp, int rw);
191 struct tty **d_ttys;
234 typedef int l_open_t (dev_t dev, struct tty *tp);
235 typedef int l_close_t(struct tty *tp, int flags);
236 typedef int l_read_t (struct tty *tp, struct uio *uio, int flag);
237 typedef int l_write_t(struct tty *tp, struct uio *uio, int flag);
238 typedef int l_ioctl_t(struct tty *tp, u_long cmd, caddr_t data, int flag,
240 typedef int l_rint_t (int c, struct tty *t
[all...]
H A Dsystm.h107 #include <sys/tty.h>
154 void ttyprintf(struct tty *, const char *, ...) __printflike(2, 3);
H A Dsignalvar.h142 #define SA_TTYSTOP 0x08 /* ditto, from tty */
216 void tty_pgsignal(struct tty * tp, int sig, int checkctty);
H A Dtypes.h216 struct tty;
H A Dproc_internal.h127 struct tty * s_ttyp; /* Controlling terminal. (SL + ttyvp != NULL) */
128 pid_t s_ttypgrpid; /* tty's pgrp id */
144 * close notification of tty devices through cdevsw[].
146 * NB: <sys/tty.h> is not in scope and there is not typedef type enforcement,
156 #define S_NOCTTY 0x00000001 /* Do not associate controlling tty */
753 extern struct pgrp * tty_pgrp(struct tty * tp);
762 extern int isbackground(proc_t p, struct tty *tp);
H A DMakefile32 timeb.h times.h tprintf.h trace.h tty.h ttychars.h ttycom.h \
118 tty.h ttychars.h \
/xnu-2782.1.97/security/
H A Dmac_pty.c4 #include <sys/tty.h>
9 mac_pty_notify_grant(proc_t p, struct tty *tp, dev_t dev, struct label *label) {
14 mac_pty_notify_close(proc_t p, struct tty *tp, dev_t dev, struct label *label) {
/xnu-2782.1.97/bsd/kern/
H A Dsubr_prf.c91 #include <sys/tty.h>
109 void _printf(int, struct tty *, const char *, ...);
127 extern struct tty cons; /* standard console tty */
128 extern struct tty *constty; /* pointer to console "window" tty */
138 static void printn(uint32_t n, int b, int flags, struct tty *ttyp, int zf, int fld_size);
148 struct tty *tty; member in struct:putchar_args
155 * It may block if the tty queu
[all...]
H A Dtty_dev.h33 * ptmx_ioctl is a pointer to a list of pointers to tty structures which is
38 struct tty *pt_tty; /* pointer to ttymalloc()'ed data */
73 void (*revoke)(int minor, struct tty *tp);
78 extern int ttnread(struct tty *tp);
H A Dtty_conf.c70 #include <sys/tty.h>
166 l_noioctl(__unused struct tty *tp, __unused u_long cmd, __unused caddr_t data,
173 l_nostart(__unused struct tty *tp)
H A Dtty.c65 * @(#)tty.c 8.8 (Berkeley) 1/21/94
118 * Debugging assertions for tty locks
133 __private_extern__ int ttnread(struct tty *tp);
134 static void ttyecho(int c, struct tty *tp);
135 static int ttyoutput(int c, struct tty *tp);
136 static void ttypend(struct tty *tp);
137 static void ttyretype(struct tty *tp);
138 static void ttyrub(int c, struct tty *tp);
139 static void ttyrubo(struct tty *tp, int count);
140 static void ttystop(struct tty *t
[all...]
H A Dtty_compat.c65 * Compatibility routines for BSD 4.3 tty ioctl() commands
72 * is held on the tty structure before these functions are
80 #include <sys/tty.h>
88 static int ttcompatgetflags(struct tty *tp);
89 static void ttcompatsetflags(struct tty *tp, struct termios *t);
90 static void ttcompatsetlflags(struct tty *tp, struct termios *t);
179 * Parameters struct tty *tp The tty on which the operation is
211 ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term)
333 * Parameters struct tty *t
[all...]
H A Dtty_dev.c63 /* Common callbacks for the pseudo-teletype driver (pty/tty)
72 #include <sys/tty.h>
98 static void ptcwakeup(struct tty *tp, int flag);
267 struct tty *tp = pti->pt_tty;
320 struct tty *tp;
353 struct tty *tp;
435 * Write to pseudo-tty.
436 * Wakeups of controlling tty will happen
437 * indirectly, when tty driver calls ptsstart.
443 struct tty *t
[all...]
H A Dtty_ptmx.c74 #include <sys/tty.h>
99 static void ptsd_revoke_knotes(int minor, struct tty *tp);
165 SYSCTL_NODE(_kern, KERN_TTY, tty, CTLFLAG_RW|CTLFLAG_LOCKED, 0, "TTY");
425 * XXX Conditional to be removed when/if tty/pty reference
531 struct tty *tp;
556 struct tty *tp;
613 struct tty *tp = NULL;
657 * tty's klists to keep ttyclose() happy, and set the hookid to
661 ptsd_revoke_knotes(int minor, struct tty *tp)
H A Dtty_pty.c74 #include <sys/tty.h>
99 * pts == /dev/tty[pqrsPQRS][0123456789abcdefghijklmnopqrstuv]
140 return snprintf(buffer, size, "/dev/tty%c%x",
151 /* create the pseudo tty device nodes */
159 "tty%c%x", j + START_CHAR, i);
H A Dkern_acct.c94 #include <sys/tty.h>
250 struct tty *tp;
/xnu-2782.1.97/bsd/machine/
H A Dcons.h38 struct tty *cn_tp; /* tty structure for console device */
59 extern struct tty *cn_tty;
61 extern struct tty *constty; /* current console device */
/xnu-2782.1.97/bsd/dev/i386/
H A Dkm.c36 #include <sys/tty.h>
62 struct tty *km_tty[1] = { 0 };
75 static int kmoutput(struct tty *tp);
76 static void kmstart(struct tty *tp);
95 struct tty *tp;
166 struct tty *tp = km_tty[minor(dev)];
180 struct tty *tp = km_tty[minor(dev)];
193 struct tty *tp = km_tty[minor(dev)];
206 struct tty *tp = km_tty[minor(dev)];
263 * Locks: Assumes tp in the calling tty drive
[all...]
H A Dcons.c33 * the console device, which can be any tty class device. It does this by
35 * console tty device.
38 * back to the "km" device, which is a tty BSD wrapper device for the
40 * to the tty device device instead.
47 * controlling tty, since you will get a reference to a device which does
54 #include <sys/tty.h>
58 struct tty *constty; /* current console device */
64 extern struct tty *km_tty[1];
129 * XXX it back to the fake tty.
H A Dstubs.c37 #include <sys/tty.h>
H A Dconf.c44 #include <sys/tty.h>
96 extern struct tty *km_tty[];
/xnu-2782.1.97/bsd/man/man4/
H A DMakefile42 tty.4 \
/xnu-2782.1.97/tools/lldbmacros/
H A Dprocess.py616 """ Display information about a struct tty
617 Usage: showtty <tty struct>
623 tty = kern.GetValueFromAddress(cmd_args[0], 'struct tty *')
625 print "Last input to raw queue: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_rawq.c_cs), tty.t_rawq.c_cs)
626 print "Last input to canonical queue: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_canq.c_cs), tty.t_canq.c_cs)
627 print "Last output data: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_outq.c_cs), tty
[all...]

Completed in 102 milliseconds

12