History log of /freebsd-10.2-release/lib/libutil/property.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 285830 23-Jul-2015 gjb

- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.2.
- Update default pkg(8) configuration to use the quarterly branch.[1]

Discussed with: re, portmgr [1]
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 152886 28-Nov-2005 jhb

Restore the previous state after a FILL operation in properties_read()
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


# 116344 14-Jun-2003 markm

Tidy up. Sort headers.


# 109916 27-Jan-2003 ache

Now return NULLified struct in case of empty config file
(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.


# 109915 27-Jan-2003 ache

Handle read errors


# 109515 19-Jan-2003 ache

Add (unsigned char) cast to ctype macros
Handle NULL return from malloc and strdup


# 102411 25-Aug-2002 charnier

Replace various spelling with FALLTHROUGH which is lint()able


# 84225 30-Sep-2001 dillon

Add __FBSDID()s to libutil


# 68509 09-Nov-2000 murray

Eliminate inconsistency where a value that contains only whitespace
confuses the parser.

Approved by: jkh


# 68488 08-Nov-2000 murray

Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h so
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


# 41291 22-Nov-1998 jkh

Better document the file format, add in support for nested {}'s in multi-line
property values.


# 40117 09-Oct-1998 jkh

Now take stdio.h out of files that don't require it.


# 40109 09-Oct-1998 jkh

o move path in libutil.h to paths.h
o make property_read() take a fd instead to avoid stdio.h mess
o update auth to new interface.


# 40050 08-Oct-1998 jkh

Correct a build error that got past my build test somehow.


# 40040 07-Oct-1998 jkh

Add a simple mechanism for reading property lists from files (which
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