xbps/bin
Juan RP 6010a24de6 libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes.
The funcs xbps_pkg_name() and xbps_pkgpattern_name() were
using malloc(3) to return the result, until now.

They now have been changed to not allocate the result
via malloc, the caller is responsible to provide a buffer
at least of XBPS_NAME_SIZE (64).

If for whatever reason the pkgname can't be guessed,
returns false. This should avoid lots of small allocs
around libxbps.

New functions have the following prototype:

bool xbps_pkg_name(char *dst, size_t len, const char *pkg)
bool xbps_pkgpattern_name(char *dst, size_t len, const char *pkg)

as suggested by @duncaen.
2020-02-08 19:49:57 +01:00
..
xbps-alternatives Added LTO support and fix warnings (maybe-uninitialized). 2019-06-27 18:09:26 +02:00
xbps-checkvers bin/xbps-checkvers: mistake in manpage 2020-01-30 08:01:12 +01:00
xbps-create libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
xbps-dgraph Fix maybe-uninitialized warnings detected by LTO. 2019-12-27 10:53:10 +01:00
xbps-digest xbps-fetch(1): new utility that replaces 'xbps-uhelper fetch'. 2019-06-12 18:07:24 +02:00
xbps-fbulk xbps-fbulk: do not make assert() change program behaviour. 2019-07-06 08:37:47 +02:00
xbps-fetch bin/xbps-fetch: add a mode that prints sha256sums of downloaded files 2020-01-18 16:44:31 +01:00
xbps-install libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
xbps-pkgdb libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
xbps-query Added LTO support and fix warnings (maybe-uninitialized). 2019-06-27 18:09:26 +02:00
xbps-reconfigure xbps-*: use xbps_pkgdb_update() correctly. 2019-06-22 18:50:40 +02:00
xbps-remove bin/xbps-remove: fix skipping executing orphans transaction 2019-06-26 22:24:47 +02:00
xbps-rindex libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
xbps-uchroot xbps-uchroot: stop remounting / unnecessarily. 2020-02-06 08:50:12 +01:00
xbps-uhelper libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
xbps-uunshare xbps-uunshare: document end of options argument 2019-11-24 12:28:45 +01:00
Makefile xbps-fetch(1): new utility that replaces 'xbps-uhelper fetch'. 2019-06-12 18:07:24 +02:00