Lines Matching defs:md
43 static int _mwrite ( MESG * md , char * msgbuf , int );
54 mflush(MESG *md)
59 if (md == NULL || md->mque == NULL) {
64 while ((p = md->mque) != NULL) {
65 if (_mwrite(md, p->dat->buf, p->dat->len) != 0)
69 md->mque = p->next;
83 * and md->mque is updated.
87 int mwrite ( MESG * md, char * msgbuf )
94 if (md == NULL)
112 if (md->mque)
115 if (_mwrite(md, msgbuf, size) == 0)
137 if ((q = md->mque) != NULL)
144 while ((p = md->mque) != NULL)
146 if (_mwrite(md, p->dat->buf, p->dat->len) != 0) {
151 md->mque = p->next;
158 md->mque = p;
163 int _mwrite ( MESG * md, char * msgbuf , int size )
169 switch (md->type)
187 if (Putmsg(md, &ctl, &dat, flag) == 0)
193 switch (write3_2(md, msgbuf, size))