<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/120155>120155</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            read_unlocked doesn't support _IOLBF and _IONBF modes
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            michaelrj-google
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          vonosmas
      </td>
    </tr>
</table>

<pre>
    `read_unlocked` currently only supports _IOFBF buffering, this bug is to track adding support for _IOLBF and _IONBF modes. (note - `write_unlocked` already does have support for them).

See WIP patch in https://github.com/llvm/llvm-project/compare/main...braydonk:llvm-project:braydonk-file-buf-modes

@michaelrj-google - LMK if this can be marked as "good-first-issue"?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUkk-P2yAQxT_N-DKyRcZObB98SFpZWnX7R-qhxxWGsc0GQwQ4Vb59leymVSr1UC4gwQxv3u_JGM3kmDvYHoBoMWqWbMNrPnk_WQYi2H7M5JpmH7qzdz4uMmaD15cOdiKw1C-rs14dWcNOoFpDYJfsBb2zF4zr6eRDivjy9LU_9Dis48jBuAnoA6bZRBzWCU3E5DEFqY4otTZuuhfi6MO19vnQo3T6evxy6HHxmmOBQI3ziTFH2ImfwSR-0CLtVd4FteeIszzzQ9c08wLUFiD2IPbfmfHH0zc8yaRmNA7nlE4Ryj1QD9RPJs3rUCi_APXWnu9bfgr-lVUC6pVfTjIwUL9I44qiGIK8aO-OUO4fnpb7-00-Gsv5sI75baA3JVCJvyFgjs-fP6EZ3yxT0uHAuMhwZI0yIhBN3ut8NCGm3MS43riVfaa7UrdlKzPuNnVZlU3TtHU2dyXVbcl1UzZNK9pm1-wU1ZJYNMNWiLbNTEeCqg1tdkTVpqyLquXquvQom1GoESrBizS2uM5W-DBlt3-7DYnNdptZObCN76GyZlDvQQrdzYthnSJUwpqY4p8OySTL3UOmbvAcUJ1-w_tHHLI12O6_qd1ER6D-Xfe5o18BAAD__0EIAdw">