Lines Matching refs:lq
249 free_logging_data(logging_data *lq)
251 if (lq != NULL) {
252 free(lq->ld_host);
253 free(lq->ld_netid);
255 if (lq->ld_nb != NULL) {
256 free(lq->ld_nb->buf);
257 free(lq->ld_nb);
260 free(lq->ld_path);
261 free(lq->ld_rpath);
263 free(lq);
270 logging_data *lq;
275 lq = logging_head;
276 if (lq) {
277 logging_head = lq->ld_next;
287 return (lq);
291 do_logging_queue(logging_data *lq)
296 while (lq) {
299 if (lq->ld_host == NULL) {
301 cln_init_lazy(&cln, lq->ld_netid, lq->ld_nb);
304 host = lq->ld_host;
306 audit_mountd_mount(host, lq->ld_path, lq->ld_status); /* BSM */
309 if (lq->ld_rpath)
310 mntlist_new(host, lq->ld_rpath);
312 if (lq->ld_host == NULL)
315 free_logging_data(lq);
319 lq = remove_head_of_queue();
329 logging_data *lq;
338 lq = remove_head_of_queue();
341 do_logging_queue(lq);
989 logging_data *lq;
992 lq = (logging_data *)calloc(1, sizeof (logging_data));
993 if (lq == NULL)
1001 lq->ld_host = strdup(host);
1002 if (lq->ld_host == NULL)
1007 lq->ld_netid = strdup(transp->xp_netid);
1008 if (lq->ld_netid == NULL)
1011 lq->ld_nb = calloc(1, sizeof (struct netbuf));
1012 if (lq->ld_nb == NULL)
1023 lq->ld_nb->maxlen = nb->maxlen;
1024 lq->ld_nb->len = nb->len;
1026 lq->ld_nb->buf = malloc(lq->ld_nb->len);
1027 if (lq->ld_nb->buf == NULL)
1030 bcopy(nb->buf, lq->ld_nb->buf, lq->ld_nb->len);
1033 lq->ld_path = strdup(path);
1034 if (lq->ld_path == NULL)
1038 lq->ld_rpath = strdup(rpath);
1039 if (lq->ld_rpath == NULL)
1043 lq->ld_status = status;
1050 logging_tail = logging_head = lq;
1052 logging_tail->ld_next = lq;
1053 logging_tail = lq;
1062 free_logging_data(lq);