hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit e1e882bfc20377e734c14a764dbf556452244d83
parent 1775202449eec49bbd5cdc0f63c06b811271bedb
Author: Lorenz (xha) <me@xha.li>
Date:   Sat, 25 Nov 2023 15:18:08 +0100

OpenBSD: add path

Signed-off-by: Lorenz (xha) <me@xha.li>

Diffstat:
Apath/+openbsd.ha | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/path/+openbsd.ha b/path/+openbsd.ha @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: MPL-2.0 +// (c) Hare authors <https://harelang.org> + +use rt; + +// Platform-specific path separator byte. +export def SEP: u8 = '/'; + +const sepstr: str = "/"; + +// Maximum length of a file path for this platform. +export def MAX: size = rt::PATH_MAX - 1;