| 1 |
// SPDX-License-Identifier: MPL-2.0 |
| 2 |
// (c) Hare authors <https://harelang.org> |
| 3 |
|
| 4 |
use fs; |
| 5 |
use io; |
| 6 |
|
| 7 |
// Opens the executing process's binary image. |
| 8 |
export fn self() (image | io::error | fs::error) = { |
| 9 |
// OpenBSD only supports the fallback approach. |
| 10 |
return self_argv(); |
| 11 |
}; |