[all-commits] [llvm/llvm-project] 945e02: [libc] Add GNU extention functions fread_unlocked ...

Siva Chandra via All-commits all-commits at lists.llvm.org
Wed Apr 20 08:40:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 945e0220fd6f744f200ab93829b52c0c3c4031af
      https://github.com/llvm/llvm-project/commit/945e0220fd6f744f200ab93829b52c0c3c4031af
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

  Changed paths:
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/spec/gnu_ext.td
    M libc/spec/posix.td
    M libc/spec/spec.td
    M libc/spec/stdc.td
    M libc/src/__support/File/file.cpp
    M libc/src/__support/File/file.h
    M libc/src/stdio/CMakeLists.txt
    A libc/src/stdio/flockfile.cpp
    A libc/src/stdio/flockfile.h
    A libc/src/stdio/fread_unlocked.cpp
    A libc/src/stdio/fread_unlocked.h
    A libc/src/stdio/funlockfile.cpp
    A libc/src/stdio/funlockfile.h
    A libc/src/stdio/fwrite_unlocked.cpp
    A libc/src/stdio/fwrite_unlocked.h
    M libc/test/src/stdio/CMakeLists.txt
    A libc/test/src/stdio/unlocked_fileop_test.cpp

  Log Message:
  -----------
  [libc] Add GNU extention functions fread_unlocked and fwrite_unlocked.

POSIX locking and unlocking functions flockfile and funlockfile have
also been added. The locking is not recursive yet. A future patch will
make the underlying lock a recursive lock.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D123986




More information about the All-commits mailing list