Lines Matching refs:ctl

53 int getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp);
54 int putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags);
55 int getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip,
57 int putpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int pri,
60 static int msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval,
64 getmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *flagsp)
90 if ((error = msgio(fdes, ctl, data, &rv, FREAD, &pri,
108 putmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int flags)
132 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &realflags);
140 getpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int *prip,
156 error = msgio(fdes, ctl, data, &rv, FREAD, &pri, &flags);
168 putpmsg(int fdes, struct strbuf *ctl, struct strbuf *data, int intpri,
178 error = msgio(fdes, ctl, data, &rv, FWRITE, &pri, &flags);
190 msgio(int fdes, struct strbuf *ctl, struct strbuf *data, int *rval,
223 if ((ctl != NULL) &&
224 copyin(ctl, &msgctl, sizeof (struct strbuf))) {
235 if (ctl == NULL)
255 if (((ctl != NULL) &&
256 copyout(&msgctl, ctl, sizeof (struct strbuf))) ||
269 if (ctl == NULL)
289 static int msgio32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data,
293 getmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t *flagsp)
319 if ((error = msgio32(fdes, ctl, data, &rv, FREAD, &pri,
337 putmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t flags)
361 error = msgio32(fdes, ctl, data, &rv, FWRITE, &pri, &realflags);
369 getpmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t *prip,
385 error = msgio32(fdes, ctl, data, &rv, FREAD, &pri, &flags);
397 putpmsg32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int32_t intpri,
407 error = msgio32(fdes, ctl, data, &rv, FWRITE, &pri, &flags);
419 msgio32(int fdes, struct strbuf32 *ctl, struct strbuf32 *data, int *rval,
453 if (ctl != NULL) {
454 if (copyin(ctl, &msgctl32, sizeof (msgctl32))) {
473 if (ctl == NULL)
493 if (ctl != NULL) {
498 if (copyout(&msgctl32, ctl, sizeof (msgctl32))) {
520 if (ctl == NULL)