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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Libcox – A C Library for Cross-Platform System Calls

47 点作者 symisc_devel超过 9 年前

6 条评论

kylequest超过 9 年前
Aside from being C and "lightweight" I wonder when you'd want to pick this instead of POCO or ACE...
评论 #10183501 未加载
评论 #10182507 未加载
评论 #10182028 未加载
st2p超过 9 年前
Thought it was either written by Russ Cox or it had something to do with Roosters. But seriously, it's more of a personal problem if someone can't make the minute mental leap to discriminate between cox and cocks-the name is perfectly fine and doesn't need to be changed.
norswap超过 9 年前
Why use command processing (e.g. `libcox_exec(pHandle,&pResult,"uname",-1)`) rather than plain function (could be `libcox_uname(pHandle, &pResult)` for instance) ?
评论 #10183686 未加载
geofft超过 9 年前
<p><pre><code> rc = libcox_exec_fmt(pHandle,&amp;pResult,&quot;ls &#x27;%s&#x27;&quot;,zDir); &#x2F;*Don&#x27;t forget the single quotes around &#x27;zDir&#x27; *&#x2F; </code></pre> This is either insecure, or so different from a shell as to make it not worth using shell syntax.<p>I really like the concept though. Took me to figure out what the concept is because &quot;system calls&quot; doesn&#x27;t mean &quot;shell commands&quot; to me, but having figured that out, operating on shell commands has a lot of things going for it.
评论 #10182878 未加载
tedunangst超过 9 年前
I don&#x27;t know how they managed to do it, but on the mobile version of the site, none of the useful links are actually links...
k8tte超过 9 年前
Very cool project! But I agree with the comments about the name is unfortunate