2012-01-22 31 views

回答

9

的ICU版本,你想知道如何找到這些自己。 (我喜歡Kerrek SB的名單,但我不能責怪你想知道如何自己去看這些東西。)

首先要做的事情:如果你在Debian或Ubuntu上,我強烈建議安裝除了通常的manpages封裝外,還有manpages-posixmanpages-posix-dev封裝。除了Linux man-pages project之外,還可以訪問standards

不同的是立即可見有:

man 2 close  # gives you the Linux documentation of the system call 
man 3posix close # gives you the POSIX definition of the function 

你也可以看到對於那些不太可能是系統功能的差異來電:

man 3 qsort  # Linux man-pages project describing the glibc function 
man 3posix qsort # POSIX standard definition of the function, should be useful 
        description for any POSIX-compliant system 

我還建議安裝dictdictd,並dict-jargondict-foldoc(或兩者)包:

$ dict stdin 
2 definitions found 

From The Free On-line Dictionary of Computing (26 July 2010) [foldoc]: 

    standard input/output 
    standard I/O 
    stderr 
    stdin 
    stdio 
    stdout 

    <programming, operating system> The predefined input/output 
    channels which every {Unix} process is initialised with. 
    Standard input is by default from the terminal, and standard 
    output and standard error are to the terminal. Each of these 
    channels (controlled via a {file descriptor} 0, 1, or 2 - 
    stdin, stdout, stderr) can be redirected to a file, another 
    device or a {pipe} connecting its process to another process. 
    The process is normally unaware of such {I/O redirection}, 
    thus simplifying prototyping of combinations of commands. 

    The {C} programming language library includes routines to 
    perform basic operations on standard I/O. Examples are 
    "printf", allowing text to be sent to standard output, and 
    "scanf", allowing the program to read from standard input. 

    (1996-06-07) 


From V.E.R.A. -- Virtual Entity of Relevant Acronyms (June 2006) [vera]: 

    STDIN 
     STandarD INput 

$ dict stdlib 
No definitions found for "stdlib" 
$ 

(搞笑吧?沒有你想要的之一。但是,它們仍然是很棒的工具。)

+0

*'$ dict stdin' * - 只是一個錯字?也許一個程序員的笑話被一個人打斷了? ;-) – Wolf

12

標準I/O(輸入 - 輸出)和標準庫

+0

你是怎麼知道的?我知道谷歌,但如果它不在那裏呢?有沒有命名文件? – Marty

+4

@Frederick:「標準」是一個非常常見的「標準」縮寫。 –

+0

那一個有解釋,但其他人(fcntl.h),不。 – Marty

22

OK,怎麼樣得到一個列表吧,然後:

  • 「標準輸入輸出」:標準輸入/輸出
  • 「STDLIB」:標準庫
  • 的 「printf」:打印格式化
  • 「fprintf中」:文件打印格式化( 「打印格式到文件」)
  • 「的sprintf」:字符串打印格式( 「打印格式設置爲串」)
  • 「vfprintf」:可變參數fprintf中
  • 「的fputc」 :文件把字符( 「把焦炭引入文件」)
  • 「scanf函數」:掃描格式
  • 「FREAD」:文件讀取( 「從文件中讀取」)
  • 「並行線程」:POSIX線程
  • 「 uint16_t「:無符號整型,16位寬
  • 「sigatomic_t」:可以在信號處理程序中原子級訪問的類型
  • 「_t」通常:爲標準庫中的類型名稱保留的後綴。
  • 「浮動」:浮點數
  • 「雙重」:雙精度浮點數
  • 「CHAR」:字符
  • 「位」:二進制數字
  • 「FD」:文件描述符
  • 「fcntl.h」:文件控制(Posix文件描述符)
  • 「ioctl。H「:I/O控制(也POSIX)
  • 」STAT「:一個文件(也POSIX)
  • 的狀態 」LSTAT「:狀態,可能是鏈接本身
  • 的 」FSTAT「:的狀態文件描述符
  • 「睡眠」:中斷正常活動而無需支持任何活動
  • 「usleep」:上面的版本,以微秒(μs)爲參數,'u'看起來有點像'μ'同時是基本的ASCII
  • 「recv」:receive
  • 「creat」:create
  • 「STR」:串,在C這通常指的是空終止字符數組
  • 「strtok的」:標記化串
  • 「POW」:功率
  • 「frexp」:小數部分(有效數)和指數
  • 「ABS」:絕對值
  • 「malloc的」:存儲器分配
  • 「釋放calloc」:分配和澄清,初始狀態是零
  • 「wcsrtombs」:寬字符串到多字節字符串,折返
  • 「wctomb」:寬字符到多字節字符
  • 「iconv」:???
  • 「uconv」: 「的iconv」
+0

不錯的開始。現在你怎麼知道,例如,「printf」中的「f」代表「格式」?你一定已經知道了某個地方...當然,其中很多是顯而易見的,但其他的並不是那麼多。看起來就像是在某個地方記錄的那樣。不過謝了,我想知道那個列表中的一些。 – Marty

+7

'usleep'中的'u'不是必須的。微(μ)是μ(μ),因爲它的參數是微秒。 –

+0

@FrederickCraine:因爲I/O可以是未格式化(「fread」)或格式化(「fprintf」)。一旦你知道了,你應該能夠弄清楚「f」是什麼意思。 R:當然你一定是在開玩笑。 ;-) –