The source code for fseek looks a bit dubious here at line 64:
> 
> 64    if (iop->_flag & _IOREAD) {
> 65            if (ptrname == 1 && iop->_base && !(iop->_flag&_IONBF)) {
> 66                    offset -= iop->_cnt;
> 67            }
> 68    } else if (iop->_flag & (_IOWRT | _IORW)) {
> 69            if (_fflush_u(iop) == EOF) {
> 70                    FUNLOCKFILE(lk);
> 71                    return (-1);
> 72            }
> 73    }





-- 
Richard PALO



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to