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.

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

47 pointsby symisc_develover 9 years ago

6 comments

kylequestover 9 years ago
Aside from being C and "lightweight" I wonder when you'd want to pick this instead of POCO or ACE...
评论 #10183501 未加载
评论 #10182507 未加载
评论 #10182028 未加载
st2pover 9 years ago
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.
norswapover 9 years ago
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 未加载
geofftover 9 years ago
<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 未加载
tedunangstover 9 years ago
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...
k8tteover 9 years ago
Very cool project! But I agree with the comments about the name is unfortunate