Lines Matching refs:ar_hdr
52 struct ar_hdr ar_hdr; in arlib_init() local
53 memcpy (ar_hdr.ar_name, "/ ", sizeof (ar_hdr.ar_name)); in arlib_init()
61 char tmpbuf[sizeof (ar_hdr.ar_date) + 1]; in arlib_init()
63 (int) sizeof (ar_hdr.ar_date), in arlib_init()
66 memcpy (ar_hdr.ar_date, tmpbuf, s); in arlib_init()
67 assert ((sizeof (struct ar_hdr) % sizeof (uint32_t)) == 0); in arlib_init()
73 memcpy (ar_hdr.ar_uid, "0 ", sizeof (ar_hdr.ar_uid)); in arlib_init()
74 memcpy (ar_hdr.ar_gid, "0 ", sizeof (ar_hdr.ar_gid)); in arlib_init()
75 memcpy (ar_hdr.ar_mode, "0 ", sizeof (ar_hdr.ar_mode)); in arlib_init()
76 memcpy (ar_hdr.ar_fmag, ARFMAG, sizeof (ar_hdr.ar_fmag)); in arlib_init()
79 obstack_grow (&symtab.symsoffob, &ar_hdr, sizeof (ar_hdr)); in arlib_init()
90 memcpy (ar_hdr.ar_name, "// ", sizeof (ar_hdr.ar_name)); in arlib_init()
91 memcpy (ar_hdr.ar_date, " ", sizeof (ar_hdr.ar_date)); in arlib_init()
92 memcpy (ar_hdr.ar_uid, " ", sizeof (ar_hdr.ar_uid)); in arlib_init()
93 memcpy (ar_hdr.ar_gid, " ", sizeof (ar_hdr.ar_gid)); in arlib_init()
94 memcpy (ar_hdr.ar_mode, " ", sizeof (ar_hdr.ar_mode)); in arlib_init()
96 obstack_grow (&symtab.longnamesob, &ar_hdr, sizeof (ar_hdr)); in arlib_init()
113 char tmpbuf[sizeof (((struct ar_hdr *) NULL)->ar_size) + 1]; in arlib_finalize()
116 if (symtab.longnameslen != sizeof (struct ar_hdr)) in arlib_finalize()
128 (int) sizeof (((struct ar_hdr *) NULL)->ar_size), in arlib_finalize()
129 (uint32_t) (symtab.longnameslen - sizeof (struct ar_hdr))); in arlib_finalize()
130 memcpy (&((struct ar_hdr *) symtab.longnames)->ar_size, tmpbuf, s); in arlib_finalize()
141 - sizeof (struct ar_hdr)) in arlib_finalize()
158 if (symtab.longnameslen > sizeof (struct ar_hdr)) in arlib_finalize()
174 memcpy (&((struct ar_hdr *) symtab.symsoff)->ar_size, tmpbuf, in arlib_finalize()
176 (int) sizeof (((struct ar_hdr *) NULL)->ar_size), in arlib_finalize()
178 - sizeof (struct ar_hdr)))); in arlib_finalize()