| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
active.
Notes:
svn path=/head/; revision=85513
|
| |
|
|
|
|
|
|
| |
our pre-check control. Do the same way as refill.c does when it set __SERR,
i.e. clear read and ungetc buffers. Clear EOF flag too.
Notes:
svn path=/head/; revision=85418
|
| |
|
|
|
|
|
|
| |
It was correct, but not needed because internal buffer cleared on each seek
outside of it.
Notes:
svn path=/head/; revision=85396
|
| |
|
|
| |
Notes:
svn path=/head/; revision=85394
|
| |
|
|
|
|
|
|
| |
seek. It means that beginning of read buffer becomes not the same as current
file position.
Notes:
svn path=/head/; revision=85391
|
| |
|
|
| |
Notes:
svn path=/head/; revision=84962
|
| |
|
|
| |
Notes:
svn path=/head/; revision=84922
|
| |
|
|
| |
Notes:
svn path=/head/; revision=84306
|
| |
|
|
|
|
|
|
|
|
|
|
| |
of repeating unsuccessful lseek call on each write (original stdio bug).
2) Save errno accross _sseek call in _swrite to not touch it in case write
success (original stdio bug).
3) Add _sseek error checking back, but only for __SOPT mode now.
Notes:
svn path=/head/; revision=83211
|
| |
|
|
|
|
|
|
|
| |
with non-seekable streams. Now here is what here was originally, but it is
ugly, producing unneded seek syscall on each non-seekable stream write. I'll
think about proper solution later.
Notes:
svn path=/head/; revision=83177
|
| |
|
|
|
|
|
| |
NOTE: original stdio bug.
Notes:
svn path=/head/; revision=82839
|
| |
|
|
|
|
|
|
|
| |
no functional changes.
Add fp->_offset optimization in _SAPP+_SOPT case
Notes:
svn path=/head/; revision=82838
|
| |
|
|
|
|
|
|
|
|
| |
plain regular files, i.e. files with __SOPT flag set. Fix it, so ftell(stdout)
always returns the same as lseek(1, 0, 1) now.
NOTE: this bug was in original stdio code
Notes:
svn path=/head/; revision=82827
|
| |
|
|
|
|
|
|
| |
__SOFF flag (i.e. we don't have offset) instead of returning EOVERFLOW.
It allows again continious reading from non-stop stream.
Notes:
svn path=/head/; revision=82818
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82810
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
__swrite() and __sseek() to higher level. According to funopen(3) they all
are just wrappers to something like standard read(2), write(2) and
lseek(2), i.e. must not touch stdio internals because they are replaceable
with any other functions knows nothing about stdio internals. See example
of funopen(3) usage in sendmail sources f.e.
NOTE: this is original stdio bug, not result of my range checkin added.
Notes:
svn path=/head/; revision=82807
|
| |
|
|
|
|
|
|
|
| |
internal functions there may fail and set (i.e. overwrite) errno in normal
(not error) situation). In original variant errno testing after call
(as POSIX suggest) is wrong when errno overwrite happens.
Notes:
svn path=/head/; revision=82743
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82742
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82741
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82740
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82739
|
| |
|
|
|
|
|
| |
Add more to SEE ALSO section.
Notes:
svn path=/head/; revision=82738
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82737
|
| |
|
|
|
|
|
|
|
|
| |
0, return that we can't specify it, i.e. error with ESPIPE.
(hint from: "Peter S. Housel" <housel@acm.org>)
Back out sinit() addition, not needed after various code simplifications.
Notes:
svn path=/head/; revision=82736
|
| |
|
|
|
|
|
| |
to indicate that stream becomes inconsistent.
Notes:
svn path=/head/; revision=82735
|
| |
|
|
|
|
|
| |
return EIO and set __SERR to mark stream as inconsistent.
Notes:
svn path=/head/; revision=82734
|
| |
|
|
|
|
|
|
| |
keep negative offset internally, but return 0 externally in ftell*()
I.e. use 0 now as 'unspecified value' per POSIX ungetc() description.
Notes:
svn path=/head/; revision=82709
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82684
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82683
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82679
|
| |
|
|
|
|
|
| |
checks in ftell.
Notes:
svn path=/head/; revision=82673
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82670
|
| |
|
|
|
|
|
|
| |
it into one subfunction instead.
Try to use real offset in strange cases.
Notes:
svn path=/head/; revision=82668
|
| |
|
|
|
|
|
| |
internal buffer and trust offset, not return error.
Notes:
svn path=/head/; revision=82659
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82654
|
| |
|
|
|
|
|
| |
Use errno to catch negative seek with -1 offset
Notes:
svn path=/head/; revision=82653
|
| |
|
|
|
|
|
| |
Submitted by: yar
Notes:
svn path=/head/; revision=82642
|
| |
|
|
|
|
|
| |
if offset tends to be negative.
Notes:
svn path=/head/; revision=82591
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82590
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When file offset tends to be negative due to internal and ungetc buffers
additions counted, try to discard some ungetc data first, then return EBADF.
Later one can happens if lseek(fileno(fd),...) called f.e. POSIX says that
ungetc beyond beginning of the file results are undefined, so we can just
discard some of ungetc data in that case.
Don't rely on gcc cast when checking for overflow, use OFF_MAX.
Cosmetique.
Notes:
svn path=/head/; revision=82588
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82348
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82197
|
| |
|
|
|
|
|
|
|
| |
instead of char *.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=81975
|
| |
|
|
| |
Notes:
svn path=/head/; revision=81912
|
| |
|
|
| |
Notes:
svn path=/head/; revision=81822
|
| |
|
|
|
|
|
| |
_fseeko()
Notes:
svn path=/head/; revision=81821
|
| |
|
|
| |
Notes:
svn path=/head/; revision=81820
|
| |
|
|
| |
Notes:
svn path=/head/; revision=81819
|
| |
|
|
|
|
|
| |
there is no harm to have it, it will reduce next call efforts.
Notes:
svn path=/head/; revision=81818
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Resulting fseek() offset must fit in long, required by POSIX (pointed by bde),
so add LONG_MAX and final tests for it.
rewind.c:
1) add missing __sinit() as in fseek() it pretends to be.
2) use clearerr_unlocked() since we already lock stream before _fseeko()
3) don't zero errno at the end, it explicitely required by POSIX as the
only one method to test rewind() error condition.
4) don't clearerr() if error happens in _fseeko()
Notes:
svn path=/head/; revision=81817
|