forked from security/hakurei
internal/validate: relocate from app
These are free of the dispatcher from internal/app. This change relocates them into their own package. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
8
internal/validate/sysconf.go
Normal file
8
internal/validate/sysconf.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package validate
|
||||
|
||||
//#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)) }
|
||||
Reference in New Issue
Block a user