Searched refs:tty (Results 26 - 50 of 71) sorted by relevance

123

/haiku-fatelf/src/libs/util/
H A Dlogin_ok.c128 login_ttyok(login_cap_t *lc, const char *tty, const char *allowcap, argument
133 if (lc != NULL && tty != NULL && *tty != '\0') {
138 te = getttynam(tty); /* Need group name */
142 if (ttl != NULL && !login_str2inlist(ttl, tty, grp, 0))
143 rc = 0; /* tty or ttygroup not in allow list */
147 if (ttl != NULL && login_str2inlist(ttl, tty, grp, 0))
148 rc = 0; /* tty or ttygroup in deny list */
158 * Determine whether or not login on a tty is accessible for
163 auth_ttyok(login_cap_t *lc, const char * tty) argument
[all...]
/haiku-fatelf/src/system/libroot/posix/stdlib/
H A Dpty.cpp13 #include <tty.h>
/haiku-fatelf/src/bin/gdb/gdb/
H A Dinflow.c70 /* Our own tty state, which we restore every time we need to deal with the
95 /* The name of the tty (from the `tty' command) that we gave to the inferior
123 /* Get all the current tty settings (including whether we have a
124 tty at all!). Can't do this in _initialize_inflow because
250 OOPSY ("setting tty state");
265 `sharing' in the sense that we need to save and restore tty
268 the saving and restoring of the tty state, but ignore errors
360 the tty state when it needs to.
365 /* Set tty stat
522 int tty; local
[all...]
H A Ddcache.c179 static void dcache_info (char *exp, int tty);
557 dcache_info (char *exp, int tty) argument
/haiku-fatelf/src/add-ons/kernel/drivers/ports/pc_serial/
H A DSerialDevice.h51 bool Service(struct tty *tty, uint32 op,
54 bool Service(struct tty *ptty, struct ddrover *ddr,
151 struct tty * fMasterTTY;
152 struct tty * fSlaveTTY;
156 struct tty fTTY;
H A DSerialDevice.cpp51 memset(&fTTY, 0, sizeof(tty));
239 SerialDevice::Service(struct tty *tty, uint32 op, void *buffer, size_t length) argument
244 if (tty != fMasterTTY)
357 SerialDevice::Service(struct tty *ptty, struct ddrover *ddr, uint flags)
568 TRACE_ALWAYS("open: failed to init master tty\n");
574 TRACE_ALWAYS("open: failed to init slave tty\n");
581 TRACE_ALWAYS("open: failed to init tty cookie\n");
592 fTTYFile.tty = &fTTY;
609 TRACE_ALWAYS("open: failed to open tty\
[all...]
/haiku-fatelf/src/apps/login/
H A DLoginApp.h33 int getpty(char *pty, char *tty);
H A DLoginApp.cpp220 LoginApp::getpty(char *pty, char *tty) argument
232 sprintf(tty, "/dev/tt/%c%c", major[i], minor[j]);
/haiku-fatelf/src/add-ons/kernel/drivers/tty/
H A Dmaster.cpp26 struct tty gMasterTTYs[kNumTTYs];
30 master_service(struct tty *tty, uint32 op) argument
38 create_master_cookie(master_cookie *&cookie, struct tty *master,
39 struct tty *slave, uint32 openMode)
H A Dslave.cpp29 struct tty gSlaveTTYs[kNumTTYs];
35 // Get the tty index: Opening "/dev/tty" means opening the process'
36 // controlling tty.
38 if (strcmp(name, "tty") == 0) {
61 // We only allow session leaders to open the tty initially.
72 // to open the tty again.
79 // The tty is not associated with a session yet. The process needs
/haiku-fatelf/src/add-ons/kernel/drivers/ports/usb_serial/
H A DSerialDevice.h58 bool Service(struct tty *tty, uint32 op,
146 struct tty * fMasterTTY;
147 struct tty * fSlaveTTY;
H A DDriver.cpp197 usb_serial_service(struct tty *tty, uint32 op, void *buffer, size_t length) argument
199 TRACE_FUNCALLS("> usb_serial_service(%p, 0x%08lx, %p, %lu)\n", tty,
204 && gSerialDevices[i]->Service(tty, op, buffer, length)) {
/haiku-fatelf/src/add-ons/kernel/generic/tty/
H A Dmodule.cpp15 #include <tty/tty_module.h>
28 recursive_lock_init(&gTTYRequestLock, "tty requests");
31 mutex_init(&gGlobalTTYLock, "tty global");
34 mutex_init(&gTTYCookieLock, "tty cookies");
/haiku-fatelf/src/bin/gdb/readline/
H A Dterminal.c196 _rl_get_screen_size (tty, ignore_env)
197 int tty, ignore_env;
205 if (ioctl (tty, TIOCGWINSZ, &window_size) == 0)
380 int tty, tgetent_ret; local
384 tty = rl_instream ? fileno (rl_instream) : 0;
405 _rl_get_screen_size (tty, 0);
439 _rl_get_screen_size (tty, 0);
487 _rl_get_screen_size (tty, 0);
/haiku-fatelf/src/bin/bash/lib/readline/
H A Dterminal.c224 _rl_get_screen_size (tty, ignore_env)
225 int tty, ignore_env;
235 if (ioctl (tty, TIOCGWINSZ, &window_size) == 0)
426 int tty, tgetent_ret; local
430 tty = rl_instream ? fileno (rl_instream) : 0;
471 _rl_get_screen_size (tty, 0);
521 _rl_get_screen_size (tty, 0);
/haiku-fatelf/src/apps/codycam/
H A DSpawningUploadClient.cpp108 SpawningUploadClient::getpty(char *pty, char *tty) argument
120 sprintf(tty, "/dev/tt/%c%c", major[i], minor[j]);
H A DSpawningUploadClient.h38 int getpty(char *pty, char *tty);
/haiku-fatelf/src/bin/coreutils/src/
H A Dsu.c162 const char *new_user, *old_user, *tty; local
179 tty = ttyname (STDERR_FILENO);
180 if (!tty)
181 tty = "none";
198 old_user, tty);
229 error (0, 0, _("getpass: cannot open /dev/tty"));
/haiku-fatelf/src/bin/bash/
H A Dnojobs.c92 /* The controlling tty for this shell. */
409 /* Initialize the job control mechanism, and set up the tty stuff. */
469 anything else with it. ASYNC_P says what to do with the tty. If
850 /* Fill the contents of shell_tty_info with the current tty info. */
853 int tty; local
855 tty = input_tty ();
856 if (tty != -1)
858 ttgetattr (tty, &shell_tty_info);
865 /* Make the current tty use the state in shell_tty_info. */
869 int tty; local
[all...]
H A Djobs.c58 machines with the termio or termios tty drivers. */
171 /* The controlling tty for this shell. */
1677 anything else with it. ASYNC_P says what to do with the tty. If
1907 /* When we end a job abnormally, or if we stop a job, we set the tty to the
1909 to the state of the tty. */
1919 /* Since the BSD tty driver does not allow us to change the tty modes
1926 existing is the flaw in the BSD tty driver. */
1964 /* Fill the contents of shell_tty_info with the current tty info. */
1968 int tty; local
2005 int tty; local
[all...]
H A Dgeneral.c367 of /dev/tty to fail. */
380 char *tty; local
382 tty_fd = open ("/dev/tty", O_RDWR|O_NONBLOCK);
386 tty = (char *)ttyname (fileno (stdin));
387 if (tty == 0)
389 tty_fd = open (tty, O_RDWR|O_NONBLOCK);
/haiku-fatelf/src/bin/less/
H A Dscreen.c234 extern int tty;
276 tcgetattr(tty, &s);
435 fsync(tty);
437 tcsetattr(tty, TCSADRAIN, &s);
447 ioctl(tty, TIOCSETD, &save_term.c_line);
463 ioctl(tty, TCGETA, &s);
499 ioctl(tty, TCSETAW, &s);
513 ioctl(tty, TIOCGETP, &s);
542 ioctl(tty, TIOCSETN, &s);
556 _gs_opt(tty,
[all...]
/haiku-fatelf/src/bin/rcs/
H A Drcsgen.c149 int interactiveflag; /* Should we act as if stdin is a tty? */
432 register int tty = ttystdin(); local
434 if (tty) {
455 } else if (tty) {
/haiku-fatelf/src/bin/debug/strace/
H A Dioctl.cpp14 #include <tty.h>
/haiku-fatelf/src/libs/edit/
H A DMakefile10 parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c

Completed in 132 milliseconds

123