stat64 support on 32bit platform


 
Thread Tools Search this Thread
Top Forums Programming stat64 support on 32bit platform
# 1  
Old 11-18-2009
stat64 support on 32bit platform

I have to get the size and ownership of a file on a 32 bit solaris 10.stat function fails to provide the information as the file size is greater than 2GB(26GB).Is stat64 supported on 32 bit platforms.Can i use the function on all the platforms
# 2  
Old 11-18-2009
Dont know about Solaris but try compiling with _FILE_OFFSET_BITS set to 64...its non-POSIX and may not work on all systems but it works on HPUX/AIX.
# 3  
Old 11-18-2009
There are 64 bit functions carefully camoflaged under the lf64 banner. lf64 = large file 64 bit. It was a workaround, I gues, but it is still out there.

try man lf64 on your system - there is a struct stat64, for example. Also check out lfcompile, lfcompile64.
# 4  
Old 11-23-2009
just put a `getconf...' amidst your `cc' flags...

- assuming the solaris version of your compiler is ok,
all you have to do is to add a `getconf' to your `cc' flags,
as in the example below:
Code:
cc `getconf LFS_CFLAGS` prog.c -o prog

good luck, and success !
alexandre botao
<< botao {dot} org >>
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 32bit installation

Hi sorry for the novice question. i need to install Solaris 10 32bit version. i downloaded the ISO from oracle website. as i understand the same ISO is for the 64bit as well as the 32bit install??? i ran the install and didn't have the option to choose which architecture to choose? Thanks... (9 Replies)
Discussion started by: guy3145
9 Replies

2. UNIX for Advanced & Expert Users

32bit GTK2 application

Hi all, So, I have a 32 bit gtk2.22 application that I run flawlessly in Fedora 14. When I compile it on the 32bit machine run it on Fedora 20 64bit machine I get: (myprogram:6736): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita", (myprogram.:6736): Gtk-WARNING **:... (15 Replies)
Discussion started by: fedora18
15 Replies

3. Solaris

Compiler - 32bit or 64bit?

Hi Gurus, I need to check whether the compiler installed in my system supports 64bit compilation. Server - Sun fire v490 OS - Solaris 5.9 Processor - Sparcv9 (64bit) Install Directory - /opt/SUNWSpro Compiler Model - Sun Forte C Compiler. My development team is claiming that there... (20 Replies)
Discussion started by: Hari_Ganesh
20 Replies

4. Solaris

32bit or 64 bit

Not really a Unix question as such :o, but what advantages or disadvantages are there between using 32bit or 64bit applications on a T5220 running Solaris 10? What about mixing them e.g. 64 bit app using 32 bit libraries or vice versa? (1 Reply)
Discussion started by: JerryHone
1 Replies

5. Programming

32bit to 64bit conversion.

Is there an 'easy' way to convert 32Bit code to 64Bit code. I have this benchmark i need to run on different machines and it would be nice if i could run it on the 64 bit machines ass wel. The output when compiling(1) and running(2) are the following: (1) linux:/home/user1/subbench/heapsort #... (7 Replies)
Discussion started by: demuynckr
7 Replies

6. Linux

Linux 32bit or 64bit

Hi, I want to know what is command to know which will tell wheather linux is 32 or 64 bit (5 Replies)
Discussion started by: manoj.solaris
5 Replies

7. UNIX for Dummies Questions & Answers

64bit- or 32bit- processor

when using the command : cat /proc/cpuinfo I get some basic info back on the cpu.. but it doesn't tell me if I am using a 64 or 32 bit processor .. a) is this the right command to find this ? b) if it is not what is ? and how do I get that information.. thanx moxxx68 (2 Replies)
Discussion started by: moxxx68
2 Replies

8. UNIX for Dummies Questions & Answers

32bit vs 64bit

Whats the difference between 32bit and 64bit OS's or applications. I understand it a little but its just not clicking the way the teacher explained to me thanks, any info would be much appreciated (1 Reply)
Discussion started by: eloquent99
1 Replies
Login or Register to Ask a Question