This is an archive of the discontinued LLVM Phabricator instance.

[libc] use correct syscall define for SYS__llseek
ClosedPublic

Authored by gytsen on Jul 17 2022, 4:30 AM.

Details

Summary

Prior to this revision, the preprocessor would correctly look for the
definition of SYS__llseek. However, the resulting call to syscall(2)
would be done in this branch using SYS__lseek.

Fix this by calling syscall(2) using SYS__llseek.

fixes #56122

Diff Detail

Event Timeline

gytsen created this revision.Jul 17 2022, 4:30 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 17 2022, 4:30 AM
gytsen requested review of this revision.Jul 17 2022, 4:30 AM
gytsen edited the summary of this revision. (Show Details)
sivachandra accepted this revision.Jul 17 2022, 2:16 PM
This revision is now accepted and ready to land.Jul 17 2022, 2:16 PM

I don't seem to have permissions to be able to merge this. Would someone with write access be able to merge this?

sivachandra closed this revision.Nov 16 2022, 10:27 PM

Just following up - this was fixed by https://reviews.llvm.org/D133022