libbsd-dev - utility functions from BSD systems - development files

Property Value
Distribution Debian 8 (Jessie)
Repository Debian Main amd64
Package name libbsd-dev
Package version 0.7.0
Package release 2
Package architecture amd64
Package type deb
Installed size 371 B
Download size 156.14 KB
Official Mirror
This library provides some functions commonly available on BSD systems but
not on others like GNU systems.
The currently provided functions are:
* _time32_to_time, _time_to_time32, _time64_to_time, _time_to_time64,
_time_to_long, _long_to_time, _time_to_int, _int_to_time.
* MD5Data, MD5End, MD5File, MD5FileChunk, MD5Final, MD5Init, MD5Pad,
MD5Transform, MD5Update.
* arc4random, arc4random_addrandom, arc4random_buf, arc4random_stir,
* bsd_getopt.
* be16dec, be32dec, be64dec, le16dec, le32dec, le64dec.
* be16enc, be32enc, be64enc, le16enc, le32enc, le64enc.
* closefrom.
* expand_number, dehumanize_number, humanize_number, strtonum, fmtcheck.
* errc, verrc, vwarnc, warnc.
* fgetln, fparseln, fgetwln, flopen, fpurge, funopen.
* getbsize.
* getmode, setmode, strmode,
* getpeereid.
* getprogname, setprogname.
* heapsort, radixsort, mergesort, sradixsort.
* nlist (ELF and a.out support).
* pidfile_open, pidfile_write, pidfile_close, pidfile_remove.
* readpassphrase.
* reallocarray, reallocf.
* setproctitle (initialized via libbsd-ctor or setproctitle_init).
* sl_init, sl_add, sl_free, sl_find.
* strlcpy, strlcat.
* strnstr.
* strnvis, strnunvis, strunvis, strunvisx, strvis, strvisx, unvis, vis.
* wcslcat, wcslcpy.
Also included are some queue macro definitions not present on includes
from glibc.


Package Version Architecture Repository
libbsd-dev_0.7.0-2_i386.deb 0.7.0 i386 Debian Main
libbsd-dev - - -


Name Value
libbsd0 = 0.7.0-2


Name Value
libfreebsd-dev << 0.0-8


Type URL
Binary Package libbsd-dev_0.7.0-2_amd64.deb
Source Package libbsd

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install libbsd-dev deb package:
    # sudo apt-get install libbsd-dev




2014-08-29 - Guillem Jover <>
libbsd (0.7.0-2) unstable; urgency=high
* Fix typo in package descriptions. (Closes: #756596)
Thanks to Ivan Masár <>.
* Move dh_install before any other dh_install* command in the binary-arch
target in debian/rules.
* Call dh_installman in debian/rules.
* Install funopen.3 man page as funopen.3bsd to avoid a file conflict
with libfuntools-dev. (Closes: #756469)
2014-07-29 - Guillem Jover <>
libbsd (0.7.0-1) unstable; urgency=low
* New upstream release.
- Add ELF types for OpenRISC. (Closes: #736759)
- Autoreconf during release adds support for ppc64el. (Closes: #754126)
* Try to clarify package descriptions for libbsd0, libbsd0-dbg and
libbsd0-udeb, to make it easier to know why the package is installed.
Based on suggestions by Jonathan Nieder <>.
(Closes: #663085)
* Mark libbsd-dev as Multi-Arch:same. (Closes: #755480)
Thanks to Dima Kogan <>.
* Update config.guess and config.sub at build time, via autotools-dev
debhelper commands. (Closes: #748994)
2014-03-04 - Guillem Jover <>
libbsd (0.6.0-2) unstable; urgency=low
* Take over standalone maintainership.
* Now using Standards-Version 3.9.5 (no changes needed).
* Do not set source compression to xz, it's now the default.
* Remove packaging history from debian/copyright.
* Add signature checking support to debian/watch, and ship upstream
signing keys in debian/upstream/signing-key.asc, exported with
pgp-clean (signing-party) to avoid useless bloat.
* Only restore /usr/include/nlist.h if it's missing, or if it contains
a libbsd instance of the header. And use the matching header from the
replaced package, which should now be ABI-compatible. (Closes: #724747)
* Remove debian/README.Debian, which contains information provided in the
package description.
2013-07-14 - Guillem Jover <>
libbsd (0.6.0-1) unstable; urgency=medium
* New upstream release.
- Move setproctitle() constructor into a new libbsd-ctor static library,
to avoid breakage on dlopen()+threads+constructor situations, like
when using samba NSS modules for example.
- Export setproctitle_init().
2013-06-08 - Guillem Jover <>
libbsd (0.5.2-1) unstable; urgency=medium
* New upstream release.
- Force setproctitle() constructor into the .init_array section.
- Fix use after free on setproctitle() constructor (bumped urgency).
* Update debian/copyright file.
2013-05-27 - Guillem Jover <>
libbsd (0.5.1-1) unstable; urgency=low
* New upstream release.
- Fix build failures on 32-bit systems due to an error on the test suite.
2013-05-27 - Guillem Jover <>
libbsd (0.5.0-1) unstable; urgency=low
* New upstream release.
- Implement setproctitle(). (Closes: #614959)
- Fix «make distclean» target to not remove distributed files.
* Change watch file to also look for xz compressed upstream releases.
* Fix two builds in a row by calling «make distclean» on clean.
* Fix cross-building support by passing correct --build and --host options
to configure. Based on patch by Colin Watson <>.
(Closes: #665997)
* Move -e option from postinst's shebang to an explicit set call.
* Switch to canonical Vcs URLs.
* Switch source package to xz compression.
* Switch to debhelper compatibility level 9.
* Now using Standards-Version 3.9.4 (no changes needed).
2012-06-27 - Guillem Jover <>
libbsd (0.4.2-1) unstable; urgency=low
* New upstream release.
* Disable silent rules, so that build logs get meaningful information.
* Update debian/copyright file.

See Also

Package Description
libbsd-resource-perl_1.2907-1+b2_amd64.deb BSD process resource limit and priority functions
libbsd0_0.7.0-2_amd64.deb utility functions from BSD systems - shared library
libbsearch-ruby1.8_1.5-9_all.deb Transitional package for ruby-bsearch
libbsearch-ruby_1.5-9_all.deb Transitional package for ruby-bsearch
libbsf-java-doc_2.4.0-5_all.deb Bean Scripting Framework to support scripting - documentation
libbsf-java_2.4.0-5_all.deb Bean Scripting Framework to support scripting languages in Java
libbsh-java_2.0b4-15+deb8u1_all.deb Java scripting environment (BeanShell) Version 2 (library)
libbssolv-perl_0.02-1_amd64.deb compute package dependencies (for Open Build Service backend)
libbt-dev_0.70.1-23+deb8u1_amd64.deb Blackbox - development library
libbt0_0.70.1-23+deb8u1_amd64.deb Blackbox - shared library
libbtf1.2.0_4.2.1-3_amd64.deb permutation to block triangular form library for sparse matrices
libbtm-java_2.1.4-2_all.deb Bitronix JTA Transaction Manager
libbtparse-dev_0.69-1+b1_amd64.deb C library to parse BibTeX files - development files
libbtparse1_0.69-1+b1_amd64.deb C library to parse BibTeX files
libbuffy-dev_1.9.2-2_amd64.deb Base functions for building mailbox summary applications