The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > 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
how to find the file size in unix lmraochodisetti UNIX for Advanced & Expert Users 5 12-16-2008 08:51 AM
Maximum size of a file in unix nagalenoj UNIX for Dummies Questions & Answers 3 08-16-2007 10:56 AM
file size different in unix and windows the_learner UNIX for Dummies Questions & Answers 6 08-03-2007 10:51 AM
unix file size becomes zero ananthmm Filesystems, Disks and Memory 1 10-01-2006 12:12 PM
Hp Unix file size problem A Roberts UNIX for Dummies Questions & Answers 3 11-29-2001 08:50 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-18-2003
krishna7 krishna7 is offline
Registered User
  
 

Join Date: Jul 2003
Posts: 1
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
  #2 (permalink)  
Old 07-18-2003
s93366's Avatar
s93366 s93366 is offline
Registered User
  
 

Join Date: Apr 2002
Location: Sweden / Stockholm
Posts: 168
Are you mounting the filesystem with the largefiles option?
  #3 (permalink)  
Old 07-18-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,127
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 10:54 AM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0