-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Open
Labels
Description
Setting errno in support makes controlling whether errno is set much more difficult. Errno should be set as close to the return of a public function as possible.
List of places that need to be changed:
- __support/OSUtil/linux/fcntl.cpp - change to returning
ErrorOr
since if there's an error it always returns -1.__support/OSUtil/linux/vdso.cpp - currently calling public functions in support, which is also a problem. Movegetauxval
to an internal utility that doesn't set errno and this problem goes away.__support/HashTable/randomness.h - same issue as vdso, calling public functions leads to setting errno.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
llvmbot commentedon Jun 12, 2025
@llvm/issue-subscribers-libc
Author: Michael Jones (michaelrj-google)
List of places that need to be changed:
ErrorOr
since if there's an error it always returns -1.getauxval
to an internal utility that doesn't set errno and this problem goes away.[libc][NFC] clean internal fd handling
[libc][NFC] clean internal fd handling (#143991)
Automerge: [libc][NFC] clean internal fd handling (#143991)
[libc][NFC] clean internal fd handling (llvm#143991)
[libc][NFC] clean internal fd handling (llvm#143991)