[all-commits] [llvm/llvm-project] a68f28: [libc++] Implements filebuf unbuffered.

Mark de Wever via All-commits all-commits at lists.llvm.org
Sat Dec 30 11:38:53 PST 2023


  Branch: refs/heads/users/mordante/implements_filebuf_unbuffered
  Home:   https://github.com/llvm/llvm-project
  Commit: a68f28e4b5e2ef7c2df9ce286a747931bbf0dfe7
      https://github.com/llvm/llvm-project/commit/a68f28e4b5e2ef7c2df9ce286a747931bbf0dfe7
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2023-12-30 (Sat, 30 Dec 2023)

  Changed paths:
    M libcxx/include/fstream
    A libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/setbuf.pass.cpp

  Log Message:
  -----------
  [libc++] Implements filebuf unbuffered.

When calling setbuf(nullptr, 0) before performing file operations it
should set the file to unbuffered mode. Currently the code avoids
buffering internally, but the underlying stream still can buffer.

This is addressed by disabling the buffering of the underlying stream.

Fixes: https://github.com/llvm/llvm-project/issues/60509




More information about the All-commits mailing list