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

/haiku/src/add-ons/kernel/generic/tty/
H A Dmodule.cpp15 #include <tty/tty_module.h>
48 dump_tty_struct(struct tty& tty) argument
50 kprintf(" tty @: %p\n", &tty);
51 kprintf(" is_master: %s\n", tty.is_master ? "true" : "false");
52 kprintf(" open_count: %" B_PRId32 "\n", tty.open_count);
53 kprintf(" select_pool: %p\n", tty.select_pool);
54 kprintf(" pending_eof: %" B_PRIu32 "\n", tty.pending_eof);
57 kprintf(" first: %" B_PRId32 "\n", tty
92 struct tty* tty = (struct tty*)index; local
[all...]
H A Dtty.cpp24 #include <tty.h>
50 tty::lock: Guards the access to tty::{input_buffer,settings::{termios,
51 window_size,pgrp_id}}. Moreover when held guarantees that tty::open_count
52 won't drop to zero. A tty and the tty connected to it (master and slave)
55 gTTYRequestLock: Guards access to tty::{reader,writer}_queue (most
64 {Reader,Writer}Locker classes. Upon construction they lock the tty,
65 (tty::lock) create a RequestOwner and queue Requests in the respective
66 reader/writer queues (tty
802 tty_input_putc_locked(struct tty* tty, int c) argument
875 tty_readable(struct tty* tty) argument
895 tty_notify_select_event(struct tty* tty, uint8 event) argument
915 tty_notify_if_available(struct tty* tty, struct tty* otherTTY, bool notifySelect) argument
956 process_input_char(struct tty* tty, char c, char* buffer, size_t* _bytesNeeded) argument
1012 process_output_char(struct tty* tty, char c, char* buffer, size_t* _bytesWritten, bool echoed) argument
1330 struct tty* tty = new(std::nothrow) (struct tty); local
1381 tty_destroy(struct tty* tty) argument
1399 tty_create_cookie(struct tty* tty, struct tty* otherTTY, uint32 openMode, tty_cookie** _cookie) argument
1558 struct tty* tty = cookie->tty; local
1677 struct tty* tty = cookie->tty; local
1993 struct tty* tty = cookie->tty; local
2076 struct tty* tty = cookie->tty; local
[all...]
H A Dtty_private.h12 #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
150 extern status_t tty_create(tty_service_func func, struct tty *masterTTY,
151 struct tty **tty);
152 extern void tty_destroy(struct tty *tt
[all...]
/haiku/headers/os/drivers/tty/
H A Dtty_module.h13 struct tty;
16 typedef bool (*tty_service_func)(struct tty *tty, uint32 op, void *buffer,
49 status_t (*tty_create)(tty_service_func serviceFunction, struct tty *master,
50 struct tty **tty);
51 void (*tty_destroy)(struct tty *tty);
53 status_t (*tty_create_cookie)(struct tty *masterTTY, struct tty *slaveTT
[all...]
/haiku/src/add-ons/kernel/drivers/pty/
H A Ddriver.cpp20 #include <drivers/tty.h>
43 // reserve space for "pt/" and "tt/" entries, "ptmx", "tty",
46 struct tty* gMasterTTYs[kNumTTYs];
47 struct tty* gSlaveTTYs[kNumTTYs];
69 mutex_init(&gGlobalTTYLock, "tty global");
105 gDeviceNames[2 * kNumTTYs + 1] = (char *)"tty";
165 get_tty_index(struct tty *tty) argument
169 if (tty == gMasterTTYs[i] || tty
182 master_service(struct tty *tty, uint32 op, void *buffer, size_t length) argument
190 slave_service(struct tty *tty, uint32 op, void *buffer, size_t length) argument
349 struct tty *tty = cookie->tty; local
378 struct tty* tty = cookie->tty; local
[all...]
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DDriver.h48 bool usb_serial_service(struct tty *tty, uint32 op, void *buffer,
H A DSerialDevice.h58 bool Service(struct tty *tty, uint32 op,
147 struct tty * fMasterTTY;
148 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)) {
H A DSerialDevice.cpp214 SerialDevice::Service(struct tty *tty, uint32 op, void *buffer, size_t length) argument
219 if (tty != fMasterTTY)
300 TRACE_ALWAYS("open: failed to init master tty\n");
306 TRACE_ALWAYS("open: failed to init slave tty\n");
313 TRACE_ALWAYS("open: failed to init system tty cookie\n");
321 TRACE_ALWAYS("open: failed to init device tty cookie\n");
385 // we don't overrun the tty line buffer and cause it to block. While
391 TRACE_ALWAYS("failed to write to tty: %s\n", strerror(result));
400 // Write to the device as long as there's anything in the tty buffe
[all...]
/haiku/src/system/libroot/posix/stdlib/
H A Dpty.cpp13 #include <tty.h>
/haiku/src/apps/login/
H A DLoginApp.h32 int getpty(char *pty, char *tty);
H A DLoginApp.cpp194 LoginApp::getpty(char *pty, char *tty) argument
206 sprintf(tty, "/dev/tt/%c%c", major[i], minor[j]);
/haiku/src/bin/multiuser/
H A Dmultiuser_utils.cpp27 // open tty
28 FileCloser tty; local
30 // TODO: Open tty with O_NOCTTY!
31 tty.SetTo(fopen("/dev/tty", "w+"));
32 if (!tty.IsSet()) {
33 fprintf(stderr, "Error: Failed to open tty: %s\n",
38 in = tty.Get();
39 out = tty.Get();
46 fprintf(in, "Error: Failed to get tty attribute
[all...]
/haiku/src/add-ons/kernel/drivers/ports/pc_serial/
H A DSerialDevice.h46 bool Service(struct tty *tty, uint32 op,
148 struct tty * fMasterTTY;
149 struct tty * fSlaveTTY;
H A DDriver.h148 bool pc_serial_service(struct tty *tty, uint32 op, void *buffer,
H A DDriver.cpp614 pc_serial_service(struct tty *tty, uint32 op, void *buffer, size_t length) argument
616 TRACE_FUNCALLS("> pc_serial_service(%p, 0x%08lx, %p, %lu)\n", tty,
622 && gSerialDevices[i]->Service(tty, op, buffer, length)) {
H A DSerialDevice.cpp250 SerialDevice::Service(struct tty *tty, uint32 op, void *buffer, size_t length) argument
256 if (tty != fMasterTTY)
550 TRACE_ALWAYS("open: failed to init master tty\n");
556 TRACE_ALWAYS("open: failed to init slave tty\n");
563 TRACE_ALWAYS("open: failed to init system tty cookie\n");
571 TRACE_ALWAYS("open: failed to init device tty cookie\n");
585 TRACE_ALWAYS("open: failed to open tty\n");
650 // we don't overrun the tty line buffer and cause it to block. While
657 TRACE_ALWAYS("failed to write to tty
[all...]
/haiku/src/apps/codycam/
H A DSpawningUploadClient.cpp123 SpawningUploadClient::getpty(char* pty, char* tty) argument
135 sprintf(tty, "/dev/tt/%c%c", major[i], minor[j]);
H A DSpawningUploadClient.h49 int getpty(char* pty, char* tty);
/haiku/headers/private/kernel/
H A Dteam.h50 void team_set_controlling_tty(void* tty);
52 status_t team_set_foreground_process_group(void *tty, pid_t processGroup);
/haiku/src/bin/debug/strace/
H A Dioctl.cpp15 #include <tty.h>
/haiku/src/bin/network/telnetd/
H A Dsys_term.c46 # include <sys/tty.h>
886 * kernel tty structure. We need remember the state of
899 * Make sure that we don't have a controlling tty, and
916 * set up the tty modes as we like them to be.
950 * Set the tty modes, and make this our controlling tty.
977 * making sure that we have a clean tty.
1014 * We get our controlling tty assigned as a side-effect
1015 * of opening up a tty device. But on BSD based systems,
1018 * it out before opening the tty
[all...]
/haiku/src/system/kernel/
H A Dteam.cpp3012 team_set_controlling_tty(void* tty) argument
3023 session->controlling_tty = tty;
3045 team_set_foreground_process_group(void* tty, pid_t processGroupID) argument
3056 // check given TTY -- must be the controlling tty of the calling process
3057 if (session->controlling_tty != tty)
/haiku/src/bin/network/ftpd/
H A Dftpd.c186 char *tty = ttyline; /* for klogin */ variable

Completed in 201 milliseconds