wall.c revision 1eabc4bec6d2a5ad71f6a1f0c019af5438d8b1bf
327N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
327N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5680N/A#include <libzonecfg.h>
5680N/A#include <libcontract.h>
5636N/Astatic char *copy_str_till(char *, char *, char, int);
3817N/Astatic int init_template(void);
char *term_name;
int aflag = 0;
int errflg = 0;
int zflg = 0;
int Zflg = 0;
aflag++;
if (gflag) {
grpname);
gflag++;
zflg++;
Zflg++;
errflg++;
if (errflg) {
f = stdin;
if (infile) {
if (f == NULL) {
size_t n;
ptr += n;
(void) fclose(f);
char *cp;
sizeof (who));
if (zflg != 0) {
if ((zoneidlist =
return (errno);
} else if (Zflg != 0) {
return (errno);
return (errno);
goto again;
return (src);
return (src);
return (src);
struct utmpx *p;
setutxent();
endutxent();
i = (int)wait((int *)0);
char *bp;
int ibp;
FILE *f;
(void) wait((int *)0);
(void) alarm(0);
if (zoneenter)
if (gflag)
_exit(0);
s = &device[0];
closelog();
#ifdef DEBUG
if (f == NULL) {
(void) fprintf(f,
if (gflag)
#ifdef DEBUG
(void) fflush(f);
(void) fclose(f);
_exit(0);
init_template(void) {
int fd = 0;
int err = 0;
return (fd);