diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-02-02 13:56:33 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-02-02 13:56:33 -0500 |
| commit | 8b3f2fa09e9241e20926c8171753a271c21ec93d (patch) | |
| tree | a8bdff34505bfcf999467053dbfbf276bf7233f1 /src/stdio/_stdio.h | |
| parent | 3a9026cf8557c8efec34e652b6bf37ce49f12f86 (diff) | |
first cut of tracking previous return values with ftell()/fseek() as POC
Diffstat (limited to 'src/stdio/_stdio.h')
| -rw-r--r-- | src/stdio/_stdio.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/stdio/_stdio.h b/src/stdio/_stdio.h index d47ac5dd..c69b3787 100644 --- a/src/stdio/_stdio.h +++ b/src/stdio/_stdio.h @@ -59,7 +59,7 @@ struct __FILE { int thread; /* the owning thread if locked */ int orientation:2; /* 0 = undetermind, < 0 = byte, > 0 = wide */ - int operation; /* TODO: previous operation, NONE, INPUT, OUTPUT (are there others?) */ + int operation:2; /* TODO: previous operation, NONE, INPUT, OUTPUT (are there others?) */ int eof:1; /* eof indicator */ int err:1; /* error indicator */ int text:1; /* is this a text file? */ @@ -67,6 +67,11 @@ struct __FILE { #ifdef _POSIX_C_SOURCE pid_t pipe_pid; /* if stream is a pipe, the child pid */ #endif + + fpos_t *valid_fpos; + size_t nvalid_fpos; + long int *valid_ftell; + size_t nvalid_ftell; }; struct io_options { |
