23 delclient_1(&
me.clientdata,
clp);
53 (void) read(
xwinio[0], &lc,
sizeof(lc));
62 Linep p, *q = sendallmylines_1(&
me.clientdata, clp);
67 for (p = *q; p; p = p->next) {
86 me.ln.color =
me.clientdata.color;
106 (
int nprogram,
int nversion,
107 char *servermcnm,
char *boardnm,
char *xdisplaynm,
char *pmcolor) {
109 me.clientdata.color =
atoir(pmcolor, 16);
110 me.clientdata.nprogram = nprogram;
111 me.clientdata.nversion = nversion;
113 strcpy(
me.clientdata.boardnm, boardnm);
114 strcpy(
me.clientdata.xdisplaynm, xdisplaynm);
115 strcat(
me.clientdata.xdisplaynm,
":0.0");
118 sprintf(xwintitle,
"%s@%s color=%lx",
119 boardnm,
me.clientdata.machinenm,
me.clientdata.color);
122 (servermcnm, WhiteBoardServer, WhiteBoardServerVersion,
"tcp");
125 "client730: clnt_create(%s,0x%x,0x%x,%s) failed.\n",
126 servermcnm, WhiteBoardServer, WhiteBoardServerVersion,
"tcp");
131 fprintf(stderr,
"client730: xindow io pipe failed.\n");
137 fprintf(stderr,
"client730: fork was unsuccessful.\n");
165 fprintf(stderr,
"client730: openxwindow(%s, %s) == %d, failed\n",
166 me.clientdata.xdisplaynm, xwintitle, x);
170 addclient_1(&
me.clientdata,
clp);
int sigemptyset(sigset_t *set)
int sigaction(int, const struct sigaction *, struct sigaction *)
long atoir(char *p, int r)
int gethostname(char *name, size_t len)
static void endtheclient(int unused)
int pmap_unset(unsigned long, unsigned long)
int openxwindow(char *, char *)
void startclient(int nprogram, int nversion, char *servermcnm, char *boardnm, char *xdisplaynm, char *pmcolor)
static void readndraw(int unused)
static void exposedwindow(CLIENT *clp)
static void mousewatch(CLIENT *clp)
int kill(pid_t pid, int sig)
int trackpointer(void *, int)
void * callbackfromwbs_1_svc(OneLn *p)