add EX__MAX to represent top value listed
[unix-history] / usr / src / include / stdio.h
index f35c077..6c9df32 100644 (file)
@@ -1,5 +1,16 @@
-/*     stdio.h 1.12    85/05/30        */
-# ifndef FILE
+/*
+ * 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.7 (Berkeley) %G%
+ */
+
+#ifndef NULL
+#define        NULL    0
+#endif
+
+#ifndef FILE
 #define        BUFSIZ  1024
 extern struct  _iobuf {
        int     _cnt;
 #define        BUFSIZ  1024
 extern struct  _iobuf {
        int     _cnt;
@@ -19,15 +30,17 @@ extern      struct  _iobuf {
 #define        _IOSTRG 0100
 #define        _IOLBF  0200
 #define        _IORW   0400
 #define        _IOSTRG 0100
 #define        _IOLBF  0200
 #define        _IORW   0400
-#define        NULL    0
 #define        FILE    struct _iobuf
 #define        EOF     (-1)
 
 #define        stdin   (&_iob[0])
 #define        stdout  (&_iob[1])
 #define        stderr  (&_iob[2])
 #define        FILE    struct _iobuf
 #define        EOF     (-1)
 
 #define        stdin   (&_iob[0])
 #define        stdout  (&_iob[1])
 #define        stderr  (&_iob[2])
+#ifndef lint
 #define        getc(p)         (--(p)->_cnt>=0? (int)(*(unsigned char *)(p)->_ptr++):_filbuf(p))
 #define        getc(p)         (--(p)->_cnt>=0? (int)(*(unsigned char *)(p)->_ptr++):_filbuf(p))
+#endif not lint
 #define        getchar()       getc(stdin)
 #define        getchar()       getc(stdin)
+#ifndef lint
 #define putc(x, p)     (--(p)->_cnt >= 0 ?\
        (int)(*(unsigned char *)(p)->_ptr++ = (x)) :\
        (((p)->_flag & _IOLBF) && -(p)->_cnt < (p)->_bufsiz ?\
 #define putc(x, p)     (--(p)->_cnt >= 0 ?\
        (int)(*(unsigned char *)(p)->_ptr++ = (x)) :\
        (((p)->_flag & _IOLBF) && -(p)->_cnt < (p)->_bufsiz ?\
@@ -35,6 +48,7 @@ extern        struct  _iobuf {
                        (int)(*(unsigned char *)(p)->_ptr++) :\
                        _flsbuf(*(unsigned char *)(p)->_ptr, p)) :\
                _flsbuf((unsigned char)(x), p)))
                        (int)(*(unsigned char *)(p)->_ptr++) :\
                        _flsbuf(*(unsigned char *)(p)->_ptr, p)) :\
                _flsbuf((unsigned char)(x), p)))
+#endif not lint
 #define        putchar(x)      putc(x,stdout)
 #define        feof(p)         (((p)->_flag&_IOEOF)!=0)
 #define        ferror(p)       (((p)->_flag&_IOERR)!=0)
 #define        putchar(x)      putc(x,stdout)
 #define        feof(p)         (((p)->_flag&_IOEOF)!=0)
 #define        ferror(p)       (((p)->_flag&_IOERR)!=0)
@@ -46,10 +60,11 @@ FILE        *fdopen();
 FILE   *freopen();
 FILE   *popen();
 long   ftell();
 FILE   *freopen();
 FILE   *popen();
 long   ftell();
-long   fseek();
 char   *fgets();
 char   *gets();
 char   *fgets();
 char   *gets();
-#ifdef vax
-char   *sprintf();             /* too painful to do right */
-#endif
+int    sprintf();      /* here until everyone does it right */
 # endif
 # endif
+
+#define        L_cuserid       9       /* posix says it goes in stdio.h :( */
+char   *getlogin();
+char   *cuserid();