src/os/executable_netbsd.go
raw| 1 | // Copyright 2024 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package os |
| 6 | |
| 7 | // From NetBSD's <sys/sysctl.h> |
| 8 | const ( |
| 9 | _CTL_KERN = 1 |
| 10 | _KERN_PROC_ARGS = 48 |
| 11 | _KERN_PROC_PATHNAME = 5 |
| 12 | ) |
| 13 | |
| 14 | var executableMIB = [4]int32{_CTL_KERN, _KERN_PROC_ARGS, -1, _KERN_PROC_PATHNAME} |