linux c 编程 ------ 头文件及其作用

 

#include <stdio.h>

  printf

#include <sys/types.h>

  基本系统数据类型。系统的基本数据类型在32编译环境中保持为32位值,在64编译环境中为64位值

#include <sys/stat.h>

  

#include <fcntl.h>

  open

  此头文件内有 #include <bits/fcntl.h>,"bits/fcntl.h"定义了O_RDWR

#include <unistd.h>

  close

#include <sys/ioctl.h>

  ioctl

 

posted @ 2018-08-19 21:00  流水灯  阅读(221)  评论(0编辑  收藏  举报