A mirror of the official CoreFoundation code  http://opensource.apple.com/source/CF/