mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 01:28:00 -04:00
ftello: return 1 when seeking offset on an append stream.
Obtained from: Apple Inc. (Libc 997.90.3) Phabric: D442 MFC after: 2 weeks
This commit is contained in:
parent
c03225695d
commit
4a4e32a81d
1 changed files with 2 additions and 0 deletions
|
|
@ -97,6 +97,8 @@ _ftello(FILE *fp, fpos_t *offset)
|
|||
* Find offset of underlying I/O object, then
|
||||
* adjust for buffered bytes.
|
||||
*/
|
||||
if (__sflush(fp)) /* may adjust seek offset on append stream */
|
||||
return (1);
|
||||
if (fp->_flags & __SOFF)
|
||||
pos = fp->_offset;
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue