a432b5eb5d8987d7d0751fe4180a96ef96618f57
* Copyright (c) 1987, 1993 Regents of the University of California.
* %sccs.include.redist.c%
"@(#) Copyright (c) 1987, 1993 Regents of the University of California.\n\
static char sccsid
[] = "@(#)mesg.c 5.4 (Berkeley) %G%";
while ((ch
= getopt(argc
, argv
, "")) != EOF
)
if ((tty
= ttyname(STDERR_FILENO
)) == NULL
)
if (sb
.st_mode
& S_IWGRP
) {
(void)fprintf(stderr
, "is y\n");
(void)fprintf(stderr
, "is n\n");
if (chmod(tty
, sb
.st_mode
| S_IWGRP
) < 0)
if (chmod(tty
, sb
.st_mode
& ~S_IWGRP
) < 0)
usage
: (void)fprintf(stderr
, "usage: mesg [y | n]\n");