File:  [Research Unix] / researchv9 / jerq / include / jerqio.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

#define	BUFSIZ	256
#define	_NFILE	15
# ifndef FILE
extern	struct	_iobuf {
	int	count;
	char	*cp;
	char	*base;
	char	flag;
	char	file;
} _iob[_NFILE];
# endif

#define jgetchar()	(wait(RCV),rcvchar())
#undef exit

#define	_IOREAD	01
#define	_IOWRT	02
#define _IOTTY	04
#define	_IOEOF	010
#define	_IOERR	020
#ifndef NULL
#define	NULL	((char *)0)
#endif
#define	FILE	struct _iobuf
#define	EOF	(-1)

#define	stdin	(&_iob[0])
#define	stdout	(&_iob[1])
#define	stderr	(&_iob[2])
#define	feof(p)		(((p)->flag & _IOEOF) != 0)
#define	ferror(p)	(((p)->flag & _IOERR) != 0)
#define isatty(p)	(((p)->flag & _IOTTY) != 0)
#define	fileno(p)	((p)->file)

FILE	*fopen();
FILE	*popen();

unix.superglobalmegacorp.com

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