#include <sys/types.h>#include <fcntl.h>#include <termios.h>#include <signal.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <stdarg.h>#include <errno.h>#include <sys/wait.h>#include <sys/stat.h>Include dependency graph for term.c:

Go to the source code of this file.
Data Structures | |
| struct | param_s |
Defines | |
| #define | CHUNK 1024 |
| #define | HOTKEY '\035' |
| #define | NIL ((char *) NULL) |
Functions | |
| _PROTOTYPE (int main,(int argc, char *argv[])) | |
| _PROTOTYPE (int isdialstr,(char *arg)) | |
| _PROTOTYPE (void tell,(int fd,...)) | |
| _PROTOTYPE (void reader,(int on)) | |
| _PROTOTYPE (void shell,(char *cmd)) | |
| _PROTOTYPE (void lock_device,(char *device)) | |
| _PROTOTYPE (void fatal,(char *label)) | |
| _PROTOTYPE (void setnum,(char *s, int n)) | |
| _PROTOTYPE (void set_uart,(int argc, char *argv[], struct termios *tcp)) | |
| _PROTOTYPE (void set_raw,(struct termios *tcp)) | |
| _PROTOTYPE (void quit,(int code)) | |
| int | main (int argc, argv) |
| int | isdialstr (char *arg) |
| void | tell (int fd,...) |
| void | reader (int on) |
| void | shell (char *cmd) |
| void | lock_device (char *device) |
| void | fatal (char *label) |
| void | setnum (char *s, int n) |
| void | set_uart (int argc, argv, struct termios *tcp) |
| void | set_raw (struct termios *tcp) |
| void | quit (int code) |
Variables | |
| char | TERM_LINE [] = "/dev/modem" |
| char | lockfile [] = "/usr/spool/locks/LK.iii.jjj.kkk" |
| char * | commdev |
| int | commfd |
| termios | tccomm |
| termios | tcstdin |
| termios | tcsavestdin |
| param_s | params [] |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 460 of file term.c. References errno, exit(), NIL, strerror(), and tell(). |
|
|
|
|
|
Definition at line 393 of file term.c. References EEXIST, ENOENT, errno, exit(), fatal(), lockfile, n, NIL, O_CREAT, O_EXCL, O_RDONLY, O_WRONLY, open, pid, S_ISCHR, setnum(), stat::st_dev, stat::st_mode, stat::st_rdev, stat, tell(), and umask. |
|
||||||||||||
|
|
|
|
Definition at line 531 of file term.c. References exit(), lockfile, reader(), TCSANOW, tcsavestdin, tcsetattr, and unlink. |
|
|
Definition at line 301 of file term.c. References _exit, CHUNK, commdev, commfd, errno, fork, getppid, kill, m, n, NIL, NULL, pid, quit, r, read, SIGKILL, SIGTERM, strerror(), tell(), waitpid, and write. |
|
|
Definition at line 518 of file term.c. References ECHO, ECHONL, ICANON, ICRNL, IEXTEN, IGNCR, INLCR, ISIG, IXOFF, IXON, OPOST, VMIN, and VTIME. |
|
||||||||||||||||
|
Definition at line 476 of file term.c. References arg, BAD, BITS, termios::c_cflag, cfsetispeed, cfsetospeed, CSIZE, i, NIL, params, PARENB, param_s::PARITY, PARODD, param_s::pattern, quit, param_s::SPEED, strcmp, tell(), param_s::type, and param_s::value. |
|
||||||||||||
|
Definition at line 467 of file term.c. References i. Referenced by lock_device(). |
|
|
Definition at line 340 of file term.c. References _exit, _PROTOTYPE, close, commdev, commfd, dup2, errno, execl, fork, getenv(), getgid, getuid, NIL, NULL, pid, setgid, setuid, SIG_IGN, SIGINT, signal(), SIGQUIT, SIGTERM, strerror(), strrchr(), tell(), and waitpid. |
|
||||||||||||
|
Definition at line 289 of file term.c. References NIL, s, strlen(), va_arg, va_end, va_start, and write. |
|
|
|
|
|
|
|
|
Definition at line 71 of file term.c. Referenced by lock_device(), and quit(). |
|
|
Referenced by cstart(), exec_image(), get_parameters(), init_params(), process_params(), qp_export(), queryparam(), save_parameters(), and set_uart(). |
|
|
|
|
|
Definition at line 77 of file term.c. Referenced by quit(). |
|
|
|
|
|
|
1.4.6