File:  [CSRG BSD Unix] / 42BSD / ingres / source / iutil / batchxtra.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:54 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD42
BSD 4.2

# include	<ingres.h>
# include	<aux.h>
# include	<symbol.h>
# include	<access.h>
# include	<batch.h>
# include	<sccs.h>

SCCSID(@(#)batchxtra.c	7.1	2/5/81)

rmbatch()
{
	char		*batchname();
	register char	*p;
	register int	i;

	p = batchname();
	if (i = close(Batch_fp))
		syserr("rmbatch:can't close %s %d", p, i);
	if (i = unlink(p))
		syserr("rmbatch:can't unlink %s %d", p, i);
	Batchhd.mode_up = 0;
	return (0);
}
/*
**  BATCHNAME -- create batch file name
*/

char *
batchname()
{
	extern char	*Fileset;
	extern char	*ztack();

	return(ztack("_SYSbatch", Fileset));
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.