- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with using 'stat' on large files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 08:04 AM
тАО09-27-2001 08:04 AM
I am attempting to use the 'stat' command within a C program in order to retrieve date/time information on a file. The file is larger than 2 gigabytes in size (I'm running on HP-UX 10.20). When I dig deeper, the errno returned from my 'stat' command is 72:
"define EOVERFLOW: Value too large to be stored in data type"
Is there a version of 'stat' that will allow me to work with files larger than 2GB on my system? Or...is there another approach I may need to take?
Thanks!
Brent
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 08:18 AM
тАО09-27-2001 08:18 AM
Re: Problem with using 'stat' on large files
Have a look at the thread below.
http://us-support.external.hp.com/cki/bin/doc.pl/sid=ad79b88708c7b006d9/screen=ckiDisplayDocument?docId=400000000088267
http://us-support.external.hp.com/cki/bin/doc.pl/sid=ad79b88708c7b006d9/screen=ckiDisplayDocument?docId=200000047825625
Hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 09:01 AM
тАО09-27-2001 09:01 AM
Re: Problem with using 'stat' on large files
Thanks for the threads; however, they both seem to apply to a system running HPUX 11. I'm looking for a solution that will work on my 10.20 box...although I might be able to use the 64-bit application on my 32-bit system.
Any other ideas?
Brent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 09:25 AM
тАО09-27-2001 09:25 AM
SolutionHave a look at this thread. This is for UX 10.20
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=d2707c010fd2fba8ed/screen=ckiDisplayDocument?docId=200000023740214
Hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2001 11:30 AM
тАО09-27-2001 11:30 AM
Re: Problem with using 'stat' on large files
You need to use the stat64() system call which returns its data into a stat64 struct. This will fix your problem although this is a non-POSIX solution.