TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

OS X 10.10 – Source Code

495 pointsby beltexover 10 years ago

23 comments

chollida1over 10 years ago
I opened one package at random<p><a href="http://opensource.apple.com/source/IOFWDVComponents/IOFWDVComponents-207.4.1/DVControlComponent.c" rel="nofollow">http:&#x2F;&#x2F;opensource.apple.com&#x2F;source&#x2F;IOFWDVComponents&#x2F;IOFWDVCo...</a><p>I see this:<p>#include &lt;Carbon&#x2F;Carbon.h&gt;<p>&#x2F;&#x2F;#include &lt;Resources.h&gt;<p>&#x2F;&#x2F;#include &lt;OSUtils.h&gt;<p>&#x2F;&#x2F;#include &lt;Components.h&gt;<p>#include &quot;DeviceControlPriv.h&quot;<p>#include &quot;IsochronousDataHandler.h&quot;<p>#include &quot;DVVers.h&quot;<p>#include &lt;stdio.h&gt;<p>#include &lt;stdlib.h&gt;<p>&#x2F;&#x2F;#include &lt;syslog.h&gt;<p>&#x2F;&#x2F; Debug messages<p>It&#x27;s good to know that I&#x27;m not the only one who has commented out code in their shipping code:)
评论 #8537025 未加载
评论 #8539073 未加载
评论 #8537610 未加载
评论 #8539921 未加载
评论 #8537628 未加载
评论 #8540387 未加载
jevinskieover 10 years ago
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 &quot;Sure, why not?&quot; 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:&#x2F;&#x2F;github.com&#x2F;Apple-FOSS-Mirror&#x2F;</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&#x27;t solved this problem yet.
评论 #8537978 未加载
评论 #8537161 未加载
评论 #8537135 未加载
chrisBobover 10 years ago
For those of us who don&#x27;t know what we are looking at, and just see the title of &quot;OS X 10.10 - Source Code&quot;, is this just Darwin, or is there more here than that?
评论 #8537051 未加载
评论 #8536963 未加载
评论 #8538617 未加载
reubenmoraisover 10 years ago
Here&#x27;s a diff between the 10.9 package list [0] and this one: <a href="https://gist.github.com/anonymous/014e71ac38a4776811f7" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;anonymous&#x2F;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:&#x2F;&#x2F;opensource.apple.com&#x2F;release&#x2F;os-x-109&#x2F;</a>
评论 #8536969 未加载
评论 #8536827 未加载
评论 #8537033 未加载
voltagex_over 10 years ago
A great, although sad post about the state of building (booting) Darwin: <a href="http://superuser.com/a/634080" rel="nofollow">http:&#x2F;&#x2F;superuser.com&#x2F;a&#x2F;634080</a>
codezeroover 10 years ago
Bummed they didn&#x27;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:&#x2F;&#x2F;opensource.apple.com&#x2F;source&#x2F;xnu&#x2F;xnu-2782.1.97&#x2F;bsd&#x2F;vfs...</a>
adamnemecekover 10 years ago
The procmail source is something else <a href="https://opensource.apple.com/source/procmail/procmail-14/procmail/src/procmail.c" rel="nofollow">https:&#x2F;&#x2F;opensource.apple.com&#x2F;source&#x2F;procmail&#x2F;procmail-14&#x2F;pro...</a>
评论 #8539957 未加载
3rd3over 10 years ago
Why is iOS only disclosed up to version 6.1.3? <a href="https://opensource.apple.com/" rel="nofollow">https:&#x2F;&#x2F;opensource.apple.com&#x2F;</a>
评论 #8536981 未加载
tkubackiover 10 years ago
in recent years even MS is releasing more meaningful open source code than Apple (eg. asp.net vnext, PCL) or I&#x27;m missing something
评论 #8538017 未加载
评论 #8537925 未加载
评论 #8538018 未加载
preillymeover 10 years ago
Yeah, I&#x27;m for sure missing launchd and memcached. But I suppose they&#x27;ve got their reasons.
评论 #8537467 未加载
aruncover 10 years ago
What version control does Apple use? Is this the same that is being hosted in the linking site as well?
voltagex_over 10 years ago
Any idea what&#x27;s up with the cert on <a href="https://opensource.apple.com/" rel="nofollow">https:&#x2F;&#x2F;opensource.apple.com&#x2F;</a>?
评论 #8537680 未加载
locomocoover 10 years ago
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:&#x2F;&#x2F;osxdaily.com&#x2F;2011&#x2F;09&#x2F;14&#x2F;disable-the-internal-screen-o...</a>
RexRollmanover 10 years ago
Do they not create bootable, installable images of Darwin anymore?
评论 #8536877 未加载
评论 #8537283 未加载
dangayleover 10 years ago
Does anyone know what they&#x27;re using Twisted for?
评论 #8538001 未加载
eccstartupover 10 years ago
swift is not open source?
评论 #8537009 未加载
评论 #8536948 未加载
评论 #8539755 未加载
评论 #8536940 未加载
评论 #8536941 未加载
iunkover 10 years ago
and they fixed a few Integer overflows - int size = inCapacity * sizeof(dictEntry); + if (inCapacity &gt; (UINT_MAX &#x2F; sizeof(dictEntry))) + return false;<p>+ unsigned int size = inCapacity * sizeof(dictEntry);
ahmettover 10 years ago
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:&#x2F;&#x2F;opensource.apple.com&#x2F;source&#x2F;bash&#x2F;bash-94.1.2&#x2F;version....</a>
评论 #8537131 未加载
评论 #8538689 未加载
chicofarmover 10 years ago
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&#x2F;user interface layer also included here?<p>Any CONTEXT related to this source code would be greatly appropriated.
评论 #8537939 未加载
评论 #8537846 未加载
jiyinyiyongover 10 years ago
Hi Ubuntu! How do you think about this?
amaksover 10 years ago
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.
bingeboyover 10 years ago
This is a good step into making Star Trek law the real law.
justcommentingover 10 years ago
for a second there i was hoping to see that they had merged <a href="https://github.com/fix-macosx/" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fix-macosx&#x2F;</a>
评论 #8537049 未加载