Lines Matching refs:request
9 * Routines for controlled update/initialization of request structures.
14 * request_set() adds information to an already initialized request structure.
40 /* request_fill - request update engine */
42 static struct request_info *request_fill(request, ap)
43 struct request_info *request;
53 return (request);
55 request->fd = va_arg(ap, int);
58 request->client->sin = va_arg(ap, struct sockaddr_gen *);
61 request->server->sin = va_arg(ap, struct sockaddr_gen *);
69 ptr = request->daemon;
72 ptr = request->user;
75 ptr = request->client->name;
78 ptr = request->client->addr;
81 ptr = request->server->name;
84 ptr = request->server->addr;
89 return (request);
92 /* request_init - initialize request structure */
94 struct request_info *VARARGS(request_init, struct request_info *, request)
105 VASTART(ap, struct request_info *, request);
106 *request = default_info;
107 request->fd = -1;
108 strcpy(request->daemon, unknown);
109 sprintf(request->pid, "%d", getpid());
110 request->client->request = request;
111 request->server->request = request;
112 r = request_fill(request, ap);
117 /* request_set - update request structure */
119 struct request_info *VARARGS(request_set, struct request_info *, request)
124 VASTART(ap, struct request_info *, request);
125 r = request_fill(request, ap);