The fileno macro inquires about the status of a stream. The fileno
macro returns the integer file descriptor associated with the stream
pointed to by the Stream parameter. Otherwise a value of -1 is
macro returns the integer file descriptor associated with the stream
pointed to by the Stream parameter. Otherwise a value of -1 is
returned.
函数原型:
#include <stdio.h>
int feof ( Stream)
FILE *Stream;
int ferror (Stream)
FILE *Stream;
void clearerr (Stream)
FILE *Stream;
int fileno (Stream)
FILE *Stream;
fdopen 可以将文件描述符转化成file*流
http://hi.baidu.com/linyanhao/item/9fdbe842086d9611886d106b