Bug 2750
| Summary: | ios::ate broken | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Red Hat Bugzilla <bugzilla> |
| Component: | libstdc++ | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-12-15 04:15:38 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Red Hat Bugzilla
1999-05-12 00:02:46 UTC
#include <iostream.h>
#include <fstream.h>
int main(int, char*[])
{
ifstream
inFile("PUT_YOUR_FILENAME_HERE",ios::in|ios::binary|ios::nocreate|ios::ate);
cout << "filesize is " << inFile.tellg()
<< ", but should be ";
inFile.seekg(0,ios::end);
cout << inFile.tellg() << endl;
exit(0);
}
assign to jakub |