The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Maximum size of a file in unix nagalenoj UNIX for Dummies Questions & Answers 3 08-16-2007 06:56 AM
file size different in unix and windows the_learner UNIX for Dummies Questions & Answers 6 08-03-2007 06:51 AM
unix file size becomes zero ananthmm Filesystems, Disks and Memory 1 10-01-2006 08:12 AM
how to find the file size in unix lmraochodisetti UNIX for Advanced & Expert Users 4 07-24-2006 04:20 AM
Hp Unix file size problem A Roberts UNIX for Dummies Questions & Answers 3 11-29-2001 04:50 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2003
Registered User
 

Join Date: Jul 2003
Posts: 1
Stumble this Post!
Unix file size - HP-UX

Hi All,

Currently we are using HP-UX machine.. We are facing problems with respect to file size. The file size does not seem to be exceeding 2 GB.

Could you please let me know the following

1. Is there any difference between a 32 bit application and 64 bit application with respect to file size. If so what is the maximum file size allowed for a 32 bit application and what is the maximum size allowed for a 64 bit application?

2. What other factors affect the file size limit on a HP-UX machine?

3. Can the file size limit be changed to suit the needs? If so how?

4. Currently we are using a 32 bit application compiled using a 32 bit compiler. Can the compile environment be changed from 32-bit to a 64-bit compile environment to compile a 32 bit application. If so what are the parameters that needs to be changed for this?

Thanks in advance,
Krishna
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-18-2003
s93366's Avatar
Registered User
 

Join Date: Apr 2002
Location: sweden
Posts: 152
Stumble this Post!
Are you mounting the filesystem with the largefiles option?
Reply With Quote
  #3 (permalink)  
Old 07-18-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,444
Stumble this Post!
Actually, a command like "fsadm /dev/vg00/rlvol1" should be used to see if largefile support is enabled. Note that the mount option will only "attempt" to allow large files.

setrlimit() and ulimit() can be used to limit the size of file that a program can create.

HP-UX supports two ways for a 32 bit program to use large files. If you define _FILE_OFFSET_BITS to be 64 at compile time, the regular system calls now handle large files. If you define _LARGEFILE64_SOURCE a bunch of routines like open64() become available. I have never used either. I just compile in 64 bit mode which is done by using +DD64 on the cc comand line. But there is a "long long" datatype which is a 64 bit integer in either 32 bit or 64 bit mode.

Also see this.

Last edited by Perderabo; 07-31-2005 at 06:54 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0