[all-commits] [llvm/llvm-project] 52b2e0: [libc] feat(filemode): implement class and helper ...

David Dada via All-commits all-commits at lists.llvm.org
Mon Sep 14 17:06:14 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52b2e03278f103f5baaa14a43bd9be380301de94
      https://github.com/llvm/llvm-project/commit/52b2e03278f103f5baaa14a43bd9be380301de94
  Author: David Dada <davidtofunmidada at gmail.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M libc/src/__support/File/file.cpp
    M libc/src/__support/File/file.h
    A libc/src/__support/File/file_mode.h
    M libc/src/__support/File/linux/CMakeLists.txt
    M libc/src/__support/File/linux/file.cpp
    M libc/src/__support/File/linux/file.h
    A libc/src/__support/File/linux/file_flags.h
    M libc/src/stdio/fmemopen.cpp
    M libc/src/stdio/fopencookie.cpp
    M libc/src/stdio/linux/stderr.cpp
    M libc/src/stdio/linux/stdin.cpp
    M libc/src/stdio/linux/stdout.cpp
    M libc/test/src/__support/File/CMakeLists.txt
    A libc/test/src/__support/File/file_mode_test.cpp
    M libc/test/src/__support/File/file_test.cpp

  Log Message:
  -----------
  [libc] feat(filemode): implement class and helper functions to handle file modes for an opened file (#220906)

I moved the logic from `mode_flags` function to the `FileMode`
constructor.

The `FileMode` class has several helper methods to work with modes which
can then be called in `File` class.

Issue: #213374

---------

Signed-off-by: tdadadavid <davidtofunmidada at gmail.com>
Co-authored-by: Michael Jones <michaelrj at google.com>



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