SCCS-vsn: usr.bin/ranlib/Makefile 5.4
SCCS-vsn: usr.bin/ranlib/build.c 5.3
SCCS-vsn: usr.bin/ranlib/touch.c 5.3
-# @(#)Makefile 5.3 (Berkeley) %G%
+# @(#)Makefile 5.4 (Berkeley) %G%
-SRCS= archive.c build.c header.c misc.c ranlib.c touch.c
+SRCS= archive.c build.c misc.c ranlib.c touch.c
CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../ar
MAN1= ranlib.0
VPATH= ${.CURDIR}/../ar
CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../ar
MAN1= ranlib.0
VPATH= ${.CURDIR}/../ar
-static char sccsid[] = "@(#)build.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)build.c 5.3 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
/* Read through the archive, creating list of symbols. */
pnext = &rhead;
/* Read through the archive, creating list of symbols. */
pnext = &rhead;
- while(get_header(afd)) {
+ while(get_arobj(afd)) {
if (!strcmp(chdr.name, RANLIBMAG)) {
if (!strcmp(chdr.name, RANLIBMAG)) {
- SKIP(afd, chdr.size, archive);
continue;
}
rexec(afd, tfd);
continue;
}
rexec(afd, tfd);
- put_header(&cf, (struct stat *)NULL);
- copyfile(&cf, chdr.size);
+ put_arobj(&cf, (struct stat *)NULL);
size = lseek(tfd, (off_t)0, SEEK_CUR);
(void)lseek(tfd, (off_t)0, SEEK_SET);
SETCF(tfd, tname, afd, archive, RPAD|WPAD);
size = lseek(tfd, (off_t)0, SEEK_CUR);
(void)lseek(tfd, (off_t)0, SEEK_SET);
SETCF(tfd, tname, afd, archive, RPAD|WPAD);
(void)ftruncate(afd, lseek(afd, (off_t)0, SEEK_CUR));
(void)close(tfd);
(void)ftruncate(afd, lseek(afd, (off_t)0, SEEK_CUR));
(void)close(tfd);
-static char sccsid[] = "@(#)touch.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)touch.c 5.3 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
afd = open_archive(O_RDWR);
afd = open_archive(O_RDWR);
- if (!get_header(afd) ||
strncmp(RANLIBMAG, chdr.name, sizeof(RANLIBMAG) - 1)) {
(void)fprintf(stderr,
"ranlib: %s: no symbol table.\n", archive);
strncmp(RANLIBMAG, chdr.name, sizeof(RANLIBMAG) - 1)) {
(void)fprintf(stderr,
"ranlib: %s: no symbol table.\n", archive);