linux c常用標頭檔

來源:互聯網
上載者:User

最常用的

stdio.h

stdlib.h

string.h

unistd.h

想知道標頭檔的作用,用man查手冊就行了——比如想瞭解stdio.h,只需要: 
man stdio.h


aio.h 非同步I/O
assert.h 驗證程式斷言
complex 複數類
complex.h 複數處理
cpio.h cpio歸檔值
ctype.h 字元類型
dirent.h 目錄項,opendir(),closedir(),readdir(),readdir64()
dlfcn.h 動態連結
errno.h 出錯碼
exception 異常處理類
fcntl.h 檔案控制
fenv.h 浮點環境
float.h 浮點常數
fmtmsg.h 訊息顯示結構
fnmatch.h 檔案名稱匹配類型
fstream.h 檔案輸入/輸出
ftw.h 檔案樹漫遊
getopt.h 處理命令列參數,getopt()
glob.h 路徑名模式比對類型
grp.h 組檔案
iconv.h 代碼集轉換使用程式
inttypes.h 整數格式轉換
iomanip.h 參數化輸入/輸出
ios 基本輸入/輸出支援
iosfwd 輸入/輸出系統使用的前置聲明
iostream.h 資料流輸入/輸出
istream 基本輸入資料流
langinfo.h 語言資訊常量
libgen.h 模式比對函數定義
limits.h 定義各種資料類型最值常量
locale.h 定義本地化函數
math.h 定義數學函數
monetary.h 貨幣類型
mqueue.h 訊息佇列
ndbm.h 資料庫操作
nl_types.h 訊息類別
ostream 基本輸出資料流
poll.h 輪詢函數
pthread.h 線程
pwd.h 口令檔案
regex.h Regex
sched.h 執行調度
search.h 搜尋表
semaphore.h 訊號量
signal.h 訊號
spawn.h 即時spawn介面
sstream 基於字串的流
stdarg.h 可變參數表
stdbool.h 布爾環境
stddef.h 標準定義
stdexcept 標準異常類
stdint.h 整型環境
stdio.h 標準I/O庫
stdlib.h 公用函數
streambuf 底層輸入/輸出支援
string.h 字串操作
stropts.h XSI STREAMS介面
strstrea.h 基於數組的輸入/輸出
syslog.h 系統出錯日誌記錄
tar.h tar歸檔值
termios.h 終端I/O
tgmath.h 通用類型數學宏
time.h 時間和日期
trace.h 事件跟蹤
ucontext.h 使用者上下文
ulimit.h 使用者限制
unistd.h 符號常數
utime.h 檔案時間
utmpx.h 使用者帳戶資料庫
wchar.h 寬字元處理及輸入/輸出
wctype.h 寬字元分類
wordexp.h 字元擴充類型

linux/if.h 主要的socket標頭檔,包括ifreq,ifconf,ifmap
linux/if_packet.h 未經處理資料包的資料結構定義,包括sockaddr_pkt,sockaddr_ll,同理的還有if_ppp.h,if_tun.h等等
linux/ip.h iphdr的資料結構,以及一些ip層的資料定義,同理的還有tcp.h,udp.h等等

arpa/inet.h INTERNET定義
netdb.h hostent,gethostbyname
net/bpf.h berkeley的資料包過濾標頭檔
net/ethernet.h ether_addr,ether_header
net/if.h 通訊端本地介面
netinet/ether.h 以太禎的網路位元組和ascii位元組的轉換,包括ether_ntoa(),ether_aton這樣的函數定義
netinet/if_ether.h ether_arp的資料結構
netinet/in.h ip,結構sockaddr_in,ntoh,hton
netinet/ip.h iphdr的資料結構,同時還包括了timestamp結構
netinet/tcp.h 傳輸控制通訊協定定義

sys/ipc.h IPC
sys/mman.h 記憶體管理聲明
sys/msg.h 訊息佇列
sys/select.h Select函數
sys/sem.h 訊號量
sys/shm.h 共用儲存
sys/socket.h 通訊端借口
sys/stat.h 檔案狀態
sys/statvfs.h 檔案系統資訊
sys/time.h 時間類型
sys/timeb.h 附加的日期和時間定義
sys/times.h 進程時間
sys/types.h 原系統資料類型
sys/uio.h 向量I/O操作
sys/un.h UNIX域通訊端定義
sys/utsname.h 系統名
sys/wait.h 進程式控制制

algorithm STL通用演算法
bitset STL位集容器
deque STL雙端隊列容器
functional STL定義運算函數(代替運算子)
list STL線性列表容器
map STL映射容器
queue STL隊列容器
set STL集合容器
stack STL堆棧容器
utility STL通用模板類
vector STL動態數組容器

 

原文串連:http://tiandongying.blog.163.com/blog/static/163612821201041185532804/

另可參考   http://blog.chinaunix.net/uid-24778101-id-2579377.html

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.