[libc-commits] [PATCH] D139576: [libc] move errno out of file internals

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Dec 7 13:28:30 PST 2022


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

Now errno is only set by the terminal entrypoints, and not the internal
implementations. This patch is part of the larger effort to not set
errno in libc internal code: https://github.com/llvm/llvm-project/issues/59278


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139576

Files:
  libc/src/__support/File/CMakeLists.txt
  libc/src/__support/File/file.cpp
  libc/src/__support/File/file.h
  libc/src/__support/File/linux_file.cpp
  libc/src/stdio/CMakeLists.txt
  libc/src/stdio/fclose.cpp
  libc/src/stdio/fflush.cpp
  libc/src/stdio/fgetc.cpp
  libc/src/stdio/fgetc_unlocked.cpp
  libc/src/stdio/fgets.cpp
  libc/src/stdio/fopen.cpp
  libc/src/stdio/fopencookie.cpp
  libc/src/stdio/fputc.cpp
  libc/src/stdio/fputs.cpp
  libc/src/stdio/fread.cpp
  libc/src/stdio/fread_unlocked.cpp
  libc/src/stdio/fseek.cpp
  libc/src/stdio/ftell.cpp
  libc/src/stdio/fwrite.cpp
  libc/src/stdio/fwrite_unlocked.cpp
  libc/src/stdio/getc.cpp
  libc/src/stdio/getc_unlocked.cpp
  libc/src/stdio/printf_core/file_writer.cpp
  libc/src/stdio/putc.cpp
  libc/src/stdio/putchar.cpp
  libc/src/stdio/puts.cpp
  libc/src/stdio/scanf_core/file_reader.cpp
  libc/test/src/__support/File/file_test.cpp
  libc/test/src/__support/File/platform_file_test.cpp
  libc/test/src/stdio/fileop_test.cpp
  libc/test/src/stdio/ftell_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139576.481038.patch
Type: text/x-patch
Size: 66318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221207/9e296aab/attachment-0001.bin>


More information about the libc-commits mailing list