summaryrefslogtreecommitdiff
path: root/lib/libutil/property.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-1/+3
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* Restore the previous state after a FILL operation in properties_read()John Baldwin2005-11-281-8/+15
| | | | | | | | | | | | | | rather than forcing the state to LOOK. If we are in the middle of parsing a line when we have to do a FILL we would have lost any token we were in the middle of parsing and would have treated the next character as being at the start of a new line instead. PR: kern/89181 Submitted by: Antony Mawer gnats at mawer dot org MFC after: 1 week Notes: svn path=/head/; revision=152886
* Tidy up. Sort headers.Mark Murray2003-06-141-5/+5
| | | | Notes: svn path=/head/; revision=116344
* Now return NULLified struct in case of empty config fileAndrey A. Chernov2003-01-271-6/+9
| | | | | | | | | | | (previous variant return NULL pointer for both empty file case and error case, so caller can't sense error properly). It not affect existen programs because property_find() now returns NULL for both NULL pointer and NULLified struct. Notes: svn path=/head/; revision=109916
* Handle read errorsAndrey A. Chernov2003-01-271-3/+6
| | | | Notes: svn path=/head/; revision=109915
* Add (unsigned char) cast to ctype macrosAndrey A. Chernov2003-01-191-13/+31
| | | | | | | Handle NULL return from malloc and strdup Notes: svn path=/head/; revision=109515
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-1/+1
| | | | Notes: svn path=/head/; revision=102411
* Add __FBSDID()s to libutilMatthew Dillon2001-09-301-3/+3
| | | | Notes: svn path=/head/; revision=84225
* Eliminate inconsistency where a value that contains only whitespaceMurray Stokely2000-11-091-1/+6
| | | | | | | | | confuses the parser. Approved by: jkh Notes: svn path=/head/; revision=68509
* Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h soMurray Stokely2000-11-081-8/+7
| | | | | | | | | | that applications know how large of a buffer they must allocate before calling property_find(). Also added a $FreeBSD$ tag while I'm here. Approved by: jkh Notes: svn path=/head/; revision=68488
* Better document the file format, add in support for nested {}'s in multi-lineJordan K. Hubbard1998-11-221-4/+11
| | | | | | | property values. Notes: svn path=/head/; revision=41291
* Now take stdio.h out of files that don't require it.Jordan K. Hubbard1998-10-091-1/+2
| | | | Notes: svn path=/head/; revision=40117
* o move path in libutil.h to paths.hJordan K. Hubbard1998-10-091-3/+2
| | | | | | | | o make property_read() take a fd instead to avoid stdio.h mess o update auth to new interface. Notes: svn path=/head/; revision=40109
* Correct a build error that got past my build test somehow.Jordan K. Hubbard1998-10-081-0/+2
| | | | Notes: svn path=/head/; revision=40050
* Add a simple mechanism for reading property lists from files (whichJordan K. Hubbard1998-10-071-0/+215
I'll convert sysinstall to use shortly) and a simple call which uses this mechanism to implement an /etc/auth.conf file. I'll let Mark Murray handle the format and checkin of the sample auth.conf file. Reviewed by: markm Notes: svn path=/head/; revision=40040