X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdio.h;h=643bcf88beb9f355da1ddbbe5a3328dff9973e49;hb=5bcc00c1b85feff1996e3f34a1a9ebf3b624161e;hp=7f793903eeda607033372928a620dbc6f60ecc3f;hpb=77d3087b1ec0eba88e55de1e90efc43948a023c5;p=pdclib diff --git a/includes/stdio.h b/includes/stdio.h index 7f79390..643bcf8 100644 --- a/includes/stdio.h +++ b/includes/stdio.h @@ -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