Renz
fdc772200d
fix: Cross-platform build support (Windows, BSD, NetBSD)
Split resource limit checks into platform-specific files to handle
syscall API differences across operating systems.
Changes:
- Created resources_unix.go (Linux, macOS, FreeBSD, OpenBSD)
- Created resources_windows.go (Windows stub implementation)
- Created disk_check_netbsd.go (NetBSD stub - syscall.Statfs unavailable)
- Modified resources.go to delegate to checkPlatformLimits()
- Fixed BSD syscall.Rlimit int64/uint64 type conversions
- Made RLIMIT_AS check Linux-only (unavailable on OpenBSD)
Build Status:
✅ Linux (amd64, arm64, armv7)
✅ macOS (Intel, Apple Silicon)
✅ Windows (Intel, ARM)
✅ FreeBSD amd64
✅ OpenBSD amd64
✅ NetBSD amd64 (disk check returns safe defaults)
All 10/10 platforms building successfully.
2025-11-25 22:29:58 +00:00
..
2025-11-25 15:25:56 +00:00
2025-11-25 19:44:52 +00:00
2025-11-25 22:29:58 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 21:31:21 +00:00
2025-11-25 21:31:21 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 19:18:07 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 20:30:28 +00:00
2025-11-25 19:18:07 +00:00
2025-11-25 22:29:58 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 15:25:56 +00:00
2025-11-25 19:18:07 +00:00