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

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/include/stdio.h between version 1.20 and 1.28

version 1.20, 1998/02/02 21:07:52 version 1.28, 1998/08/28 22:55:50
Line 46 
Line 46 
 #endif  #endif
   
 #include <sys/cdefs.h>  #include <sys/cdefs.h>
   #include <sys/featuretest.h>
   
 #include <machine/ansi.h>  #include <machine/ansi.h>
 #ifdef  _BSD_SIZE_T_  #ifdef  _BSD_SIZE_T_
Line 162  __END_DECLS
Line 163  __END_DECLS
 #define __SNPT  0x0800          /* do not do fseek() optimisation */  #define __SNPT  0x0800          /* do not do fseek() optimisation */
 #define __SOFF  0x1000          /* set iff _offset is in fact correct */  #define __SOFF  0x1000          /* set iff _offset is in fact correct */
 #define __SMOD  0x2000          /* true => fgetln modified _p text */  #define __SMOD  0x2000          /* true => fgetln modified _p text */
   #define __SALC  0x4000          /* allocate string space dynamically */
   
 /*  /*
  * The following three definitions are for ANSI C, which took them   * The following three definitions are for ANSI C, which took them
Line 195  __END_DECLS
Line 197  __END_DECLS
 #define L_tmpnam        1024    /* XXX must be == PATH_MAX */  #define L_tmpnam        1024    /* XXX must be == PATH_MAX */
 #define TMP_MAX         308915776  #define TMP_MAX         308915776
   
   /* Always ensure that these are consistent with <fcntl.h> and <unistd.h>! */
 #ifndef SEEK_SET  #ifndef SEEK_SET
 #define SEEK_SET        0       /* set file offset to offset */  #define SEEK_SET        0       /* set file offset to offset */
 #endif  #endif
Line 234  long  ftell __P((FILE *));
Line 237  long  ftell __P((FILE *));
 size_t   fwrite __P((const void *, size_t, size_t, FILE *));  size_t   fwrite __P((const void *, size_t, size_t, FILE *));
 int      getc __P((FILE *));  int      getc __P((FILE *));
 int      getchar __P((void));  int      getchar __P((void));
 char    *gets __P((char *));  
 void     perror __P((const char *));  void     perror __P((const char *));
 int      printf __P((const char *, ...));  int      printf __P((const char *, ...));
 int      putc __P((int, FILE *));  int      putc __P((int, FILE *));
 int      putchar __P((int));  int      putchar __P((int));
 int      puts __P((const char *));  int      puts __P((const char *));
 int      remove __P((const char *));  int      remove __P((const char *));
 int      rename  __P((const char *, const char *));  
 void     rewind __P((FILE *));  void     rewind __P((FILE *));
 int      scanf __P((const char *, ...));  int      scanf __P((const char *, ...));
 void     setbuf __P((FILE *, char *));  void     setbuf __P((FILE *, char *));
 int      setvbuf __P((FILE *, char *, int, size_t));  int      setvbuf __P((FILE *, char *, int, size_t));
 int      sprintf __P((char *, const char *, ...));  
 int      sscanf __P((const char *, const char *, ...));  int      sscanf __P((const char *, const char *, ...));
 FILE    *tmpfile __P((void));  FILE    *tmpfile __P((void));
 char    *tmpnam __P((char *));  
 int      ungetc __P((int, FILE *));  int      ungetc __P((int, FILE *));
 int      vfprintf __P((FILE *, const char *, _BSD_VA_LIST_));  int      vfprintf __P((FILE *, const char *, _BSD_VA_LIST_));
 int      vprintf __P((const char *, _BSD_VA_LIST_));  int      vprintf __P((const char *, _BSD_VA_LIST_));
   
   #ifndef __AUDIT__
   char    *gets __P((char *));
   int      sprintf __P((char *, const char *, ...));
   char    *tmpnam __P((char *));
 int      vsprintf __P((char *, const char *, _BSD_VA_LIST_));  int      vsprintf __P((char *, const char *, _BSD_VA_LIST_));
   #endif
   
   #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE)
   int      rename  __P((const char *, const char *)) __RENAME(__posix_rename);
   #else
   int      rename  __P((const char *, const char *));
   #endif
 __END_DECLS  __END_DECLS
   
 /*  /*
Line 282  extern int putchar_unlocked __P((int));
Line 293  extern int putchar_unlocked __P((int));
 #endif  #endif
   
 /*  /*
  * Routines that are purely local.   * Functions defined in POSIX 1003.2 and XPGn or later.
  */   */
 #if !defined (_ANSI_SOURCE) && !defined(_POSIX_SOURCE)  #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \
       (_POSIX_C_SOURCE - 0) >= 2 || defined(_XOPEN_SOURCE)
 __BEGIN_DECLS  __BEGIN_DECLS
 char    *fgetln __P((FILE *, size_t *));  
 int      fpurge __P((FILE *));  
 int      getw __P((FILE *));  
 int      pclose __P((FILE *));  int      pclose __P((FILE *));
 FILE    *popen __P((const char *, const char *));  FILE    *popen __P((const char *, const char *));
   __END_DECLS
   #endif
   
   /*
    * Functions defined in XPG4.2.
    */
   #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \
       defined(_XOPEN_SOURCE)
   __BEGIN_DECLS
   int      getw __P((FILE *));
 int      putw __P((int, FILE *));  int      putw __P((int, FILE *));
 void     setbuffer __P((FILE *, char *, int));  
 int      setlinebuf __P((FILE *));  
 char    *tempnam __P((const char *, const char *));  
 int      snprintf __P((char *, size_t, const char *, ...))  int      snprintf __P((char *, size_t, const char *, ...))
                 __attribute__((format (printf, 3, 4)));              __attribute__((__format__(__printf__, 3, 4)));
 int      vsnprintf __P((char *, size_t, const char *, _BSD_VA_LIST_))  int      vsnprintf __P((char *, size_t, const char *, _BSD_VA_LIST_))
                 __attribute__((format (printf, 3, 0)));              __attribute__((__format__(__printf__, 3, 0)));
   
   #ifndef __AUDIT__
   char    *tempnam __P((const char *, const char *));
   #endif
   __END_DECLS
   #endif
   
   /*
    * Routines that are purely local.
    */
   #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
       !defined(_XOPEN_SOURCE)
   __BEGIN_DECLS
   int      asprintf __P((char **, const char *, ...))
                   __attribute__((__format__(__printf__, 2, 3)));
   char    *fgetln __P((FILE *, size_t *));
   int      fpurge __P((FILE *));
   void     setbuffer __P((FILE *, char *, int));
   int      setlinebuf __P((FILE *));
   int      vasprintf __P((char **, const char *, _BSD_VA_LIST_))
                   __attribute__((__format__(__printf__, 2, 0)));
 int      vscanf __P((const char *, _BSD_VA_LIST_))  int      vscanf __P((const char *, _BSD_VA_LIST_))
                 __attribute__((format (scanf, 1, 0)));              __attribute__((__format__(__scanf__, 1, 0)));
 int      vsscanf __P((const char *, const char *, _BSD_VA_LIST_))  int      vsscanf __P((const char *, const char *, _BSD_VA_LIST_))
                 __attribute__((format (scanf, 2, 0)));              __attribute__((__format__(__scanf__, 2, 0)));
 __END_DECLS  __END_DECLS
   
 /*  /*

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.28

CVSweb <webmaster@jp.NetBSD.org>