internal: move sysconf wrapper to app

This should not be used and is not useful in other packages.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-08-28 00:04:58 +09:00
parent 92f510a647
commit 0f41d96671
3 changed files with 9 additions and 10 deletions

8
internal/app/sysconf.go Normal file
View File

@@ -0,0 +1,8 @@
package app
//#include <unistd.h>
import "C"
const _SC_LOGIN_NAME_MAX = C._SC_LOGIN_NAME_MAX
func sysconf(name C.int) int { return int(C.sysconf(name)) }