藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年6月6日 10:18


如何察看linux下的c函數實現的源碼??

怎麼去找?

另外:
我想看c 中uname函數的使用方法
但是man之後,只能看到系統的uname的實現方法
怎麼半??

多謝!!

如何察看linux下的c函數實現的源碼??

man 2uname呢?
man 3/4/5 uname呢?

如何察看linux下的c函數實現的源碼??

2 系統函數
3 庫函數
可以man這兩頁

如何察看linux下的c函數實現的源碼??

man 2可以,
為什麼訥!!!!!
謝謝

我怎麼去看函數的源碼訥!!!

如何察看linux下的c函數實現的源碼??

問個菜鳥問題:
系統函數和庫函數有什麼區別?
我怎麼感覺都是一樣的


還有我怎麼去察看源碼〉??

如何察看linux下的c函數實現的源碼??

系統函數就是系統調用
由內核實現

庫函數由libc庫實現
庫函數可能是對系統函數的包裝如malloc
也可能是與系統函數無關的實現, 如atoi htnnl

如何察看linux下的c函數實現的源碼??

多謝無雙!!!!

如何察看linux下的c函數實現的源碼??

無雙老大!man 2,man 3,!怎麼都用不對呀!
我得環境是sco

如何察看linux下的c函數實現的源碼??

UNAME(2)            Linux Programmer's Manual            UNAME(2)



NAME
       uname - get name and information about current kernel

SYNOPSIS
       #include<sys/utsname.h>;

       intuname(structutsname*buf);

DESCRIPTION
       uname  returns system information in the structure pointed
       to  by  buf.    The   utsname   struct   is   defined   in
       <sys/utsname.h>;:
              struct utsname {
                      char sysname[];
                      char nodename[];
                      char release[];
                      char version[];
                      char machine[];
              #ifdef _GNU_SOURCE
                      char domainname[];
              #endif
              };
       The  length  of the arrays in a struct utsname is unspeci?       fied; the fields are NUL-terminated.


這是linux上的
實在不行就到那個目錄下看
或是使用google查找man uname

如何察看linux下的c函數實現的源碼??

另外源碼的話需要看glibc的源碼
上google找

如何察看linux下的c函數實現的源碼??

man S uname

如何察看linux下的c函數實現的源碼??

S means what?

thanks!!

如何察看linux下的c函數實現的源碼??

man man



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com