Else make it use SIZE bytes of BUF for buffering. */
/* Make STREAM line-buffered. 设置成行缓存方式 */
/* Write a character to STREAM.
向流中写入字符
These functions are possible cancellation points and therefore not
marked with __THROW.
These functions is a possible cancellation point and therefore not
marked with __THROW. */
extern int fputc (int __c, FILE *__stream);
/* Get a newline-terminated string of finite length from STREAM.
读取一行,s为开始指针,n为缓存长度
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
__wur;
/* 向流中写入字符串 */
extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
/* Push a character back onto the input buffer of STREAM.
向流中回退一个字符
This function is a possible cancellation points and therefore not
marked with __THROW. */
extern int ungetc (int __c, FILE *__stream);
/***************************二进制读取写入******************************************/
/* Read chunks of generic data from STREAM.
This function is a possible cancellation points and therefore not
marked with __THROW. */
extern size_t fread (void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __stream) __wur;
/* Write chunks of generic data to STREAM.
ptr读取缓存区开始位置,size:单位的长度,n读取数量
This function is a possible cancellation points and therefore not
marked with __THROW. */
extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __s);
/********************************流指针操作**************************************/
/* Seek to a certain position on STREAM.
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern int fseek (FILE *__stream, long int __off, int __whence);
/* Return the current position of STREAM.
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern long int ftell (FILE *__stream) __wur;
/* Rewind to the beginning of STREAM.
将流指针回到文件开始
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern void rewind (FILE *__stream);
/*****************************另外和文件锁相关的函数************************************/