/haiku-fatelf/src/bin/less/ |
H A D | ttyin.c | 27 public int tty; variable 43 tty = (int) CreateFile("CONIN$", GENERIC_READ, 46 GetConsoleMode((HANDLE)tty, &console_mode); 48 SetConsoleMode((HANDLE)tty, ENABLE_PROCESSED_INPUT); 58 tty = open("CON", OPEN_READ); 68 * Try /dev/tty. 74 /* The __open() system call translates "/dev/tty" to "con". */ 75 tty = __open("/dev/tty", OPEN_READ); 77 tty [all...] |
/haiku-fatelf/src/add-ons/kernel/generic/tty/ |
H A D | tty.cpp | 8 // This file could be moved into a generic tty module. 10 // tailored for pseudo-TTYs. Have a look at Be's TTY includes (drivers/tty/*) 29 #include <tty.h> 55 tty::lock: Guards the access to tty::{input_buffer,settings::{termios, 56 window_size,pgrp_id}}. Moreover when held guarantees that tty::open_count 57 won't drop to zero. A tty and the tty connected to it (master and slave) 60 gTTYRequestLock: Guards access to tty::{reader,writer}_queue (most 69 {Reader,Writer}Locker classes. Upon construction they lock the tty, 751 tty_input_putc_locked(struct tty* tty, int c) argument 824 tty_readable(struct tty* tty) argument 837 tty_notify_select_event(struct tty* tty, uint8 event) argument 857 tty_notify_if_available(struct tty* tty, struct tty* otherTTY, bool notifySelect) argument 898 process_input_char(struct tty* tty, char c, char* buffer, size_t* _bytesNeeded) argument 953 process_output_char(struct tty* tty, char c, char* buffer, size_t* _bytesWritten, bool echoed) argument 1323 struct tty* tty = new(std::nothrow) (struct tty); local 1355 tty_destroy(struct tty* tty) argument 1369 tty_create_cookie(struct tty* tty, struct tty* otherTTY, uint32 openMode) argument 1516 struct tty* tty = cookie->tty; local 1630 struct tty* tty = cookie->tty; local 1791 struct tty* tty = cookie->tty; local 1874 struct tty* tty = cookie->tty; local [all...] |
H A D | tty_private.h | 12 #include <tty/tty_module.h> 30 struct tty; 111 struct tty *tty; member in struct:tty_cookie 112 struct tty *other_tty; 128 struct tty { struct 148 extern struct tty *tty_create(tty_service_func func, bool isMaster); 149 extern void tty_destroy(struct tty *tty); 151 extern tty_cookie *tty_create_cookie(struct tty *tt [all...] |
/haiku-fatelf/headers/os/drivers/tty/ |
H A D | ttylayer.h | 34 typedef bool (*tty_service_func)(struct tty *tty, struct ddrover *rover, uint op); 36 struct tty { struct 51 struct tty *ttysel; 55 struct tty *tty; member in struct:ttyfile 99 void (*ttyinit)(struct tty *, bool); 100 void (*ttyilock)(struct tty *, struct ddrover *, bool ); 101 void (*ttyhwsignal)(struct tty *, struct ddrover *, int, bool); 102 int (*ttyin)(struct tty *, struc [all...] |
H A D | tty_module.h | 13 struct tty; 16 typedef bool (*tty_service_func)(struct tty *tty, uint32 op, void *buffer, 48 struct tty *(*tty_create)(tty_service_func serviceFunction, bool isMaster); 49 void (*tty_destroy)(struct tty *tty); 52 (*tty_create_cookie)(struct tty *masterTTY, struct tty *slaveTTY, 72 #define B_TTY_MODULE_NAME "generic/tty/v1"
|
/haiku-fatelf/src/bin/coreutils/man/ |
H A D | nohup.x | 2 nohup \- run a command immune to hangups, with output to a non-tty
|
H A D | tty.x | 2 tty \- print the file name of the terminal connected to standard input
|
/haiku-fatelf/src/libs/util/ |
H A D | login.c | 59 int tty; local 62 for (tty = 1; (ty = getttyent()) != NULL; ++tty) 66 if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY|O_CREAT, 0644)) >= 0) { 67 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), L_SET);
|
/haiku-fatelf/src/add-ons/kernel/drivers/tty/ |
H A D | tty.cpp | 8 // This file could be moved into a generic tty module. 10 // tailored for pseudo-TTYs. Have a look at Be's TTY includes (drivers/tty/*) 29 #include <tty.h> 49 cookies won't be added to/removed from TTYs, and tty::ref_count, 50 tty::open_count, tty_cookie::closed won't change. 60 tty::lock: Guards the access to tty::{input_buffer,settings::{termios, 61 window_size,pgrp_id}}. Moreover when held guarantees that tty::open_count 62 won't drop to zero (both gGlobalTTYLock and tty::lock must be held to 63 decrement it). A tty an 823 reset_tty(struct tty* tty, int32 index, mutex* lock, bool isMaster) argument 837 tty_output_getc(struct tty* tty, int* _c) argument 848 tty_input_putc_locked(struct tty* tty, int c) argument 953 init_tty_cookie(tty_cookie* cookie, struct tty* tty, struct tty* otherTTY, uint32 openMode) argument 1110 tty_readable(struct tty* tty) argument 1123 tty_notify_select_event(struct tty* tty, uint8 event) argument 1143 tty_notify_if_available(struct tty* tty, struct tty* otherTTY, bool notifySelect) argument 1184 process_input_char(struct tty* tty, char c, char* buffer, size_t* _bytesNeeded) argument 1239 process_output_char(struct tty* tty, char c, char* buffer, size_t* _bytesWritten, bool echoed) argument 1504 dump_tty_struct(struct tty& tty) argument 1562 tty_close(struct tty* tty) argument 1576 tty_open(struct tty* tty, tty_service_func func) argument 1595 struct tty* tty = cookie->tty; local 1816 struct tty* tty = cookie->tty; local 1990 struct tty* tty = cookie->tty; local 2073 struct tty* tty = cookie->tty; local [all...] |
H A D | tty_private.h | 27 typedef status_t (*tty_service_func)(struct tty *tty, uint32 op); 33 struct tty; 114 struct tty *tty; member in struct:tty_cookie 115 struct tty *other_tty; 131 struct tty { struct 151 extern tty gMasterTTYs[kNumTTYs]; 152 extern tty gSlaveTTYs[kNumTTYs]; 166 extern void reset_tty(struct tty *tt [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/ports/pc_serial/ |
H A D | Tracing.cpp | 161 trace_tty(struct tty *tty) argument 163 TRACE("struct tty:\n" 164 "\tnopen: %d, flags: 0x%08x,\n", tty->nopen, tty->flags); 167 trace_ddomain(&tty->dd); 169 trace_ddomain(&tty->ddi); 171 TRACE("\tpgid: %08x\n", tty->pgid); 173 trace_termios(&tty->t); 175 TRACE("\tiactivity: %d, ibusy: %d\n", tty [all...] |
H A D | Tracing.h | 39 void trace_tty(struct tty *tty);
|
H A D | Driver.h | 148 typedef bool (*beos_tty_service_func)(struct tty *tty, struct ddrover *rover, uint op); 160 void (*ttyinit)(struct tty *, bool); 161 void (*ttyilock)(struct tty *, struct ddrover *, bool ); 162 void (*ttyhwsignal)(struct tty *, struct ddrover *, int, bool); 163 int (*ttyin)(struct tty *, struct ddrover *, int); 164 int (*ttyout)(struct tty *, struct ddrover *); 183 void (*ttyinit)(struct tty *, bool); 184 void (*ttyilock)(struct tty *, struct ddrover *, bool ); 185 void (*ttyhwsignal)(struct tty *, struc [all...] |
/haiku-fatelf/src/bin/bash/lib/readline/ |
H A D | rltty.c | 75 to get the tty settings. */ 77 set_winsize (tty) 78 int tty; 83 if (ioctl (tty, TIOCGWINSZ, &w) == 0) 84 (void) ioctl (tty, TIOCSWINSZ, &w); 101 struct sgttyb sgttyb; /* Basic BSD tty driver information. */ 165 get_tty_settings (tty, tiop) 166 int tty; 169 set_winsize (tty); 174 if (ioctl (tty, TIOCGET 596 int tty; local 671 int tty; local 874 int tty; local [all...] |
H A D | input.c | 176 int tty; local 186 tty = fileno (rl_instream); 191 FD_SET (tty, &readfds); 192 FD_SET (tty, &exceptfds); 195 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); 203 result = ioctl (tty, FIONREAD, &chars_avail); 211 tem = fcntl (tty, F_GETFL, 0); 213 fcntl (tty, F_SETFL, (tem | O_NDELAY)); 214 chars_avail = read (tty, &input, 1); 216 fcntl (tty, F_SETF 300 int tty; local [all...] |
/haiku-fatelf/src/bin/gdb/readline/ |
H A D | rltty.c | 142 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); 166 struct sgttyb sgttyb; /* Basic BSD tty driver information. */ 226 get_tty_settings (tty, tiop) 227 int tty; 231 set_winsize (tty); 236 if (ioctl (tty, TIOCGET 640 int tty; local 683 int tty; local 790 int tty = fileno (rl_instream); local [all...] |
H A D | input.c | 163 int tty; local 172 tty = fileno (rl_instream); 177 FD_SET (tty, &readfds); 178 FD_SET (tty, &exceptfds); 181 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); 189 result = ioctl (tty, FIONREAD, &chars_avail); 197 tem = fcntl (tty, F_GETFL, 0); 199 fcntl (tty, F_SETFL, (tem | O_NDELAY)); 200 chars_avail = read (tty, &input, 1); 202 fcntl (tty, F_SETF 267 int tty; local [all...] |
/haiku-fatelf/src/libs/ncurses/ncurses/trace/ |
H A D | lib_tracebits.c | 85 _nc_trace_ttymode(TTY * tty) argument 146 if (tty->c_iflag & ALLIN) 147 lookup_bits(buf, iflags, "iflags", tty->c_iflag); 149 if (tty->c_oflag & ALLOUT) 150 lookup_bits(buf, oflags, "oflags", tty->c_oflag); 152 if (tty->c_cflag & ALLCTRL) 153 lookup_bits(buf, cflags, "cflags", tty->c_cflag); 179 int value = (tty->c_cflag & CSIZE); 194 if (tty->c_lflag & ALLLOCAL) 195 lookup_bits(buf, lflags, "lflags", tty [all...] |
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | winsize.c | 80 int tty; local 82 tty = input_tty (); 83 if (tty >= 0 && (ioctl (tty, TIOCGWINSZ, &win) == 0) &&
|
/haiku-fatelf/src/bin/coreutils/src/ |
H A D | tty.c | 0 /* tty -- print the name of the terminal connected to standard input 17 /* Displays "not a tty" if stdin is not a terminal. 19 Exit status 0 if stdin is a tty, 1 if not, 2 if usage error, 41 #define PROGRAM_NAME "tty" 81 char *tty; local 115 tty = ttyname (STDIN_FILENO); 118 if (tty) 119 puts (tty); 121 puts (_("not a tty"));
|
/haiku-fatelf/src/add-ons/kernel/bus_managers/tty/ |
H A D | tty.cpp | 22 #include <tty.h> 27 #include <tty/ttylayer.h> 98 tty_init(struct tty *, bool) 104 tty_ilock(struct tty *, struct ddrover *, bool ) 110 tty_hwsignal(struct tty *, struct ddrover *, int, bool) 116 tty_in(struct tty *, struct ddrover *, int) 123 tty_out(struct tty *, struct ddrover *)
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | getpass.c | 90 FILE *tty; local 101 tty = fopen ("/dev/tty", "w+"); 102 if (tty == NULL) 110 __fsetlocking (tty, FSETLOCKING_BYCALLER); 112 out = in = tty; 171 call_fclose (tty);
|
/haiku-fatelf/src/bin/multiuser/ |
H A D | multiuser_utils.cpp | 27 // open tty 28 FILE* tty = NULL; local 30 // TODO: Open tty with O_NOCTTY! 31 tty = fopen("/dev/tty", "w+"); 32 if (tty == NULL) { 33 fprintf(stderr, "Error: Failed to open tty: %s\n", strerror(errno)); 37 in = tty; 38 out = tty; 40 CObjectDeleter<FILE, int> ttyCloser(tty, fclos [all...] |
/haiku-fatelf/src/bin/network/wget/lib/ |
H A D | getpass.c | 89 FILE *tty; local 100 tty = fopen ("/dev/tty", "w+"); 101 if (tty == NULL) 109 __fsetlocking (tty, FSETLOCKING_BYCALLER); 111 out = in = tty; 170 call_fclose (tty);
|
/haiku-fatelf/src/add-ons/kernel/drivers/ports/usb_serial/ |
H A D | Driver.h | 50 bool usb_serial_service(struct tty *tty, uint32 op, void *buffer,
|