projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add fourth error return NO_ADDRESS
[unix-history]
/
usr
/
src
/
include
/
stdio.h
diff --git
a/usr/src/include/stdio.h
b/usr/src/include/stdio.h
index
d9218a2
..
d73f55b
100644
(file)
--- a/
usr/src/include/stdio.h
+++ b/
usr/src/include/stdio.h
@@
-1,16
+1,21
@@
-/* stdio.h 1.10 84/11/29 */
-#define BUFSIZ 1024
-#define _NFILE 20
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ * @(#)stdio.h 5.1 (Berkeley) %G%
+ */
+
# ifndef FILE
# ifndef FILE
+#define BUFSIZ 1024
extern struct _iobuf {
int _cnt;
extern struct _iobuf {
int _cnt;
- char *_ptr;
- char *_base;
+ char *_ptr;
/* should be unsigned char */
+ char *_base;
/* ditto */
int _bufsiz;
short _flag;
int _bufsiz;
short _flag;
- char _file;
-} _iob[_NFILE];
-# endif
+ char _file; /* should be short */
+} _iob[];
#define _IOREAD 01
#define _IOWRT 02
#define _IOREAD 01
#define _IOWRT 02
@@
-41,13
+46,17
@@
extern struct _iobuf {
#define feof(p) (((p)->_flag&_IOEOF)!=0)
#define ferror(p) (((p)->_flag&_IOERR)!=0)
#define fileno(p) ((p)->_file)
#define feof(p) (((p)->_flag&_IOEOF)!=0)
#define ferror(p) (((p)->_flag&_IOERR)!=0)
#define fileno(p) ((p)->_file)
+#define clearerr(p) ((p)->_flag &= ~(_IOERR|_IOEOF))
FILE *fopen();
FILE *fdopen();
FILE *freopen();
FILE *fopen();
FILE *fdopen();
FILE *freopen();
+FILE *popen();
long ftell();
long ftell();
+long fseek();
char *fgets();
char *gets();
#ifdef vax
char *sprintf(); /* too painful to do right */
#endif
char *fgets();
char *gets();
#ifdef vax
char *sprintf(); /* too painful to do right */
#endif
+# endif