libc的源位置 - 通过下载或在线观看? [英] libc source location - for download or online viewing?

查看:329
本文介绍了libc的源位置 - 通过下载或在线观看?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

抱歉,我知道这是愚蠢的,但在这里是Linux的libc源$ C ​​$ C可用?似乎我从GNU下载没有成为我想要的东西,特别是我能找到什么在pthreads的函数族。

有一个在线(hypertexted交叉引用)版本的地方?


解决方案

大多数Linux版本使用名为libc的版本的glibc

有关的glibc的LXR(在线交叉参考系统)是如这里 http://koala.cs.pub.ro/lxr/glibc/ 为2.9版本(链路断开)。我必须说,事情可能不会lxr'ed因为一些源在构建过程中产生的,例如 - 我记得 - 包装围绕一个系统调用

pthread在 NPTL / 文件夹中。右链接libc的来源是 http://ftp.gnu.org/gnu /glibc/glibc-2.14.tar.bz2 (或更改为2.14您的版本)

更新:考拉的LXR闭幕后,有:


  1. Metager用glibc:的http:// code.metager.de/source/xref/gnu/glibc/ (与Sun的OpenGrok,原本是用来产生在线的x裁判对于Solaris / OpenSolaris的先得)


  2. 谷歌code搜索(我知道,这是封闭的,但我也知道这是其他版本,这是向上):的 HTTP://$c$c.google.com/$c$csearch 并尝试搜索的东西glibc的特定


UPD(2013年3月),他们再次杀死了codesearch:


  404。这是一个错误。


  
  

所请求的网址/ codesearch在此服务器上找到。这就是我们所知道的。


Sorry I know this is stupid but where is linux libc source code available? What I downloaded from GNU didn't seem to be what I wanted, specifically I could find nothing in the pthreads function family.

Is there an online (hypertexted cross-referenced) version somewhere?

解决方案

Most linuxes use a libc version named glibc.

The LXR (online cross-reference system) for glibc is e.g. here http://koala.cs.pub.ro/lxr/glibc/ for 2.9 version (link is broken). I must say that something may be not lxr'ed because some sources are generated in the build process, for example - as i can remember - wrappers around a system calls.

Pthreads are in nptl/ folder. Right link to libc sources is http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.bz2 (or change 2.14 to your version)

Update: After closing of koala's lxr, there are:

  1. Metager with glibc: http://code.metager.de/source/xref/gnu/glibc/ (Served with Sun's OpenGrok, which was originally used to generate online x-ref for Solaris/OpenSolaris)

  2. Google code search (I know that it was closed; but I also know it's other version which is up): http://code.google.com/codesearch and try to search something glibc-specific

UPD (march 2013) They killed codesearch again:

404. That’s an error.

The requested URL /codesearch was not found on this server. That’s all we know.

这篇关于libc的源位置 - 通过下载或在线观看?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆