src/os/executable_dragonfly.go
raw| 1 | // Copyright 2020 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 DragonFly's <sys/sysctl.h> |
| 8 | const ( |
| 9 | _CTL_KERN = 1 |
| 10 | _KERN_PROC = 14 |
| 11 | _KERN_PROC_PATHNAME = 9 |
| 12 | ) |
| 13 | |
| 14 | var executableMIB = [4]int32{_CTL_KERN, _KERN_PROC, _KERN_PROC_PATHNAME, -1} |