sys_nerr and *sys_errlist[] in 64-bit

Thread Tools Search this Thread
Operating Systems Solaris sys_nerr and *sys_errlist[] in 64-bit
# 1  
Old 11-15-2007
sys_nerr and *sys_errlist[] in 64-bit

The variables
sys_nerr and *sys_errlist[]
no more exist in 64-bit compiler option.I know one way is to use strerror() function.But I have very long interlinked code which i have to migrate from 32-bit to 64-bit .Can any one tell any other way of doing the same without modifying much od the code??is there any other way to include some more header files or else?
thanks a lot in advance!
# 2  
Old 11-15-2007
Write a 32 bit program that enumerates through the error codes and captures the strings, then generates a source file that contains those strings.
# 3  
Old 11-16-2007

Thanks for the reply&concern
Can you help me with a sample replacement line for
usage of sys_nerr in
int *pos = (int*)calloc(sys_nerr, sizeof(int));
and usage of sys_errlist in
ptr = (uchar*)sys_errlist[i];
I am not sure with what i think....
Thanks a lot in advance
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies

2. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

3. Programming

the sys_errlist.h problem

hi everyone !!!i hope that all the members are in good mood help me in my problem!! when i'm trying to compile with gcc i got this problem: Quote: gcc -c -DLINUX -DUNIX_OPSYS -DDEBUG -I/home/oracle/Open2/COMMON/inc -I/home/oracle/Open2/dbg -I/home/oracle/Open2/syu/inc... (1 Reply)
Discussion started by: eljuventino
1 Replies

4. UNIX for Advanced & Expert Users

migrating unix mp-ras 32 bit to linux suse 64 bit

Hi. I need to migrate the whole unix environment from a Unix mp-ras 32 bit to a Linux Suse 64 bit. 1) can i use cpio to copy the data? 2) can i just copy the users from unix to linux or do i have to create them by hand 3) are there any other concerns i should worry about? thanx (1 Reply)
Discussion started by: mrodrig
1 Replies

5. Red Hat

boot the 32 bit kernel on a 64 bit PPC Linux machine?

Hi all, I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> I've done... (0 Replies)
Discussion started by: philrau
0 Replies

6. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies
Login or Register to Ask a Question