Lines Matching defs:terminal
81 static FILE *fp; /* File pointer for receipient's terminal */
82 static char *rterm, *receipient; /* Pointer to receipient's terminal & name */
95 char *terminal, *ownterminal, *oterminal;
122 gettext("user_name [terminal]"));
129 /* Set "rterm" to location where receipient's terminal will go. */
132 terminal = NULL;
136 gettext("user_name [terminal]"));
144 /* Was a terminal name supplied? If so, save it. */
148 gettext("user_name [terminal]"));
151 terminal = *++argv;
155 /* terminal in "/dev". */
161 gettext("I cannot determine your terminal name."
189 /* If a terminal name was supplied, is this login at the correct */
190 /* terminal? If not, ignore. If it is right place, copy over the */
193 if (terminal != NULL) {
194 if (strncmp(terminal, &ubuf->ut_line[0],
205 /* If no terminal was supplied, then take this terminal if no */
206 /* other terminal has been encountered already. */
233 /* If this is the second terminal, print out the first. In all */
237 else if (terminal == NULL) {
259 if (terminal != NULL && *rterm == '\0') {
265 if (strlcat(rterminal, terminal, sizeof (rterminal)) >=
285 gettext("%s permission denied\n"), terminal);
290 receipient, terminal);
330 gettext("Warning: You have your terminal set to \"mesg -n\"."
336 /* Try to open up the line to the receipient's terminal. */
517 * permit: check mode of terminal - if not writable by all disallow writing to
548 * permit1: check mode of terminal - if not writable by all disallow writing