llvm/llvm-project

Check the ordering of the *at syscalls

Open

#195,620 opened on May 4, 2026

View on GitHub
 (7 comments) (0 reactions) (1 assignee)C++ (10,782 forks)batch import
good first issuelibc

Repository metrics

Stars
 (26,378 stars)
PR merge metrics
 (Avg merge 1d 2h) (1,000 merged PRs in 30d)

Description

In our syscalls in LLVM libc, we often have clauses like:

#ifdef SYS_mkdir
#elif SYS_mkdirat
#endif

I want to check if we should be preferring the *at syscalls on systems that have both as I think they're newer and preferred.

Contributor guide