Lines Matching refs:pbuf

1576 	nss_pheader_t		*pbuf = (nss_pheader_t *)buffer;  in nss_pack_dbd()  local
1583 pbuf->dbd_off = (nssuint_t)off; in nss_pack_dbd()
1632 pbuf->dbd_len = (nssuint_t)len; in nss_pack_dbd()
1647 nss_pheader_t *pbuf = (nss_pheader_t *)buffer; in nss_pack() local
1656 if (pbuf == NULL || in == NULL || initf == (nss_db_initf_t)NULL) { in nss_pack()
1670 pbuf->pbufsiz = (nssuint_t)bufsize; in nss_pack()
1671 pbuf->p_ruid = (uint32_t)getuid(); in nss_pack()
1672 pbuf->p_euid = (uint32_t)geteuid(); in nss_pack()
1673 pbuf->p_version = NSCD_HEADER_REV; in nss_pack()
1674 pbuf->p_status = 0; in nss_pack()
1675 pbuf->p_errno = 0; in nss_pack()
1676 pbuf->p_herrno = 0; in nss_pack()
1680 pbuf->p_herrno = (uint32_t)in->h_errno; in nss_pack()
1682 pbuf->libpriv = 0; in nss_pack()
1687 pbuf->nss_dbop = (uint32_t)search_fnum; in nss_pack()
1695 pbuf->key_off = (nssuint_t)off; in nss_pack()
1723 pbuf->key_len = (nssuint_t)len; in nss_pack()
1726 pbuf->data_off = (nssuint_t)off; in nss_pack()
1727 pbuf->data_len = (nssuint_t)(bufsize - off); in nss_pack()
1754 nss_pheader_t *pbuf = (nss_pheader_t *)buffer; in nss_pack_ent() local
1761 if (pbuf == NULL || initf == (nss_db_initf_t)NULL) { in nss_pack_ent()
1767 pbuf->pbufsiz = (nssuint_t)bufsize; in nss_pack_ent()
1768 pbuf->p_ruid = (uint32_t)getuid(); in nss_pack_ent()
1769 pbuf->p_euid = (uint32_t)geteuid(); in nss_pack_ent()
1770 pbuf->p_version = NSCD_HEADER_REV; in nss_pack_ent()
1771 pbuf->p_status = 0; in nss_pack_ent()
1772 pbuf->p_errno = 0; in nss_pack_ent()
1773 pbuf->p_herrno = 0; in nss_pack_ent()
1774 pbuf->libpriv = 0; in nss_pack_ent()
1779 pbuf->nss_dbop = (uint32_t)0; /* iterators have no dbop */ in nss_pack_ent()
1788 pbuf->key_off = (nssuint_t)off; in nss_pack_ent()
1799 pbuf->key_len = (nssuint_t)len; in nss_pack_ent()
1802 pbuf->data_off = (nssuint_t)off; in nss_pack_ent()
1803 pbuf->data_len = (nssuint_t)(bufsize - off); in nss_pack_ent()
1827 nss_pheader_t *pbuf = (nss_pheader_t *)buffer; in nss_unpack() local
1842 if (pbuf == NULL || in == NULL) in nss_unpack()
1844 status = pbuf->p_status; in nss_unpack()
1846 pdbd = (nss_dbd_t *)((void *)((char *)buffer + pbuf->dbd_off)); in nss_unpack()
1860 in->h_errno = (int)pbuf->p_herrno; in nss_unpack()
1861 if (pbuf->p_errno == ERANGE) in nss_unpack()
1867 if (pbuf->data_off == 0 || pbuf->data_len == 0) in nss_unpack()
1870 buf = (char *)buffer + pbuf->data_off; in nss_unpack()
1871 len = pbuf->data_len; in nss_unpack()
1891 if (pbuf->p_status == NSS_SUCCESS) { in nss_unpack()
1914 in->h_errno = (int)pbuf->p_herrno; in nss_unpack()
1928 nss_pheader_t *pbuf = (nss_pheader_t *)buffer; in nss_unpack_ent() local
1938 if (pbuf == NULL) in nss_unpack_ent()
1940 status = pbuf->p_status; in nss_unpack_ent()
1947 if (pbuf->key_off == 0 || in nss_unpack_ent()
1948 pbuf->key_len != (sizeof (nssuint_t) * 2)) in nss_unpack_ent()
1951 nptr = (nssuint_t *)((void *)((char *)buffer + pbuf->key_off)); in nss_unpack_ent()
1971 if (pbuf->data_off == 0 || pbuf->data_len == 0) in nss_unpack_ent()
1973 buf = (char *)buffer + pbuf->data_off; in nss_unpack_ent()
1975 len = pbuf->data_len; in nss_unpack_ent()
1988 in->h_errno = (int)pbuf->p_herrno; in nss_unpack_ent()
2000 nss_pheader_t *pbuf; in _nsc_search() local
2022 pbuf = (nss_pheader_t *)doorptr; in _nsc_search()
2024 pbuf->nsc_callnumber = NSCD_SEARCH; in _nsc_search()
2026 status = nss_pack((void *)pbuf, bufsize, rootp, in _nsc_search()
2035 datasize = pbuf->data_off; in _nsc_search()
2044 if (doorptr != (void *)pbuf) { in _nsc_search()
2059 if (doorptr != (void *)pbuf) { in _nsc_search()
2077 nss_pheader_t *pbuf; in _nsc_setent_u() local
2102 pbuf = (nss_pheader_t *)doorptr; in _nsc_setent_u()
2103 pbuf->nsc_callnumber = NSCD_SETENT; in _nsc_setent_u()
2115 status = nss_pack_ent((void *)pbuf, bufsize, rootp, initf, contextpp); in _nsc_setent_u()
2121 datasize = pbuf->data_off; in _nsc_setent_u()
2141 if (doorptr != (void *)pbuf) { in _nsc_setent_u()
2154 nss_pheader_t *pbuf; in _nsc_getent_u() local
2174 pbuf = (nss_pheader_t *)doorptr; in _nsc_getent_u()
2175 pbuf->nsc_callnumber = NSCD_GETENT; in _nsc_getent_u()
2178 status = nss_pack_ent((void *)pbuf, bufsize, rootp, initf, contextpp); in _nsc_getent_u()
2184 datasize = pbuf->data_off; in _nsc_getent_u()
2208 if (doorptr != (void *)pbuf) { in _nsc_getent_u()
2221 nss_pheader_t *pbuf; in _nsc_endent_u() local
2239 pbuf = (nss_pheader_t *)doorptr; in _nsc_endent_u()
2240 pbuf->nsc_callnumber = NSCD_ENDENT; in _nsc_endent_u()
2243 status = nss_pack_ent((void *)pbuf, bufsize, rootp, initf, contextpp); in _nsc_endent_u()
2249 datasize = pbuf->data_off; in _nsc_endent_u()
2258 if (doorptr != (void *)pbuf) { in _nsc_endent_u()