summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2006-08-27complete initialization.christos
2006-08-23Remove duplicate word. Markup fixes.wiz
2006-08-23Bump date for previous.wiz
2006-08-22Also guard object accessors against NULL (like we do foreign object types)thorpej
so that apps can use this construct safely: obj = prop_dictionary_get(dict, "value"); if (! prop_number_equals_integer(obj, 5)) { ... } Suggested by Iain Hibbert.
2006-08-21Add a workaround for GCC -Wuninitialized, similar to the prop_array.che
workaround, and properly marked with XXXGCC -Wuninitialized.
2006-08-21Add a workaround for a GCC -Wuninitialized mis-warning (seen for mips).he
2006-08-21Several changes to proplib:thorpej
- Arrays can now be externalized and internalized in the same way dictionaries can. - Add new "externalize to file" and "internalize from file" functions to make reading a property list from a file and writing a property list to a file more convenient. - Many assertions in the object implementations are gone. Instead, calling an accessor for one object type with a different object type as an argument will return a suitable "invalid" value. - prop_object_type() now returns a new PROP_TYPE_UNKNOWN value if called with a NULL object. - Externalized property lists now contain a reference to the Apple XML plist DTD. - Add a new prop_ingest(3) facility, which provides a convenient way to translate a dictionary into an arbitrary binary representation.
2006-08-15Fix bug involving addresses >= 4G on ppc64.ross
2006-07-12don't include stdint.h for _STANDALONE.yamt
2006-07-09Make HTML-safe.wiz
2006-07-09Sort SEE ALSO, make HTML-safe.wiz
2006-07-09Drop trailing whitespace.wiz
2006-07-07Change prop_number_t to store a uint64_t, rather than a uintmax_t. Nothorpej
ABI change, and we ought to explicitly state that this is a fixed-width type, since that what it needs to be for binary plist support.
2006-07-07Use a red-black tree to unique'ify the dictionary key symbols, rather thanthorpej
a sorted array. Using a tree puts the linkage into the key symbol itself, allowing us to avoid having to allocate memory with a mutex held.
2006-07-07add reachover ffs and strlen for ppc64ross
2006-07-07revertross
2006-07-07And yet more .S files...ross
2006-07-05Add kernel and user space parts of a protocol for sending property liststhorpej
to / from the kernel using ioctls.
2006-07-05Reduce the memory footprint for prop_bool_t objects significantly, takingthorpej
adavantage of the immutability of these objects: Statically allocate a TRUE object and a FALSE object, and simply return references to those objects for create and copy operations.
2006-05-28remove unused variable that broke buildjnemeth
2006-05-28Keep a table of unique dictionary keysyms. This way, if we have 200 devicesthorpej
with the "fw-path" property, we only have one copy of the "fw-path" string as a dictionary key.
2006-05-28Fix the way that prop_array_ensure_capacity() and _prop_array_expand()thorpej
interact.
2006-05-18More cleanup.thorpej
2006-05-18Move all of the locking compatibility definitions into prop_object_impl.h.thorpej
2006-05-18Minor cleanup.thorpej
2006-05-18- Add prop_array_equals(), prop_dictionary_equals(), andthorpej
prop_dictionary_keysym_equals(), and prop_object_equals() functions. - Use realloc() where it makes sense. There will be more changes in this area. - Add a _prop_object_type structure that is used internally to keep information about the object types. Decreases the footprint of the objects slightly by replacing several pointers with just one.
2006-05-13Coverity CID 3206: Add assertion for NULL deref.christos
2006-05-07Make the conditional for defining boolean_t complement the conditionalhe
in sys/sys/types.h -- also need to test _STANDALONE. Fixes a build problem for vax.
2006-05-07In _prop_dictionary_alloc(), explicitly set pd->pd_flags to zerosimonb
instead of leaving random garbage in there. Should we just use "memset(pd, 0, sizeof(*pd));" instead? Fixes boot problems on evbppc/WALNUT with new proplib.
2006-04-27Initial commit of proplib, a library for manipulating property lists andthorpej
converting to/from an XML external representation (based on Apple XML property lists). Works in the kernel and user space.
2006-04-23Now that bcopy.S doesn't contain the actual implemenation, move ituwe
back to libc.
2006-04-22Move the code into memcpy.S. Adjust the other files accordingly.uwe
Same binaries are generated.
2006-04-22libc gets gcc millicode from libgcc, so we don't need to keep ituwe
in src/common. Move it to sys/lib/libkern/arch/sh3.
2006-04-22Move strtoumax.c from libc/stdlib to common/libc/stdlib and include itthorpej
in libkern. Required for new code coming soon.
2006-04-07prefix local labels with ".L".yamt
2006-03-30remove bogus _LIBC defines. broke lint.christos
2006-03-13Enforce argument domain by assigning to a char variable and searchingmartin
for that. This way we pass the lib/libc/string/strrchr regression tests.
2006-02-18Don't bloat the standalone images with preset CRC tables and large routines.dsl
Ideally some of the loops need de-unrolling as well (and in adler32.c). Makes the i386 install floppies fit.
2006-02-08Don't rename bswap{16,32} if either _KERNEL or _STANDALONE are defined,simonb
instead of just if _KERNEL was defined. Fixes sbmips bootblocks build problems. Thanks to Valeriy Ushakov for showing me where the problem was.
2006-02-05Don't do DIAGASSERT against NULL if _KERNEL This puts us back toross
kernel behavior before src/common where 0 was a valid dest addr. This should fix the macppc (and other OEA ppc) silent-death-on-DIAGNOSTIC issue, and possibly other DIAGNOSTIC failures. XXX it might be worth thinking about an API where 0 is allowed in documented cases and not allowed otherwise.
2006-02-04Define htonl &co as alternative names to bswap only if little endian.uwe
I'm not sure if idempotent versions need to be defined for big endian, as the man page says in that case they are defined idempotent macros. PR port-arm/32734
2006-02-04libc wants __bswapNN, kernel wants bswapNN. That was not accounteduwe
for during the merge of kernel and libc versions. Fix to match e.g. i386 code.
2006-01-27Sprinkle __UNCONST and fix some casts to make this pass WARNS=4christos
Note, that we cannot fix this properly because it will break the zlib.h API.
2006-01-25If __NetBSD__ && (_KERNEL || _STANDALONE) - don't try to pull inuwe
limits.h to guess what a four byte type is, just use uint32_t.
2006-01-16change DEBUG to ZLIB_DEBUG.christos
2006-01-16Avoid possible name shadowing with min and max (from libkern).christos
2006-01-14add NetBSD ifdefschristos
2006-01-14- include <sys/types.h>christos
- add z_ptrdiff_t - add NetBSD ifdefs.
2006-01-14use z_ptrdiff_t instead of ptrdiff_t directly.christos
2006-01-14rename write to wwrite to avoid variable shadowing.christos