Lines Matching refs:ar_hdr
53 struct ar_hdr ar_hdr; in arlib_init() local
54 memcpy (ar_hdr.ar_name, "/ ", sizeof (ar_hdr.ar_name)); in arlib_init()
62 char tmpbuf[sizeof (ar_hdr.ar_date) + 1]; in arlib_init()
64 (int) sizeof (ar_hdr.ar_date), in arlib_init()
67 memcpy (ar_hdr.ar_date, tmpbuf, s); in arlib_init()
68 assert ((sizeof (struct ar_hdr) % sizeof (uint32_t)) == 0); in arlib_init()
74 memcpy (ar_hdr.ar_uid, "0 ", sizeof (ar_hdr.ar_uid)); in arlib_init()
75 memcpy (ar_hdr.ar_gid, "0 ", sizeof (ar_hdr.ar_gid)); in arlib_init()
76 memcpy (ar_hdr.ar_mode, "0 ", sizeof (ar_hdr.ar_mode)); in arlib_init()
77 memcpy (ar_hdr.ar_fmag, ARFMAG, sizeof (ar_hdr.ar_fmag)); in arlib_init()
80 obstack_grow (&symtab.symsoffob, &ar_hdr, sizeof (ar_hdr)); in arlib_init()
91 memcpy (ar_hdr.ar_name, "// ", sizeof (ar_hdr.ar_name)); in arlib_init()
92 memcpy (ar_hdr.ar_date, " ", sizeof (ar_hdr.ar_date)); in arlib_init()
93 memcpy (ar_hdr.ar_uid, " ", sizeof (ar_hdr.ar_uid)); in arlib_init()
94 memcpy (ar_hdr.ar_gid, " ", sizeof (ar_hdr.ar_gid)); in arlib_init()
95 memcpy (ar_hdr.ar_mode, " ", sizeof (ar_hdr.ar_mode)); in arlib_init()
97 obstack_grow (&symtab.longnamesob, &ar_hdr, sizeof (ar_hdr)); in arlib_init()
114 char tmpbuf[sizeof (((struct ar_hdr *) NULL)->ar_size) + 1]; in arlib_finalize()
117 if (symtab.longnameslen != sizeof (struct ar_hdr)) in arlib_finalize()
129 (int) sizeof (((struct ar_hdr *) NULL)->ar_size), in arlib_finalize()
130 (uint32_t) (symtab.longnameslen - sizeof (struct ar_hdr))); in arlib_finalize()
131 memcpy (&((struct ar_hdr *) symtab.longnames)->ar_size, tmpbuf, s); in arlib_finalize()
142 - sizeof (struct ar_hdr)) in arlib_finalize()
159 if (symtab.longnameslen > sizeof (struct ar_hdr)) in arlib_finalize()
175 memcpy (&((struct ar_hdr *) symtab.symsoff)->ar_size, tmpbuf, in arlib_finalize()
177 (int) sizeof (((struct ar_hdr *) NULL)->ar_size), in arlib_finalize()
179 - sizeof (struct ar_hdr)))); in arlib_finalize()