AUPE


1. 不带缓冲I/O;
open,read,write,lseek,close

2. 出错处理函数:

#include <string.h>
char *strerror(int errnum);

#include <stdio.h>
void perror(const char *msg);


3. 有两种类型的限制是必需的
(1)编译时限制(例,短整型的最大值是什么?)
(2)运行时限制(例,文件名可以有多少个字符?)

4. 运行时限制可以通过调用下面三个函数中的一个而取得:
#include <unistd.h>
long sysconf(int name);
long pathconf(const char *pathname, int name);
long fpathconf(int filedes, int name);

5. 为路径名分配存储空间。
<sys/param.h>中的常量MAXPATHLEN值,这个经常是正确的。

猜你喜欢

转载自zzgthk.iteye.com/blog/1463837