From 682bc55a0ecab60f76346e677174977a6865e65f Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Mon, 12 Mar 1990 17:43:27 -0800 Subject: [PATCH] use genbuildname to place output file SCCS-vsn: old/as.vax/asmain.c 5.5 --- usr/src/old/as.vax/asmain.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/src/old/as.vax/asmain.c b/usr/src/old/as.vax/asmain.c index 119916cbe2..437529442e 100644 --- a/usr/src/old/as.vax/asmain.c +++ b/usr/src/old/as.vax/asmain.c @@ -11,7 +11,7 @@ char copyright[] = #endif not lint #ifndef lint -static char sccsid[] = "@(#)asmain.c 5.4 (Berkeley) %G%"; +static char sccsid[] = "@(#)asmain.c 5.5 (Berkeley) %G%"; #endif not lint #include @@ -26,7 +26,7 @@ static char sccsid[] = "@(#)asmain.c 5.4 (Berkeley) %G%"; #include -#define unix_lang_name "VAX/UNIX Assembler V%G% 5.4" +#define unix_lang_name "VAX/UNIX Assembler V%G% 5.5" /* * variables to manage reading the assembly source files */ @@ -100,7 +100,7 @@ int strfilepos = 0; /* position within the string file */ * It is opened by stdio, but is filled with the parallel * block I/O library */ -char *outfile = "a.out"; +char *outfile; FILE *a_out_file; off_t a_out_off; /* cumulative offsets for segments */ /* @@ -240,6 +240,7 @@ argprocess(argc, argv) #ifdef DEBUG debug = 0; #endif + outfile = (char *)genbuildname("a.out"); innames = (char **)ClearCalloc(argc+1, sizeof (innames[0])); dotsname = ""; while (argc > 1) { @@ -283,7 +284,7 @@ argprocess(argc, argv) yyerror("-o what???"); exit(1); } - outfile = argv[2]; + outfile = (char *)genbuildname(argv[2]); bumpone: argc -= 2; argv += 2; -- 2.20.1