libbsd
« Back to VersTracker
Description:
Utility functions from BSD systems
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: bsd compatibility library utilities c-library
Install: brew install libbsd
About:
LibBSD provides essential utility functions and compatibility layers derived from BSD systems for use on other Unix-like operating systems. It includes widely-used functions like strlcpy, strlcat, and getprogname that are missing from some standard C libraries. This library helps developers write more portable code while maintaining BSD-style functionality.
Key Features:
  • BSD-licensed utility functions (strlcpy, strlcat, getprogname, etc.)
  • Drop-in compatibility for BSD APIs on non-BSD systems
  • Minimal dependencies and lightweight footprint
  • Well-tested, production-ready code
Use Cases:
  • Porting BSD software to Linux or other Unix-like systems
  • Adding BSD-specific functionality to cross-platform applications
  • Replacing unsafe C library functions with safer BSD alternatives
Alternatives:
  • musl-libc – musl includes some BSD functions but LibBSD provides more comprehensive BSD API coverage
  • glibc – glibc lacks many BSD utilities that LibBSD provides out of the box
Version History
Detected Version Rev Change Commit
Sep 13, 2025 10:36am 0 VERSION_BUMP b9e73826