diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-28 00:04:58 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-28 00:04:58 +0900 |
| commit | 0f41d9667133401f48fb54174cb2b120ed7a769c (patch) | |
| tree | d9e896d1d42e49743ebb29cc3f375e9cf956ffae /internal/app/sysconf.go | |
| parent | 92f510a6472064f4e4cb47ffb4f81898fc0a62ae (diff) | |
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>
Diffstat (limited to 'internal/app/sysconf.go')
| -rw-r--r-- | internal/app/sysconf.go | 8 |
1 files changed, 8 insertions, 0 deletions
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 <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)) } |
