stdio: use non-zero values for SEEK_*

libstdc++ uses 0, SEEK_CUR, SEEK_END in an internal enumeration. By
having SEEK_CUR=0 we would have a duplicate case.
This commit is contained in:
Lephenixnoir 2022-08-13 00:01:30 +02:00
parent 8231557ff5
commit 4b61daa602
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -125,9 +125,9 @@ typedef size_t fpos_t;
#define L_tmpnam FILENAME_MAX #define L_tmpnam FILENAME_MAX
/* Seeking positions. */ /* Seeking positions. */
#define SEEK_CUR 0 #define SEEK_CUR 1
#define SEEK_END 1 #define SEEK_END 2
#define SEEK_SET 2 #define SEEK_SET 3
/* Maximum number of unique filenames that tmpnam can generate. */ /* Maximum number of unique filenames that tmpnam can generate. */
/* TODO: Set a useful value in TMP_MAX other than 16*16*16 */ /* TODO: Set a useful value in TMP_MAX other than 16*16*16 */