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

Mark de Wever via All-commits all-commits at lists.llvm.org
Tue Mar 12 09:55:20 PDT 2024


  Branch: refs/heads/users/mordante/implements_filebuf_unbuffered
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e1652b1165d31b5057624661f006295b05a4bcd
      https://github.com/llvm/llvm-project/commit/2e1652b1165d31b5057624661f006295b05a4bcd
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-03-12 (Tue, 12 Mar 2024)

  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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list