Lines Matching refs:header

738   struct nss_db_header *header;  in write_output()  local
740 + (ndatabases * sizeof (header->dbs[0]))); in write_output()
741 header = alloca (file_offset); in write_output()
743 header->magic = NSS_DB_MAGIC; in write_output()
744 header->ndbs = ndatabases; in write_output()
745 header->valstroffset = file_offset; in write_output()
746 header->valstrlen = valstrlen; in write_output()
751 iov[0].iov_base = header; in write_output()
765 header->dbs[filled_dbs].id = db->dbid; in write_output()
766 memset (header->dbs[filled_dbs].pad, '\0', in write_output()
767 sizeof (header->dbs[0].pad)); in write_output()
768 header->dbs[filled_dbs].hashsize = db->nhashentries; in write_output()
772 header->dbs[filled_dbs].hashoffset = file_offset; in write_output()
778 header->dbs[filled_dbs].keyidxoffset = keydataoffset; in write_output()
783 header->dbs[filled_dbs].keystroffset = keydataoffset; in write_output()
792 header->allocate = file_offset; in write_output()
823 const struct nss_db_header *header = mmap (NULL, st.st_size, PROT_READ, in print_database() local
825 if (header == MAP_FAILED) in print_database()
828 if (header->magic != NSS_DB_MAGIC) in print_database()
831 const char *valstrtab = (const char *) header + header->valstroffset; in print_database()
833 for (unsigned int dbidx = 0; dbidx < header->ndbs; ++dbidx) in print_database()
836 = ((const stridx_t *) ((const char *) header in print_database()
837 + header->dbs[dbidx].keyidxoffset)); in print_database()
839 = (const char *) header + header->dbs[dbidx].keystroffset; in print_database()
841 = (const stridx_t *) ((const char *) header in print_database()
842 + header->dbs[dbidx].hashoffset); in print_database()
844 for (uint32_t hidx = 0; hidx < header->dbs[dbidx].hashsize; ++hidx) in print_database()
847 header->dbs[dbidx].id, in print_database()