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
date and time created 88/07/22 16:08:01 by bostic
[unix-history]
/
usr
/
src
/
old
/
as.vax
/
asmain.c
diff --git
a/usr/src/old/as.vax/asmain.c
b/usr/src/old/as.vax/asmain.c
index
4bb1361
..
f8d32cc
100644
(file)
--- a/
usr/src/old/as.vax/asmain.c
+++ b/
usr/src/old/as.vax/asmain.c
@@
-1,8
+1,17
@@
/*
/*
- * Copyright (c) 1982 Regents of the University of California
+ * Copyright (c) 1982 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
*/
*/
+
+#ifndef lint
+char copyright[] =
+"@(#) Copyright (c) 1982 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif not lint
+
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)asmain.c
4.14
%G%";
+static char sccsid[] = "@(#)asmain.c
5.3 (Berkeley)
%G%";
#endif not lint
#include <stdio.h>
#endif not lint
#include <stdio.h>
@@
-14,7
+23,9
@@
static char sccsid[] = "@(#)asmain.c 4.14 %G%";
#include "asscan.h"
#include "asexpr.h"
#include "asscan.h"
#include "asexpr.h"
-#define unix_lang_name "VAX/UNIX Assembler V%G% 4.14"
+#include <sys/stat.h>
+
+#define unix_lang_name "VAX/UNIX Assembler V%G% 5.3"
/*
* variables to manage reading the assembly source files
*/
/*
* variables to manage reading the assembly source files
*/
@@
-411,9
+422,9
@@
FILE *tempopen(tname, part)
char *part;
{
FILE *file;
char *part;
{
FILE *file;
- sprintf(tname, "%s%sas%s%05d",
+
(void)
sprintf(tname, "%s%sas%s%05d",
tmpdirprefix,
tmpdirprefix,
- (tmpdirprefix[strlen(tmpdirprefix)-1] != '/') ? "/" :
0
,
+ (tmpdirprefix[strlen(tmpdirprefix)-1] != '/') ? "/" :
""
,
part,
getpid());
file = fopen(tname, "w");
part,
getpid());
file = fopen(tname, "w");
@@
-480,6
+491,8
@@
pass1_5()
open_a_out()
{
open_a_out()
{
+ struct stat stb;
+
/*
* Open up the a.out file now, and get set to build
* up offsets into it for all of the various text,data
/*
* Open up the a.out file now, and get set to build
* up offsets into it for all of the various text,data
@@
-491,6
+504,8
@@
open_a_out()
delexit();
}
biofd = a_out_file->_file;
delexit();
}
biofd = a_out_file->_file;
+ fstat(biofd, &stb);
+ biobufsize = stb.st_blksize;
a_out_off = 0;
}
a_out_off = 0;
}