TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

OS X 10.10 – Source Code

495 点作者 beltex超过 10 年前

23 条评论

chollida1超过 10 年前
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 未加载
jevinskie超过 10 年前
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 未加载
chrisBob超过 10 年前
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 未加载
reubenmorais超过 10 年前
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_超过 10 年前
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>
codezero超过 10 年前
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>
adamnemecek超过 10 年前
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 未加载
3rd3超过 10 年前
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 未加载
tkubacki超过 10 年前
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 未加载
preillyme超过 10 年前
Yeah, I&#x27;m for sure missing launchd and memcached. But I suppose they&#x27;ve got their reasons.
评论 #8537467 未加载
arunc超过 10 年前
What version control does Apple use? Is this the same that is being hosted in the linking site as well?
voltagex_超过 10 年前
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 未加载
locomoco超过 10 年前
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>
RexRollman超过 10 年前
Do they not create bootable, installable images of Darwin anymore?
评论 #8536877 未加载
评论 #8537283 未加载
dangayle超过 10 年前
Does anyone know what they&#x27;re using Twisted for?
评论 #8538001 未加载
eccstartup超过 10 年前
swift is not open source?
评论 #8537009 未加载
评论 #8536948 未加载
评论 #8539755 未加载
评论 #8536940 未加载
评论 #8536941 未加载
iunk超过 10 年前
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);
ahmett超过 10 年前
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 未加载
chicofarm超过 10 年前
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 未加载
jiyinyiyong超过 10 年前
Hi Ubuntu! How do you think about this?
amaks超过 10 年前
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.
bingeboy超过 10 年前
This is a good step into making Star Trek law the real law.
justcommenting超过 10 年前
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 未加载