id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4824,Boost file system function file_size() function is returning 0 for /proc virtual file system files.,pmanth2@…,Beman Dawes,"The tellg function of ifstream object is returning -1 when the position of file pointer is queried for /proc virtual file system files. Below is the example program to demonstrate the problem #include using namespace std; int main( int argc, char* argv[] ){ long begin,end; ifstream myfile (argv[1]); begin = myfile.tellg(); cout << "" begin "" << begin << endl; myfile.seekg (0, ios::end); end = myfile.tellg(); myfile.close(); cout << ""size is: "" << (end-begin) << "" bytes.\n""; return 0; } pmanth2@cyder:~$ ./fstream partA.cpp ( Normal text file ) begin 0 size is: 6692 bytes. pmanth2@cyder:~$ ./fstream /proc/cpuinfo ( virtual file system file ) begin 0 size is: -1 bytes. The tellg() should return the file pointer location for /proc file system files also. ",Bugs,closed,To Be Determined,filesystem,Boost 1.44.0,Problem,worksforme,,