aboutsummaryrefslogtreecommitdiff
path: root/lib/libnv/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* libnv: bump library versionKristof Provost2022-07-211-1/+1
| | | | | | | | | | | Now that we version symbols we should bump the library major version. While here use version FBSD_1.7 to match the current HEAD FreeBSD namespace and remove extraneous 'All rights reserved' and incorrect copyright statement. Reviewed by: kevans Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D35875
* namespace nv names, version libnv and libnvpair library symbolsReid Linnemann2022-07-211-0/+3
| | | | | | | | | | | | | | | libnv and libnvpair have aliased symbols, and as a result a single process which dlopens a shared object that is dynamically linked to libnv and another to libnvpair will wind up with a single set of resolved symbols for those in conflict. A source file also cannot include both libnv and libnvpair headers because of aliased identifiers. To resolve the situation, libnv types and functions are namespaced via nv_namespace.h, and libnv symbols are versioned. The msgio functions are not namespaced or exported as they are not part of the external API. Reviewed by: kevans Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D35261
* libpfct: Fix PIC flagKristof Provost2021-04-171-1/+0
| | | | | | | | Use ${PICFLAG} rather than hard-adding -fPIC, which removes the requirement for libnv to be built PIC. MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate")
* libnv: Use PICFLAG rather than -fPICKristof Provost2021-04-101-1/+1
| | | | | | Suggested by: andrew MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate")
* libnv: Build PICKristof Provost2021-04-101-0/+1
| | | | | | | | | Build libnv as position independent code so we can use it from shared libraries. MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29561
* Fix libnv build post renameMatt Macy2020-06-271-1/+1
| | | | | | | | Submitted by: Neel Chauhan Differential Revision: https://reviews.freebsd.org/D25481 Notes: svn path=/head/; revision=362669
* pkgbase: Put a lot of binaries and lib in FreeBSD-runtimeEmmanuel Vadot2019-09-051-1/+1
| | | | | | | | | | | | All of them are needed to be able to boot to single user and be able to repair a existing FreeBSD installation so put them directly into FreeBSD-runtime. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21503 Notes: svn path=/head/; revision=351855
* libnv: Remove -I${SRCTOP}/sysKyle Evans2018-08-091-1/+1
| | | | | | | | | | | | | | | | This should have been done as part of r336019 -- including ${SRCTOP}/sys is not a good business model for something that's build in legacy/bootstrap stages. Beyond that, libnv seems to build quite alright as legacy, part of buildworld, and standalone without. Axe it. Reported by: truckman (head building stable/11) Tested by: Shawn Webb (HardenedBSD) MFC after: 3 days Notes: svn path=/head/; revision=337549
* No longer install sys/nv.h and sys/cnv.h in lib/libnv/MakefileAlex Richardson2018-07-161-3/+0
| | | | | | | | | | | | | Use tools/build/Makefile to install the headers into ${WORLDTMP}/legacy instead. Compared to r336026 this has the minor advantage that it avoids unncessary header installation when building the non-bootstrap libnv. Reviewed By: bdrewery, kevans Approved By: brooks (mentor) Differential Revision: https://reviews.freebsd.org/D16187 Notes: svn path=/head/; revision=336335
* config(8): Fix broken ABIKyle Evans2018-07-061-0/+3
| | | | | | | | | | | | | | | r336019 introduced ${SRCTOP}/sys to the include paths in order to pull in a new sys/{c,}nv.h. This is wrong, because the build tree's ABI isn't guaranteed to match what's running on the host system. Fix instead by removing -I${SRCTOP}/sys and installing the libnv headers with `make -C lib/libnv includes`... this may or may not get re-worked in the future so that a userland lib isn't installing includes from sys/. Reported by: bdrewery Notes: svn path=/head/; revision=336026
* Add HAS_TESTS to all Makefiles that are currently using theEnji Cooper2017-08-021-0/+1
| | | | | | | | | `SUBDIR.${MK_TESTS}+= tests` idiom. This is a follow up to r321912. Notes: svn path=/projects/make-check-sandbox/; revision=321914
* Convert traditional ${MK_TESTS} conditional idiom for including testEnji Cooper2017-08-021-3/+1
| | | | | | | | | | | | | | directories to SUBDIR.${MK_TESTS} idiom This is being done to pave the way for future work (and homogenity) in ^/projects/make-check-sandbox . No functional change intended. MFC after: 1 weeks Notes: svn path=/head/; revision=321912
* Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesEnji Cooper2017-01-201-2/+2
| | | | | | | | | | This implifies pathing in make/displayed output MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312492
* Add cnv API.Mariusz Zaborski2016-08-271-1/+2
| | | | | | | | | | | cnv API is a set of functions for managing name/value pairs by cookie. The cookie can be obtained by nvlist_next(), nvlist_get_parent() or nvlist_get_pararr() function. This patch also includes unit tests. Submitted by: Adam Starak <starak.adam@gmail.com> Notes: svn path=/head/; revision=304908
* MFHGlen Barber2016-03-021-2/+0
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318
| * Remove WARNS inherited fine by ../Makefile.inc.Bryan Drewery2016-02-261-2/+0
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296129
* | First pass through library packaging.Glen Barber2016-02-041-0/+1
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
* Move the nvlist source and private includes from sys/kern to seperateMariusz Zaborski2015-07-041-4/+4
| | | | | | | | | | | | directory sys/contrib/libnv. The goal of this operation is to NOT install header files which shouldn't be used outside the nvlist library. Approved by: pjd (mentor) Notes: svn path=/head/; revision=285139
* Move nvlist documentation to the FreeBSD Kernel Developer's sections.Mariusz Zaborski2015-07-041-65/+0
| | | | | | | Approved by: pjd (mentor) Notes: svn path=/head/; revision=285129
* Let the nv.h and dnv.h includes be only in sys directory.Mariusz Zaborski2015-07-021-3/+0
| | | | | | | | | | Change consumers to include those files from sys. Add duplicated files to ObsoleteFiles. Approved by: pjd (mentor) Notes: svn path=/head/; revision=285063
* Revert r284417 it is not necessary anymoreBaptiste Daroussin2015-06-151-1/+1
| | | | Notes: svn path=/head/; revision=284421
* Enforce overwritting SHLIBDIRBaptiste Daroussin2015-06-151-1/+1
| | | | | | | | | | | | Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere. This makes /lib being populated again. Reported by: many Notes: svn path=/head/; revision=284417
* Add nvlist_flags() function, which returns nvlist's public flags.Mariusz Zaborski2015-05-011-0/+1
| | | | | | | Approved by: pjd (mentor) Notes: svn path=/head/; revision=282312
* Sort MLINKS alphabetically.Mariusz Zaborski2015-05-011-46/+46
| | | | | | | Approved by: pjd (mentor) Notes: svn path=/head/; revision=282304
* Remove the nvlist_.*[fv] functions.Mariusz Zaborski2015-04-291-82/+0
| | | | | | | | | | | | | | | | | | | Those functions are problematic, because there is no way to report memory allocation problems without complicating the API, so we can either abort or potentially return invalid results. None of which is acceptable. In most cases the caller knows the size of the name, so he can allocate buffer on the stack and use snprintf(3) to prepare the name. After some discussion the conclusion is to removed those functions, which also simplifies the API. Discussed with: pjd, rstone Approved by: pjd (mentor) Notes: svn path=/head/; revision=282257
* Move libnv into the kernel and hook it into the kernel buildRyan Stone2015-03-011-3/+6
| | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D1883 Reviewed by: jfv MFC after: 1 month Sponsored by: Sandvine Inc. Notes: svn path=/head/; revision=279439
* Add function to force an nvlist into the error stateRyan Stone2015-03-011-0/+1
| | | | | | | | | | | | | | Add an nvlist_set_error() function that can be used to force an nvlist into the error state. This is useful both for writing tests and for writing APIs that use nvlists internally. Differential Revision: https://reviews.freebsd.org/D1878 Reviewed by: pjd, jfv MFC After: 1 month Sponsored by: Sandvine Inc. Notes: svn path=/head/; revision=279434
* Add missing nvlist_get_parent(3) link.Pawel Jakub Dawidek2015-01-301-0/+1
| | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Notes: svn path=/head/; revision=277926
* fix typo, properly install a link to nv for nvlist_freev...John-Mark Gurney2014-10-271-1/+1
| | | | Notes: svn path=/head/; revision=273752
* Include src.opts.mk after SHLIBDIR has been defined so libnv is installed toEnji Cooper2014-09-071-1/+2
| | | | | | | | | | | | | /lib , not /usr/lib MFC after: 3 days Approved by: rpaulo (mentor) Submitted by: antoine Pointyhat to: me Phabric: D739 Notes: svn path=/head/; revision=271241
* Integrate lib/libnv into the build/kyuaEnji Cooper2014-08-051-0/+6
| | | | | | | | | | | | Rename all of the TAP test applications from <test> to <test>_test to match the convention described in the TestSuite wiki page Phabric: D538 Approved by: jmmv (mentor) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=269603
* Bring in libnv library for managing name/value pairs. The following typesPawel Jakub Dawidek2013-11-121-0/+161
are currently supported: - NV_TYPE_NULL - only name, no data; - NV_TYPE_BOOL - boolean (true or false); - NV_TYPE_NUMBER - 64bit unsigned integer; - NV_TYPE_STRING - C string; - NV_TYPE_NVLIST - nested nvlist; - NV_TYPE_DESCRIPTOR - file descriptor; - NV_TYPE_BINARY - binary data. For detailed documentation and examples see nv(3) manual page. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=258065