]> pd.if.org Git - pdclib/blobdiff - includes/stdio.h
Merged branch stdio_rewrite back into trunk.
[pdclib] / includes / stdio.h
index 7f793903eeda607033372928a620dbc6f60ecc3f..643bcf88beb9f355da1ddbbe5a3328dff9973e49 100644 (file)
@@ -30,7 +30,7 @@ typedef _PDCLIB_size_t size_t;
 #define _IONBF 4
 
 /* The following are platform-dependant, and defined in _PDCLIB_config.h. */
-typedef _PDCLIB_fpos_t        fpos_t;
+typedef struct _PDCLIB_fpos_t fpos_t;
 typedef struct _PDCLIB_file_t FILE;
 #define EOF -1
 #define BUFSIZ _PDCLIB_BUFSIZ
@@ -40,9 +40,9 @@ typedef struct _PDCLIB_file_t FILE;
 #define TMP_MAX _PDCLIB_TMP_MAX
 
 /* See fseek(), third argument */
-#define SEEK_CUR 1
-#define SEEK_END 2
-#define SEEK_SET 4
+#define SEEK_CUR _PDCLIB_SEEK_CUR
+#define SEEK_END _PDCLIB_SEEK_END
+#define SEEK_SET _PDCLIB_SEEK_SET
 
 extern struct _PDCLIB_file_t * stdin;
 extern struct _PDCLIB_file_t * stdout;
@@ -146,8 +146,7 @@ int fflush( struct _PDCLIB_file_t * stream );
    given.
 
    The stream is fully buffered if and only if it can be determined not to
-   refer to an interactive device. As the generic code of this implementation
-   cannot determine this, _IOLBF (line buffering) is used for all streams.
+   refer to an interactive device.
 
    If the mode string begins with but is longer than one of the above sequences
    the implementation is at liberty to ignore the additional characters, or do