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

1234567891011

/macosx-10.10.1/Heimdal-398.1.2/appl/login/
H A Dtty.c39 * Clean the tty name. Return a pointer to the cleaned version.
43 clean_ttyname (char *tty) argument
45 char *res = tty;
57 * Generate a name usable as an `ut_id', typically without `tty'.
61 make_id (char *tty) argument
63 char *res = tty;
67 if (strncmp (res, "tty", 3) == 0)
H A Dread_string.c56 FILE *tty; local
76 if((tty = fopen("/dev/tty", "r")) == NULL)
77 tty = stdin;
83 tcgetattr(fileno(tty), &t_old);
86 tcsetattr(fileno(tty), TCSANOW, &t_new);
91 c = getc(tty);
93 if(!ferror(tty))
109 tcsetattr(fileno(tty), TCSANOW, &t_old);
112 if(tty !
[all...]
/macosx-10.10.1/ruby-106/ruby/sample/
H A Dcbreak.rb17 tty = "\0" * 256
18 STDIN.ioctl(TIOCGETP, tty)
19 ttys = tty.unpack("C4 S")
27 tty = ttys.pack("C4 S")
28 STDIN.ioctl(TIOCSETP, tty)
/macosx-10.10.1/basic_cmds-55/mesg/
H A Dmesg.c68 char *tty; local
80 if ((tty = ttyname(STDIN_FILENO)) == NULL &&
81 (tty = ttyname(STDOUT_FILENO)) == NULL &&
82 (tty = ttyname(STDERR_FILENO)) == NULL)
84 if (stat(tty, &sb) < 0)
85 err(2, "%s", tty);
98 if (chmod(tty, sb.st_mode | S_IWGRP) < 0)
99 err(2, "%s", tty);
102 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0)
103 err(2, "%s", tty);
[all...]
/macosx-10.10.1/less-25/less/
H A Dttyin.c27 public int tty; variable
45 tty = (int) CreateFile("CONIN$", GENERIC_READ,
48 GetConsoleMode((HANDLE)tty, &console_mode);
50 SetConsoleMode((HANDLE)tty, ENABLE_PROCESSED_INPUT);
60 tty = open("CON", OPEN_READ);
70 * Try /dev/tty.
76 /* The __open() system call translates "/dev/tty" to "con". */
77 tty = __open("/dev/tty", OPEN_READ);
79 tty
[all...]
/macosx-10.10.1/tcl-105/tcl_ext/expect/expect/
H A Dexp_tty.h1 /* exp_tty.h - tty support definitions
25 void exp_tty_set(Tcl_Interp *interp, exp_tty *tty, int raw, int echo);
26 int exp_tty_set_simple(exp_tty *tty);
27 int exp_tty_get_simple(exp_tty *tty);
/macosx-10.10.1/bash-94.1.2/bash-3.2/examples/scripts/
H A Dxterm_title18 exec </dev/tty
21 echo -e "\033[21t\c" > /dev/tty
/macosx-10.10.1/Libc-1044.1.2/gen/
H A Dgetttyent.c70 getttynam(tty)
71 const char *tty;
77 if (!strcmp(tty, t->ty_name))
86 * 4372480: Support for sequences in the tty name. Expressions like [000-999]
113 static struct ttyent tty; local
153 * generate the next tty name; the rest of the tty entries
156 sprintf(tty.ty_name, seq->fmt, seq->index++);
159 return &tty;
167 return &tty;
[all...]
/macosx-10.10.1/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...]
/macosx-10.10.1/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) {
/macosx-10.10.1/OpenSSL098-52/src/crypto/des/
H A Dread_pwd.c148 #define TTY_get(tty,data) tcgetattr(tty,data)
149 #define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data)
156 #define TTY_get(tty,data) ioctl(tty,TCGETA,data)
157 #define TTY_set(tty,data) ioctl(tty,TCSETA,data)
164 #define TTY_get(tty,data) ioctl(tty,TIOCGET
279 static FILE *tty; local
479 noecho_fgets(char *buf, int size, FILE *tty) argument
[all...]
/macosx-10.10.1/sudo-73/src/
H A Dttyname.c88 * How to access the tty device number in struct kinfo_proc.
121 char *dev, *tty = NULL; local
129 tty = emalloc(len);
130 strlcpy(tty, _PATH_DEV, len);
131 strlcat(tty, dev, len);
134 tty = estrdup(dev);
137 return tty;
150 char buf[TTYNAME_MAX], *tty; local
152 tty = _ttyname_dev(tdev, buf, sizeof(buf));
154 return estrdup(tty);
290 char buf[PATH_MAX], **sd, *devname, *tty = NULL; local
342 char *tty = NULL; local
383 char path[PATH_MAX], *tty = NULL; local
414 char *line = NULL, *tty = NULL; local
458 char *tty; local
[all...]
/macosx-10.10.1/bash-94.1.2/bash-3.2/lib/sh/
H A Dwinsize.c67 int tty; local
69 tty = input_tty ();
70 if (tty >= 0 && (ioctl (tty, TIOCGWINSZ, &win) == 0) &&
/macosx-10.10.1/ksh-23/ksh/src/cmd/ksh93/include/
H A Dterminal.h73 # define tcgetattr(fd,tty) ioctl(fd, TCGETS, tty)
75 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
106 # define tcgetattr(fd,tty) ioctl(fd, TCGETA, tty)
107 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
125 # define tcgetattr(fd,tty) ioctl(fd, TIOCGETP, tty)
[all...]
/macosx-10.10.1/ksh-23/ksh/src/lib/libcmd/
H A Dtty.c26 * tty
30 "[-?\n@(#)$Id: tty (AT&T Research) 2008-03-13 $\n]"
32 "[+NAME?tty - write the name of the terminal to standard output]"
35 "a terminal, \"\bnot a tty\b\" will be written to standard output.]"
42 "[+0?Standard input is a tty.]"
43 "[+1?Standard input is not a tty.]"
61 register char* tty; local
88 if(!(tty=ttyname(0)))
90 tty = ERROR_translate(0, 0, 0, "not a tty");
[all...]
/macosx-10.10.1/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...]
/macosx-10.10.1/PowerManagement-494.1.2/pmconfigd/
H A DTTYKeepAwake.c109 s_tty_queue = dispatch_queue_create("com.apple.powermanagement.tty", 0);
253 struct ttyentry *tty;
256 SLIST_FOREACH_SAFE(tty, &s_activettys, next, tmptty) {
257 SLIST_REMOVE(&s_activettys, tty, ttyentry, next);
258 free(tty);
266 struct ttyentry *tty; local
269 tty = malloc(sizeof(*tty));
270 if (!tty)
273 len = strlcpy(tty
[all...]
/macosx-10.10.1/bash-94.1.2/bash-3.2/lib/readline/
H A Drltty.c142 to get the tty settings. */
144 set_winsize (tty)
145 int tty;
150 if (ioctl (tty, TIOCGWINSZ, &w) == 0)
151 (void) ioctl (tty, TIOCSWINSZ, &w);
168 struct sgttyb sgttyb; /* Basic BSD tty driver information. */
230 get_tty_settings (tty, tiop)
231 int tty;
234 set_winsize (tty);
239 if (ioctl (tty, TIOCGET
659 int tty; local
732 int tty; local
935 int tty; local
[all...]
/macosx-10.10.1/OpenSSH-189/openssh/
H A Dsshpty.c6 * Allocating a pseudo-terminal, and making it the controlling tty.
59 * descriptors for the pty and tty sides and the name of the tty side are
83 /* Releases the tty. Its ownership is returned to root, and permissions to 0666. */
86 pty_release(const char *tty) argument
89 if (chown(tty, (uid_t) 0, (gid_t) 0) < 0)
90 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno));
91 if (chmod(tty, (mode_t) 0666) < 0)
92 error("chmod %.100s 0666 failed: %.100s", tty, strerror(errno));
96 /* Makes the tty th
99 pty_make_controlling_tty(int *ttyfd, const char *tty) argument
203 pty_setowner(struct passwd *pw, const char *tty) argument
[all...]
/macosx-10.10.1/ruby-106/ruby/lib/rubygems/
H A Dmock_gem_ui.rb32 attr_accessor :tty
34 def tty?()
35 @tty = true unless defined?(@tty)
36 @tty
/macosx-10.10.1/Heimdal-398.1.2/lib/hcrypto/
H A Dui.c120 FILE *tty; local
141 * Don't use /dev/tty for now since server tools want to to
149 tty = stdin;
150 else if ((tty = fopen("/dev/tty", "r")) != NULL)
151 rk_cloexec_file(tty);
153 tty = stdin;
159 tcgetattr(fileno(tty), &t_old);
162 tcsetattr(fileno(tty), TCSANOW, &t_new);
167 c = getc(tty);
[all...]
/macosx-10.10.1/OpenSSH-189/osslshim/ossl/
H A Dossl-ui.c151 FILE *tty; local
175 * Don't use /dev/tty for now since server tools want to to
183 tty = stdin;
184 } else if ((tty = fopen("/dev/tty", "r")) != NULL) {
185 int flg, fd = fileno(tty);
186 /* rk_cloexec_file(tty); */
191 tty = stdin;
198 tcgetattr(fileno(tty), &t_old);
201 tcsetattr(fileno(tty), TCSANO
[all...]
/macosx-10.10.1/lsof-53/lsof/tests/
H A DCkTestDB60 tty -s > /dev/null 2>&1
100 cat << .CAT_MARK > /dev/tty
114 echo " $new" > /dev/tty
118 echo "" > /dev/tty
119 echo $EO "Do you want to continue (y|n) [n]? $EC" > /dev/tty
129 echo "Please answer y or n." > /dev/tty
/macosx-10.10.1/ncurses-44/ncurses/ncurses/trace/
H A Dlib_tracebits.c103 _nc_trace_ttymode(TTY * tty) argument
170 if (tty->c_iflag & ALLIN)
171 lookup_bits(buf, iflags, "iflags", tty->c_iflag);
173 if (tty->c_oflag & ALLOUT)
174 lookup_bits(buf, oflags, "oflags", tty->c_oflag);
176 if (tty->c_cflag & ALLCTRL)
177 lookup_bits(buf, cflags, "cflags", tty->c_cflag);
196 int value = (tty->c_cflag & CSIZE);
211 if (tty->c_lflag & ALLLOCAL)
212 lookup_bits(buf, lflags, "lflags", tty
[all...]
/macosx-10.10.1/ruby-106/ruby/lib/rdoc/stats/
H A Dnormal.rb8 puts "Parsing sources..." if $stdout.tty?
15 return unless $stdout.tty?
44 puts if $stdout.tty?

Completed in 295 milliseconds

1234567891011