这就是应用在普通文件上的主要的文件系统函数的底层实现
以php_stdiop_flush(对应php用户态的fflush)为例:
static int php_stdiop_flush(php_stream *stream TSRMLS_DC){php_stdio_stream_data *data = (php_stdio_stream_data*)stream->abstract;assert(data != NULL);/** stdio buffers data in user land. By calling fflush(3), this* data is send to the kernel using write(2). fsync'ing is* something completely different.*/if (data->file) {return fflush(data->file);}return 0;}