This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] remove dependency on non standard ssize_t
ClosedPublic

Authored by gchatelet on Jan 15 2021, 3:10 AM.

Details

Summary

ssize_t is from POSIX and is not standard unfortunately.
Rewritting the code so it doesn't depend on it.

Diff Detail

Event Timeline

gchatelet created this revision.Jan 15 2021, 3:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 15 2021, 3:10 AM
gchatelet requested review of this revision.Jan 15 2021, 3:10 AM
gchatelet updated this revision to Diff 316953.Jan 15 2021, 7:42 AM
  • buffer values are never modified so we can use char instead of unsigned char.
sivachandra accepted this revision.Jan 18 2021, 9:56 PM
This revision is now accepted and ready to land.Jan 18 2021, 9:56 PM
This revision was automatically updated to reflect the committed changes.

Thx Chatelet! Thx Siva!
Sorry I didnt expect receiving emails to do with my minor commits.😛
I will be more careful from now on.

libc/src/string/memmove.cpp
14

I will remove the DEPS for unistd.h in CMake file.