Errno.h
外觀
這是此頁批准,以及是最近的修訂。
errno . h是 C 語言 C 標準函式庫內底的標頭檔,定義矣透過錯誤碼來回報錯誤資訊的巨集:
- ` errno ` 巨集的定義做一个 ` int ` 型態的左值,包括任何函式使用 errno 功能所產生的頂一个錯誤碼。
- 一寡表示錯誤碼,定義為整數值的巨集:
- ` EDOM ` 源自函式的參數超出範圍,比如講 ` sqrt ( 影一 ) `
- ` ERANGE ` 自函式的結果超出範圍,比如講 ` strtol ( " 零 xfffffffff " , NULL , 零 ) `
- ` EILSEQ ` 源自無合法的字元順序,比如講 ` wcstombs ( str , L " \ xffff " , 二 ) `
POSIX 相容的作業系統親像 UNIX 抑是 Linux 檢采會包含其他巨集來表示其他作業系統的錯誤碼二空空三年十二月二九,SCO Group 著去予伊選牢的 Fortune 一千發布 DMCA 公告,宣稱 errno . h 佇咧未授權的狀況之下毋過 UNIX 系統複製著矣 Linux 系統。Linux 的製作者兼商標有者 Linus Torvalds 否認 SCO 的指控,講伊家己寫矣 Linux 版本的程式。
原始碼
errno . h 佇咧 linux 中的原始碼 :
其他的項目
- C 標準函式庫
- SCO v . IBM Linux lawsuit
- stdio . h ( for perror )
- string . h ( for strerror )
外部連結
- Linus Torvalds's commentary on errno . h
- Commentary on the SCO Dec 兩千空三 ABI Files letter , including a detailed analysis of the history of errno . h
- Warren Toomey , of the UNIX Heritage Society , traces the history of errno . h in Unix and Linux
- Lists of errno values , both numeric and symbolic