projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix comments
[unix-history]
/
usr
/
src
/
usr.bin
/
ranlib
/
ranlib.c
diff --git
a/usr/src/usr.bin/ranlib/ranlib.c
b/usr/src/usr.bin/ranlib/ranlib.c
index
3ee68a9
..
ec310d6
100644
(file)
--- a/
usr/src/usr.bin/ranlib/ranlib.c
+++ b/
usr/src/usr.bin/ranlib/ranlib.c
@@
-1,4
+1,4
@@
-static char sccsid[] = "@(#)ranlib.c
3.2
%G%";
+static char sccsid[] = "@(#)ranlib.c
4.3
%G%";
/*
* ranlib - create table of contents for archive; string table version
*/
/*
* ranlib - create table of contents for archive; string table version
*/
@@
-16,10
+16,10
@@
struct exec exp;
FILE *fi, *fo;
long off, oldoff;
long atol(), ftell();
FILE *fi, *fo;
long off, oldoff;
long atol(), ftell();
-#define TABSZ
2
000
+#define TABSZ
5
000
struct ranlib tab[TABSZ];
int tnum;
struct ranlib tab[TABSZ];
int tnum;
-#define STRTABSZ
2
5000
+#define STRTABSZ
7
5000
char tstrtab[STRTABSZ];
int tssiz;
char *strtab;
char tstrtab[STRTABSZ];
int tssiz;
char *strtab;
@@
-67,7
+67,7
@@
char **argv;
continue;
if (exp.a_syms == 0) {
fprintf(stderr, "ranlib: warning: %s(%s): no symbol table\n", *argv, archdr.ar_name);
continue;
if (exp.a_syms == 0) {
fprintf(stderr, "ranlib: warning: %s(%s): no symbol table\n", *argv, archdr.ar_name);
-
exit(1)
;
+
continue
;
}
o = N_STROFF(exp) - sizeof (struct exec);
if (ftell(fi)+o+sizeof(ssiz) >= off) {
}
o = N_STROFF(exp) - sizeof (struct exec);
if (ftell(fi)+o+sizeof(ssiz) >= off) {