[libc-commits] [PATCH] D123986: [libc] Add GNU extention functions fread_unlocked and fwrite_unlocked.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Apr 19 00:45:26 PDT 2022


sivachandra created this revision.
sivachandra added reviewers: lntue, michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123986

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123986.423546.patch
Type: text/x-patch
Size: 15746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220419/ceb860f7/attachment-0001.bin>


More information about the libc-commits mailing list