Lines Matching defs:aw_recs

185 static aw_rec_t **aw_recs;	/* dynam arr of aud rec ptrs */
668 if (aw_recs[i] != (aw_rec_t *)0 &&
669 aw_recs[i]->buf != (caddr_t)0 &&
670 aw_recs[i]->len != 0) {
794 if (aw_recs[rd]->event_id == (au_event_t)NULL)
852 if ((rd > aw_num_recs) || (aw_recs[rd] == (aw_rec_t *)0))
877 aw_free((caddr_t)aw_recs);
878 aw_recs = (aw_rec_t **)0;
990 if (AW_REC_SUBJECT_FLAG & aw_recs[rd]->aflags)
1006 if (aw_buf_append(&(aw_recs[rd]->buf), &(aw_recs[rd]->len),
1021 if (aw_buf_append(&(aw_recs[rd]->buf), &(aw_recs[rd]->len),
1034 if (aw_buf_append(&(aw_recs[rd]->buf), &(aw_recs[rd]->len),
1089 if (!(aw_recs[cur_rd]->aflags & AW_REC_RETURN_FLAG))
1204 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1205 &(aw_recs[cur_rd]->len), tokp->tt_data,
1234 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1235 &(aw_recs[cur_rd]->len), tokp->tt_data,
1261 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1262 &(aw_recs[cur_rd]->len),
1299 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1300 &(aw_recs[cur_rd]->len),
1317 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1318 &(aw_recs[cur_rd]->len),
1331 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1332 &(aw_recs[cur_rd]->len),
1349 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1350 &(aw_recs[cur_rd]->len),
1365 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1366 &(aw_recs[cur_rd]->len),
1379 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1380 &(aw_recs[cur_rd]->len),
1393 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1394 &(aw_recs[cur_rd]->len),
1409 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1410 &(aw_recs[cur_rd]->len),
1426 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1427 &(aw_recs[cur_rd]->len),
1442 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1443 &(aw_recs[cur_rd]->len),
1459 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1460 &(aw_recs[cur_rd]->len),
1483 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1484 &(aw_recs[cur_rd]->len),
1507 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1508 &(aw_recs[cur_rd]->len),
1518 aw_recs[cur_rd]->aflags |= AW_REC_RETURN_FLAG;
1522 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1523 &(aw_recs[cur_rd]->len),
1534 aw_recs[cur_rd]->event_mod |= PAD_FAILURE;
1544 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1545 &(aw_recs[cur_rd]->len),
1556 aw_recs[cur_rd]->aflags |= AW_REC_SUBJECT_FLAG;
1570 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1571 &(aw_recs[cur_rd]->len),
1581 aw_recs[cur_rd]->aflags |= AW_REC_SUBJECT_FLAG;
1595 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1596 &(aw_recs[cur_rd]->len),
1611 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1612 &(aw_recs[cur_rd]->len),
1627 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1628 &(aw_recs[cur_rd]->len),
1643 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1644 &(aw_recs[cur_rd]->len),
1667 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1668 &(aw_recs[cur_rd]->len), tokp->tt_data,
1683 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1684 &(aw_recs[cur_rd]->len),
1697 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1698 &(aw_recs[cur_rd]->len),
1712 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1713 &(aw_recs[cur_rd]->len),
1727 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1728 &(aw_recs[cur_rd]->len),
1741 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1742 &(aw_recs[cur_rd]->len),
1755 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1756 &(aw_recs[cur_rd]->len),
1770 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1771 &(aw_recs[cur_rd]->len),
1788 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1789 &(aw_recs[cur_rd]->len),
1808 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1809 &(aw_recs[cur_rd]->len),
1823 if (aw_buf_append(&(aw_recs[cur_rd]->buf),
1824 &(aw_recs[cur_rd]->len),
1862 if ((tokp = au_to_header_ex(aw_recs[rd]->event_id,
1863 aw_recs[rd]->event_mod)) == (token_t *)NULL)
1869 len = aw_recs[rd]->len + tokp->tt_size;
1874 if (aw_buf_prepend(&(aw_recs[rd]->buf), &(aw_recs[rd]->len),
2060 aw_recs[cur_rd]->event_mod |= PAD_FAILURE;
2132 if (aw_recs[rd]->event_mod & PAD_FAILURE)
2133 return (aw_recs[rd]->class & pmaskp->am_failure);
2135 return (aw_recs[rd]->class & pmaskp->am_success);
2183 if (aw_queue_bytes + aw_recs[rd]->len > AW_MAX_REC_SIZE) {
2187 if ((auditctl(A_AUDIT, (uint32_t)aw_recs[rd]->len,
2188 aw_recs[rd]->buf)) == -1)
2197 aw_recs[rd]->buf, aw_recs[rd]->len) == AW_ERR_RTN)
2240 if (aw_recs == (aw_rec_t **)0) {
2241 if ((aw_recs = (aw_rec_t **)calloc(AW_NUM_RECP,
2249 if ((aw_recs[0] = (aw_rec_t *)calloc(1,
2253 aw_rec_init(aw_recs[0]);
2261 if (aw_recs[slot] == (aw_rec_t *)0) {
2265 if ((aw_recs[slot] = (aw_rec_t *)calloc(1,
2269 aw_rec_init(aw_recs[slot]);
2275 if ((aw_recs = (aw_rec_t **)realloc((void *)aw_recs,
2284 if ((aw_recs[slot] = (aw_rec_t *)calloc(1, (size_t)sizeof (aw_rec_t)))
2288 aw_rec_init(aw_recs[aw_num_recs]);
2310 if (aw_recs[from_rd]->event_id) {
2311 aw_recs[to_rd]->event_id = aw_recs[from_rd]->event_id;
2312 aw_recs[to_rd]->class = aw_recs[from_rd]->class;
2315 aw_recs[to_rd]->aflags |= aw_recs[from_rd]->aflags;
2317 if ((aw_recs[to_rd]->len +
2318 aw_recs[from_rd]->len) > AW_MAX_REC_SIZE)
2321 return (aw_buf_append(&(aw_recs[to_rd]->buf),
2322 &(aw_recs[to_rd]->len),
2323 aw_recs[from_rd]->buf,
2324 aw_recs[from_rd]->len));
2339 if (aw_recs[rd] == (aw_rec_t *)0)
2342 aw_free(aw_recs[rd]->buf);
2343 aw_recs[rd]->buf = (caddr_t)0;
2347 aw_free((caddr_t)aw_recs[rd]);
2348 aw_recs[rd] = (aw_rec_t *)0;
2366 if (aw_recs[from_rd]->event_id)
2367 aw_recs[to_rd]->event_id = aw_recs[from_rd]->event_id;
2369 if ((aw_recs[to_rd]->len +
2370 aw_recs[from_rd]->len) > AW_MAX_REC_SIZE)
2373 return (aw_buf_prepend(&(aw_recs[to_rd]->buf),
2374 &(aw_recs[to_rd]->len),
2375 aw_recs[from_rd]->buf,
2376 aw_recs[from_rd]->len));
2389 if (aw_buf_append(&(aw_recs[rd]->buf), &(aw_recs[rd]->len),
2420 aw_recs[rd]->event_id = event_id;
2421 aw_recs[rd]->class = class;
2523 aw_recs[user_rd]->context.static_flags;
2524 save_rd = aw_recs[user_rd]->context.save_rd;
2525 aw_errno = aw_recs[user_rd]->context.aw_errno;
2526 pmask = aw_recs[user_rd]->context.pmask;
2558 (aw_recs[user_rd] != (aw_rec_t *)0)) {
2559 aw_recs[user_rd]->context.static_flags =
2561 aw_recs[user_rd]->context.save_rd = save_rd;
2562 aw_recs[user_rd]->context.aw_errno = aw_errno;
2563 aw_recs[user_rd]->context.pmask = pmask;
2587 if (audit(aw_recs[rd]->buf, aw_recs[rd]->len) == -1)
2601 if (auditctl(A_AUDIT, (uint32_t)aw_recs[rd]->len,
2602 aw_recs[rd]->buf) == -1)
2703 err = aw_recs[rd]->context.aw_errno;