From 0f41d9667133401f48fb54174cb2b120ed7a769c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 28 Aug 2025 00:04:58 +0900 Subject: internal: move sysconf wrapper to app This should not be used and is not useful in other packages. Signed-off-by: Ophestra --- internal/app/sysconf.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 internal/app/sysconf.go (limited to 'internal/app/sysconf.go') diff --git a/internal/app/sysconf.go b/internal/app/sysconf.go new file mode 100644 index 00000000..4c5714a9 --- /dev/null +++ b/internal/app/sysconf.go @@ -0,0 +1,8 @@ +package app + +//#include +import "C" + +const _SC_LOGIN_NAME_MAX = C._SC_LOGIN_NAME_MAX + +func sysconf(name C.int) int { return int(C.sysconf(name)) } -- cgit v1.3.1