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

1234567891011

/macosx-10.9.5/Heimdal-323.92.1/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.9.5/ruby-104/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.9.5/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.9.5/less-23/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.9.5/tcl-102/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.9.5/bash-92/bash-3.2/examples/scripts/
H A Dxterm_title18 exec </dev/tty
21 echo -e "\033[21t\c" > /dev/tty
/macosx-10.9.5/ksh-20/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.9.5/Libc-997.90.3/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.9.5/xnu-2422.115.4/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.9.5/xnu-2422.115.4/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.9.5/passwordserver_sasl-170/cyrus_sasl/mac/libdes/src/
H A Dread_pwd.c100 /* crypto/des/read_pwd.c */ /* Copyright (C) 1995-1997 Eric Young (eay@mincom.oz.au) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@mincom.oz.au). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tjh@mincom.oz.au). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (eay@mincom.oz.au)" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson (tjh@mincom.oz.au)" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ #ifdef WIN16TTY #undef WIN16 #undef _WINDOWS #include <graph.h> #endif /* 06-Apr-92 Luke Brennan Support for VMS */ #include "des_locl.h" #include <signal.h> #include <string.h> #include <setjmp.h> #include <errno.h> /* There are 5 types of terminal interface supported, * TERMIO, TERMIOS, VMS, MSDOS and SGTTY */ #if defined(__sgi) && !defined(TERMIOS) #define TERMIOS #undef TERMIO #undef SGTTY #endif #if defined(linux) && !defined(TERMIO) #undef TERMIOS #define TERMIO #undef SGTTY #endif #ifdef _LIBC #define TERMIO #endif #if !defined(TERMIO) && !defined(TERMIOS) && !defined(VMS) && !defined(MSDOS) #define SGTTY #endif #ifdef TERMIOS #include <termios.h> #define TTY_STRUCT struct termios #define TTY_FLAGS c_lflag #define TTY_get(tty,data) tcgetattr(tty,data) #define TTY_set(tty,data) tcsetattr(tty,TCSANOW,data) #endif #ifdef TERMIO #include <termio.h> #define TTY_STRUCT struct termio #define TTY_FLAGS c_lflag #define TTY_get(tty,data) ioctl(tty,TCGETA,data) #define TTY_set(tty,data) ioctl(tty,TCSETA,data) #endif #ifdef SGTTY #include <sgtty.h> #define TTY_STRUCT struct sgttyb #define TTY_FLAGS sg_flags #define TTY_get(tty,data) ioctl(tty,TIOCGET
1 /* crypto/des/read_pwd.c */ local
[all...]
/macosx-10.9.5/sudo-72/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.9.5/bash-92/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.9.5/ksh-20/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.]"
60 register char *tty; local
84 if(!(tty=ttyname(0)))
86 tty = ERROR_translate(0, 0, 0, "not a tty");
[all...]
/macosx-10.9.5/xnu-2422.115.4/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.9.5/PowerManagement-420.90.1/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.9.5/bash-92/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.9.5/OpenSSH-186/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.9.5/ruby-104/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.9.5/Heimdal-323.92.1/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.9.5/OpenSSH-186/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.9.5/lsof-52/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.9.5/ncurses-42/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.9.5/ruby-104/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 307 milliseconds

1234567891011