ack/mach/sparc/ce/back.src/do_open.c
2022-07-17 12:58:48 +02:00

25 lines
427 B
C

#include "header.h"
open_back( filename)
char *filename;
{
if ( filename == (char *) 0) {
codefile= STDOUT;
#ifdef __solaris__
fprint(codefile, ".section \".text\"\n");
#endif
return 1;
}
#ifndef sys_close
if ( sys_open( filename, OP_WRITE, &codefile)) {
#else
if ((codefile = fopen(filename, "wb")) != NULL) {
#endif
#ifdef __solaris__
fprint(codefile, ".section \".text\"\n");
#endif
return 1;
}
return 0;
}