Lines Matching refs:reqp
62 REQUEST *reqp; local
108 reqp = calloc(sizeof (*reqp), 1);
109 reqp->copies = 1;
110 reqp->priority = -1;
142 reqp->copies = atoi(p);
146 reqp->destination = Strdup(p);
150 appendlist (&reqp->file_list, p);
155 reqp->form = Strdup(p);
160 reqp->actions |= ACT_RESUME;
162 reqp->actions |= ACT_HOLD;
164 reqp->actions |= ACT_IMMEDIATE;
169 reqp->actions |= ACT_MAIL;
171 reqp->actions |= ACT_WRITE;
173 reqp->actions |= ACT_NOTIFY;
175 reqp->alert = Strdup(p);
179 reqp->options = Strdup(p);
183 reqp->priority = atoi(p);
187 reqp->pages = Strdup(p);
192 reqp->charset = Strdup(p);
196 reqp->title = Strdup(p);
200 reqp->modes = Strdup(p);
204 reqp->input_type = Strdup(p);
208 reqp->user = Strdup(p);
212 reqp->actions |= ACT_RAW;
216 reqp->actions |= ACT_FAST;
220 reqp->outcome = (ushort)strtol(p, (char **)0, 16);
240 reqp->copies <= 0
241 || !reqp->file_list || !*(reqp->file_list)
242 || reqp->priority < -1 || 39 < reqp->priority
243 || STREQU(reqp->input_type, NAME_ANY)
244 || STREQU(reqp->input_type, NAME_TERMINFO)
246 freerequest (reqp);
254 if (!reqp->destination || !*reqp->destination) {
255 if (reqp->destination)
256 Free (reqp->destination);
257 reqp->destination = Strdup(NAME_ANY);
259 if (!reqp->input_type || !*reqp->input_type) {
260 if (reqp->input_type)
261 Free (reqp->input_type);
262 reqp->input_type = Strdup(NAME_SIMPLE);
265 return (reqp);