Linux C标准
Linux下C標(biāo)準(zhǔn)
宗旨:技術(shù)的學(xué)習(xí)是有限的,分享的精神是無(wú)限的。
1、ANSI C
ANSI C的目標(biāo)是為各種操作系統(tǒng)上的C程序提供可移植性保證(如Linux與windows之間)。
ISO C標(biāo)準(zhǔn)定義的頭文件
| <assert.h> | 驗(yàn)證程序斷言 | <signal.h> | 信號(hào) |
| <complex.h> | 支持復(fù)數(shù)算法 | <stdarg.h> | 可變參數(shù)表 |
| <ctype.h> | 字符類型 | <stdbool.h> | 布爾類型和值 |
| <errno.h> | 出錯(cuò)碼 | <stddef.h> | 標(biāo)準(zhǔn)定義 |
| <fenv.h> | 浮點(diǎn)環(huán)境 | <stdint.h> | 整形 |
| <float.h> | 浮點(diǎn)常量 | <stdio.h> | 標(biāo)準(zhǔn)I/O庫(kù) |
| <inttypes.h> | 整形格式轉(zhuǎn)換 | <stdlib.h> | 使用程序庫(kù)函數(shù) |
| <iso646.h> | 替代關(guān)系操作符宏 | <string.h> | 字符串操作 |
| <limits.h> | 實(shí)現(xiàn)常量 | <tgmath.h> | 通用類型數(shù)學(xué)宏 |
| <locale.h> | 局部類別 | <time.h> | 時(shí)間和日期 |
| <math.h> | 數(shù)學(xué)函數(shù) | <wchar.h> | 擴(kuò)展多字節(jié)和寬字符 |
| <setjmp.h> | 非局部goto | <wctype.h> | 寬字符分類和映射 |
?
2、POSIX標(biāo)準(zhǔn)
POSIX標(biāo)準(zhǔn)定義的頭文件
| <dirent.h> | 目錄項(xiàng) | <arpa/inet.h> | Internet定義 |
| <fcntl.h> | 文件控制 | <net/if.h> | 套接字本地接口 |
| <fnmatch.h> | 文件名匹配類型 | <netinet/in.h> | Internet地址表 |
| <glob.h> | 路徑名模式匹配類型 | <netinet/tcp.h> | 傳輸控制協(xié)議定義 |
| <grp.h> | 組文件 | <sys/mman.h> | 內(nèi)存管理聲明 |
| <netdb.h> | 網(wǎng)絡(luò)數(shù)據(jù)庫(kù)操作 | <sys/select.h> | 套接字接口 |
| <regex.h> | 正則表達(dá)式 | <sys/stat.h> | 文件狀態(tài) |
| <pwd.h> | 口令文件 | <sys/select.h> | select函數(shù) |
| <tar.h> | tar歸檔值 | <sys/times.h> | 進(jìn)程時(shí)間 |
| <termios.h> | 終端IO | <sys/types.h> | 基本系統(tǒng)數(shù)據(jù)類型 |
| <unistd.h> | 符號(hào)常量 | <sys/un.h> | UNIX套接字定義 |
| <utime.h> | 文件時(shí)間 | <sys/utsname.h> | 系統(tǒng)名 |
| <wordexp.h> | 自擴(kuò)展類型 | <sys/wait.h> | 進(jìn)程控制 |
?
POSIX標(biāo)準(zhǔn)定義的XSI擴(kuò)展定義
| <cpio.h> | Cpio歸檔值 | <syslog.h> | 系統(tǒng)出錯(cuò)日志記錄 |
| <dlfcn.h> | 動(dòng)態(tài)鏈接 | <ucontex.h> | 用戶上下文 |
| <fmtmsg.h> | 消息顯示結(jié)構(gòu) | <ulinit.h> | 用戶限制 |
| <ftw.h> | 文件樹漫游 | <utmpx.h> | 用戶賬戶數(shù)據(jù)庫(kù) |
| <iconv.h> | 代碼集轉(zhuǎn)換實(shí)用程序 | <sys/ipc.h> | IPC |
| <langinfo.h> | 語(yǔ)言信息常量 | <sys/msg.h> | 信息隊(duì)列 |
| <libgen.h> | 模式匹配函數(shù)定義 | <sys/resource.h> | 資源操作 |
| <monetary.h> | 貨幣類型 | <sys/sem.h> | 信號(hào)量 |
| <ndbm.h> | 數(shù)據(jù)庫(kù)操作 | <sys/shm.h> | 共享內(nèi)存 |
| <nl_types.h> | 信息類別 | <sys/statvfs.h> | 文件系統(tǒng)信息 |
| <poll.h> | 輪詢函數(shù) | <sys/time.h> | 時(shí)間類型 |
| <search.h> | 搜索表 | <sys/timeb.h> | 附加日期和時(shí)間定義 |
| <string.h> | 字符串操作 | <sys.uio.h> | 矢量IO操作 |
| <aio.h> | 異步IO | <senaphore.h> | 信號(hào)量 |
| <mqueue.h> | 消息隊(duì)列 | <sqawn.h> | 實(shí)用sqawn接口 |
| <pthread.h> | 線程 | <stropts.h> | XSI STREAMS接口 |
| <sched.h> | 執(zhí)行調(diào)度 | <trace.h> | 時(shí)間跟蹤 |
?
總結(jié)
- 上一篇: Linux下SVN服务器的搭建
- 下一篇: VS2015卸载不完全与安装问题