llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.59k stars 11.81k forks source link

[libc] implement getconf binary #77332

Open nickdesaulniers opened 9 months ago

nickdesaulniers commented 9 months ago

An internal discussion mentioned getconf which doesn't seem to be a function, but a binary that wraps calls to sysconf or confstr (according to man 1 getconf). Not sure if it's useful, but filing a bug to track.

It looks like sysconf is currently implemented, confstr is not.

llvmbot commented 9 months ago

@llvm/issue-subscribers-libc

Author: Nick Desaulniers (nickdesaulniers)

An internal discussion mentioned `getconf` which doesn't seem to be a function, but a binary that wraps calls to `sysconf` or `confstr` (according to `man 1 getconf`). Not sure if it's useful, but filing a bug to track.