Lines Matching defs:tty
304 * Turn the tty write permission on or off.
312 char *tty;
314 /* Find the tty, get the current permissions. */
315 if ((tty = ttyname(STDERR_FILENO)) == NULL) {
320 if (stat(tty, &sb) < 0) {
322 msgq(sp, M_SYSERR, "%s", tty);
332 if (chmod(tty, sb.st_mode | S_IWGRP) < 0) {
335 "046|messages not turned on: %s", tty);
339 if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0) {
342 "045|messages not turned off: %s", tty);