[BACK]Return to stdio.h CVS log [TXT][DIR] Up to [local] / src / include

Diff for /src/include/stdio.h between version 1.9 and 1.10

version 1.9, 1997/11/29 20:01:03 version 1.10, 1998/11/20 11:18:26
Line 271 
Line 271 
   
 __BEGIN_DECLS  __BEGIN_DECLS
 char    *ctermid __P((char *));  char    *ctermid __P((char *));
   char    *ctermid_r __P((char *));
 char    *cuserid __P((char *));  char    *cuserid __P((char *));
 FILE    *fdopen __P((int, const char *));  FILE    *fdopen __P((int, const char *));
 int      fileno __P((FILE *));  int      fileno __P((FILE *));
   void     flockfile __P((FILE *));
   int      ftrylockfile __P((FILE *));
   void     funlockfile __P((FILE *));
   void     _flockfile_debug __P((FILE *, const char *, int));
   int      getc_unlocked __P((FILE *));
   int      putc_unlocked __P((int, FILE *));
   int      getchar_unlocked __P((void));
   int      putchar_unlocked __P((int));
 __END_DECLS  __END_DECLS
   
   #ifndef _POSIX_THREADS
   #  define flockfile(fp)                 /* nothing */
   #  define ftrylockfile(fp)              (0)
   #  define funlockfile(fp)               /* nothing */
   #  define _flockfile_debug(fp,f,l)      /* nothing */
   #endif
   
   #if 0 /* defined(DEBUG_FLOCKFILE) && defined(_POSIX_THREADS) */
   #  define flockfile(fp)         _flockfile_debug(fp, __FILE__, __LINE__)
   #endif
   
 #endif /* not ANSI */  #endif /* not ANSI */
   
 /*  /*
Line 368 
Line 389 
   
 #define feof(p)         __sfeof(p)  #define feof(p)         __sfeof(p)
 #define ferror(p)       __sferror(p)  #define ferror(p)       __sferror(p)
   
   #ifndef _POSIX_THREADS
 #define clearerr(p)     __sclearerr(p)  #define clearerr(p)     __sclearerr(p)
   #endif
   
 #ifndef _ANSI_SOURCE  #ifndef _ANSI_SOURCE
 #define fileno(p)       __sfileno(p)  #define fileno(p)       __sfileno(p)
 #endif  #endif
   
 #ifndef lint  #ifndef lint
   #ifndef _POSIX_THREADS
 #define getc(fp)        __sgetc(fp)  #define getc(fp)        __sgetc(fp)
   #endif /* _POSIX_THREADS */
   #define getc_unlocked(fp)       __sgetc(fp)
 /*  /*
  * The macro implementation of putc is not fully POSIX   * The macro implementations of putc and putc_unlocked are not
  * compliant; it does not set errno on failure   * fully POSIX compliant; they do not set errno on failure
  */   */
 #ifndef _POSIX_SOURCE  #ifndef _POSIX_SOURCE
   #ifndef _POSIX_THREADS
 #define putc(x, fp)     __sputc(x, fp)  #define putc(x, fp)     __sputc(x, fp)
   #endif /* _POSIX_THREADS */
   #define putc_unlocked(x, fp)    __sputc(x, fp)
 #endif /* _POSIX_SOURCE */  #endif /* _POSIX_SOURCE */
 #endif /* lint */  #endif /* lint */
   
 #define getchar()       getc(stdin)  #define getchar()       getc(stdin)
 #define putchar(x)      putc(x, stdout)  #define putchar(x)      putc(x, stdout)
   #define getchar_unlocked()      getc_unlocked(stdin)
   #define putchar_unlocked(c)     putc_unlocked(c, stdout)
   
 #endif /* _STDIO_H_ */  #endif /* _STDIO_H_ */

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10