error: implicit declaration of function ‘fileno’ 编译的时候,使用选项 -std=gnu99 ,而不要使用 -std=c99 或者其他的。 编译参数, 会影响编译!!!