I opened one package at random<p><a href="http://opensource.apple.com/source/IOFWDVComponents/IOFWDVComponents-207.4.1/DVControlComponent.c" rel="nofollow">http://opensource.apple.com/source/IOFWDVComponents/IOFWDVCo...</a><p>I see this:<p>#include <Carbon/Carbon.h><p>//#include <Resources.h><p>//#include <OSUtils.h><p>//#include <Components.h><p>#include "DeviceControlPriv.h"<p>#include "IsochronousDataHandler.h"<p>#include "DVVers.h"<p>#include <stdio.h><p>#include <stdlib.h><p>//#include <syslog.h><p>// Debug messages<p>It's good to know that I'm not the only one who has commented out code in their shipping code:)
This inspires me to update my script that converted opensource.apple.com into Github repos [0] (even creating the repo using the Github API). It needed more work because some of the Apple source releases are messed up and include another copy of the source tree in a directory at the root of a tarball!<p>I asked Github if it was OK to upload the tens of gigabytes of source that the entirety of opensource.apple.com is and I got a "Sure, why not?" response. =)<p>I think the last time I updated these repos was around 10.7 or 10.8<p>[0]: <a href="https://github.com/Apple-FOSS-Mirror/" rel="nofollow">https://github.com/Apple-FOSS-Mirror/</a><p>Edit: I was always wondering how I could manipulate git such that anyone could checkout my scripts and create identical git repos (same commit hashes and all) with a single command. I am somewhat hesitant to update the repos now because it would involve rewriting old commits since I haven't solved this problem yet.
For those of us who don't know what we are looking at, and just see the title of "OS X 10.10 - Source Code", is this just Darwin, or is there more here than that?
Here's a diff between the 10.9 package list [0] and this one: <a href="https://gist.github.com/anonymous/014e71ac38a4776811f7" rel="nofollow">https://gist.github.com/anonymous/014e71ac38a4776811f7</a><p>Few changes, but some interesting things pop out, like the addition of libmalloc and libpthread and the removal of memcached and securityd.<p>[0] <a href="http://opensource.apple.com/release/os-x-109/" rel="nofollow">http://opensource.apple.com/release/os-x-109/</a>
A great, although sad post about the state of building (booting) Darwin: <a href="http://superuser.com/a/634080" rel="nofollow">http://superuser.com/a/634080</a>
Bummed they didn't fix the bug I submitted in vfs_syscall. In fsetxattr when key values are too long it returns EPERM instead of ENAMETOOLONG as described in the man page :(<p>Bug is not present in setxattr:
<a href="http://opensource.apple.com/source/xnu/xnu-2782.1.97/bsd/vfs/vfs_syscalls.c" rel="nofollow">http://opensource.apple.com/source/xnu/xnu-2782.1.97/bsd/vfs...</a>
The procmail source is something else <a href="https://opensource.apple.com/source/procmail/procmail-14/procmail/src/procmail.c" rel="nofollow">https://opensource.apple.com/source/procmail/procmail-14/pro...</a>
Now will someone figure out a terminal command to turn off the MacBook Pro display for Yosemite?<p>Like the following:
<a href="http://osxdaily.com/2011/09/14/disable-the-internal-screen-on-a-macbook-pro-or-air-in-mac-os-x-10-7-lion/" rel="nofollow">http://osxdaily.com/2011/09/14/disable-the-internal-screen-o...</a>
and they fixed a few Integer overflows
- int size = inCapacity * sizeof(dictEntry);
+ if (inCapacity > (UINT_MAX / sizeof(dictEntry)))
+ return false;<p>+ unsigned int size = inCapacity * sizeof(dictEntry);
And the good old shellshocked bash version 3.2 <a href="http://opensource.apple.com/source/bash/bash-94.1.2/version.h" rel="nofollow">http://opensource.apple.com/source/bash/bash-94.1.2/version....</a>
does this mean we can compile Yosemite from the code here and install it on a modern Mac?<p>Or is this just the Darwin kernel code?<p>Are the aqua/user interface layer also included here?<p>Any CONTEXT related to this source code would be greatly appropriated.
Just by glancing over the code overall looks like a poorly structured and inconsistent code, lacking centralized coding guidelines or practices. Pretty scary for a shipping product to have code like this.
for a second there i was hoping to see that they had merged <a href="https://github.com/fix-macosx/" rel="nofollow">https://github.com/fix-macosx/</a>