Lines Matching refs:msghdr
94 msgid_to_msgstr(const Msghdr *msghdr, const char *msgid) in msgid_to_msgstr() argument
105 list = (const Msglst *)&msghdr[1]; in msgid_to_msgstr()
106 ids = (const char *)&list[msghdr->hdr_lstcnt]; in msgid_to_msgstr()
107 strs = (const char *)&ids[msghdr->hdr_msgidsz]; in msgid_to_msgstr()
109 off = msghdr->hdr_midlst; in msgid_to_msgstr()
148 const Msghdr *msghdr; in open_mofile() local
167 if ((msghdr = (Msghdr *)mmap(0, status.st_size, PROT_READ, MAP_SHARED, in open_mofile()
176 count = msghdr->hdr_lstcnt; in open_mofile()
177 if (((count - 1) / 2) != msghdr->hdr_midlst) { in open_mofile()
178 (void) munmap((caddr_t)msghdr, status.st_size); in open_mofile()
182 size_tot = msghdr->hdr_lstsz; in open_mofile()
186 (void) munmap((caddr_t)msghdr, status.st_size); in open_mofile()
190 size_tot = msghdr->hdr_msgidsz + msghdr->hdr_msgstrsz + in open_mofile()
194 (void) munmap((caddr_t)msghdr, status.st_size); in open_mofile()
201 dom->dom_msghdr = msghdr; in open_mofile()