DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: @ T s

⟦8b62f6776⟧ TextFile

    Length: 6031 (0x178f)
    Types: TextFile
    Notes: @(#)stdio.h 13.2 (RC International) 91/03/13  */
    Names: »stdio.h«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/include/stdio.h« 
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦c6f24efe5⟧ »0007« 
        └─⟦this⟧ »comp3.0/usr/include/stdio.h« 

TextFile

/*	@(#)stdio.h	13.2 (RC International) 91/03/13 	*/

/*	Copyright (c) 1988 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/

#ident	"@(#)head:stdio.h	2.34"

#ifndef _STDIO_H
#define _STDIO_H

/*
* User-visible pieces of the ANSI C standard I/O package.
*/

#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int 	size_t;
#endif /* _SIZE_T */

#ifndef NULL
#define NULL            0
#endif /* NULL */

#ifndef _FPOS_T
#define _FPOS_T
typedef long	fpos_t;
#endif /* _FPOS_T */

#define BUFSIZ		8192

#define _NFILE	20	/* initial number of streams */

#define _SBFSIZ	8	/* compatibility with shared libs */

#define _IOFBF		0000	/* full buffered */
#define _IOLBF		0100	/* line buffered */
#define _IONBF		0004	/* not buffered */
#define _IOEOF		0020	/* EOF reached on read */
#define _IOERR		0040	/* I/O error from system */

#define _IOREAD		0001	/* currently reading */
#define _IOWRT		0002	/* currently writing */
#define _IORW		0200	/* opened for reading and writing */
#define _IOMYBUF	0010	/* stdio malloc()'d buffer */

#ifndef EOF
#define EOF	(-1)
#endif

#define FOPEN_MAX	256
#define FILENAME_MAX    1024
#ifndef TMP_MAX
#define TMP_MAX		17576
#endif /* TMP_MAX */

#ifndef SEEK_SET
#define SEEK_SET	0
#define SEEK_CUR	1
#define SEEK_END	2
#endif	/* SEEK_SET */

#if __STDC__ - 0 == 0 || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE)
#define L_ctermid	9
#define L_cuserid	9
#define P_tmpdir	"/usr/tmp/"
#endif

#define L_tmpnam	25	/* (sizeof(P_tmpdir) + 15) */

#define stdin	(&_iob[0])
#define stdout	(&_iob[1])
#define stderr	(&_iob[2])

typedef struct
{
	int		_cnt;	/* number of available characters in buffer */
	unsigned char	*_ptr;	/* next character from/to here in buffer */
	unsigned char	*_base;	/* the buffer */
	unsigned char	_flag;	/* the state of the stream */
	unsigned char	_file;	/* UNIX System file descriptor */
} FILE;

extern FILE		_iob[_NFILE];
extern FILE		*_lastbuf;
extern unsigned char 	*_bufendtab[];
#ifndef _STDIO_ALLOCATE
extern unsigned char	 _sibuf[], _sobuf[];
#endif

#if defined(__STDC__)

extern int	remove(char *);
extern int	rename(char *, char *);
extern FILE	*tmpfile(void);
extern char	*tmpnam(char *);
extern int	fclose(FILE *);
extern int	fflush(FILE *);
extern FILE	*fopen(char *, char *);
extern FILE	*freopen(char *, char *, FILE *);
extern void	setbuf(FILE *, char *);
extern int	setvbuf(FILE *, char *, int, size_t);
/* PRINTFLIKE2 */
extern int	fprintf(FILE *, char *, ...);
/* SCANFLIKE2 */
extern int	fscanf(FILE *, char *, ...);
/* PRINTFLIKE1 */
extern int	printf(char *, ...);
/* SCANFLIKE1 */
extern int	scanf(char *, ...);
/* PRINTFLIKE2 */
extern int	sprintf(char *, char *, ...);
/* SCANFLIKE2 */
extern int	sscanf(char *, char *, ...);
extern int	vfprintf(FILE *, char *, void *);
extern int	vprintf(char *, void *);
extern int	vsprintf(char *, char *, void *);
extern int	fgetc(FILE *);
extern char	*fgets(char *, int, FILE *); 
extern int	fputc(int, FILE *);
extern int	fputs(char *, FILE *);
extern int	getc(FILE *);
extern int	getchar(void);
extern char	*gets(char *);
extern int	putc(int, FILE *);
extern int	putchar(int);
extern int	puts(char *);
extern int	ungetc(int, FILE *);
extern size_t	fread(void *, size_t, size_t, FILE *);
extern size_t	fwrite(void *, size_t, size_t, FILE *);
extern int	fgetpos(FILE *, fpos_t *);
extern int	fseek(FILE *, long, int);
extern int	fsetpos(FILE *, fpos_t *);
extern long	ftell(FILE *);
extern void	rewind(FILE *);
extern void	clearerr(FILE *);
extern int	feof(FILE *);
extern int	ferror(FILE *);
extern void	perror(char *);

extern int	__filbuf(FILE *);
extern int	__flsbuf(int, FILE *);

#ifndef lint
#define getc(p)		(--(p)->_cnt < 0 ? __filbuf(p) : (int)*(p)->_ptr++)
#define putc(x, p)	(--(p)->_cnt < 0 ? __flsbuf((x), (p)) \
				: (int)(*(p)->_ptr++ = (x)))
#define getchar()	getc(stdin)
#define putchar(x)	putc((x), stdout)
#define clearerr(p)	((void)((p)->_flag &= ~(_IOERR | _IOEOF)))
#define feof(p)		((p)->_flag & _IOEOF)
#define ferror(p)	((p)->_flag & _IOERR)
#endif

#if __STDC__ == 0 || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) 
/* Non-ANSI standard compilation */

extern FILE    *fdopen(int, char *);
extern FILE    *popen(char *, char *);
extern char    *ctermid(char *);
extern char    *cuserid(char *);
extern char    *tempnam(char *, char *);
extern int     getw(FILE *);
extern int     putw(int, FILE *);
extern int     pclose(FILE *);
extern int     system(char *);
extern int	fileno(FILE *);

#if !lint(on)
#define fileno(p)	(p)->_file
#endif

#endif /* __STDC__ == 0 */

#else	/* Not __STDC__ */

#define _bufend(iop) (((iop)->_file < _NFILE) ? _bufendtab[(iop)->_file] : \
	_realbufend(iop))
#define _bufsiz(p)      (_bufend(p) - (p)->_base)

#ifndef lint
#define getc(p)         (--(p)->_cnt < 0 ? _filbuf(p) : (int) *(p)->_ptr++)
#define putc(x, p)      (--(p)->_cnt < 0 ? \
                        _flsbuf((unsigned char) (x), (p)) : \
                        (int) (*(p)->_ptr++ = (unsigned char) (x)))
#define getchar()       getc(stdin)
#define putchar(x)      putc((x), stdout)
#define clearerr(p)     ((void) ((p)->_flag &= ~(_IOERR | _IOEOF)))
#define feof(p)         ((p)->_flag & _IOEOF)
#define ferror(p)       ((p)->_flag & _IOERR)
#define fileno(p)       (p)->_file
#endif	/* lint */

extern FILE     *fopen(), *fdopen(), *freopen(), *popen(), *tmpfile();
extern long     ftell();
extern void     perror(), rewind(), setbuf();
extern char     *ctermid(), *cuserid(), *fgets(), *gets(), *tempnam(), *tmpnam();
extern int      fclose(), fflush(), fseek(), fgetc(),
                getw(), pclose(), printf(), fprintf(), sprintf(),
                vprintf(), vfprintf(), vsprintf(), fputc(), putw(),
                puts(), fputs(), scanf(), fscanf(), sscanf(),
                setvbuf(), system(), ungetc(), remove(), rename();
extern size_t	fread(), fwrite();

#endif	/* __STDC__ */


#endif  /* _STDIO_H */