05-14-2002
Hi perderabo
The previuos "c" code was for just testing the machine behaviour.Actually the problem is as follows:
I am getting data on X.25 line which is read into a structure of following type-
struct track_number_t{
unsigned int sb:3;
unsigned int sttn:1;
unsigned int STR:12;
};
I am wondering what changes I will have to do so that the present Compaq running code should work on HPUX also. The above format refers to one type in ASTERIX 030 format used in eurocontrol standards.
I had written another code in which I have reversed the structure members delacration order on HPUX.After doing reverse I get the same output as on Compaq.Original code is in Ada and I am trying to simulate things in C for finding a solution.
#include <iostream>
main(){
struct track_number_t{
unsigned int sb:3;
unsigned int sttn:1;
unsigned int STR:12;
};
struct rev_track_number_t{
unsigned int STR:12;
unsigned int sttn:1;
unsigned int sb:3;
};
track_number_t track_number,*track_ptr;
//char *str="A8";
char *str="AA";
track_ptr = (track_number_t *)str;
std::cout << "Value of sb is "<< track_ptr->sb;
std::cout << std::endl << "value of sttn is "<< track_ptr->sttn;
std::cout<< std::endl<< "Value of STR is "<< track_ptr->STR;
//Steps on reversed struct
rev_track_number_t rev_track_number,*rev_track_ptr;
rev_track_ptr = (rev_track_number_t *)str;
std::cout<<std::endl<<"Printing reversed struct memebrs";
std::cout << "Value of sb is "<< rev_track_ptr->sb;
std::cout << std::endl << "value of sttn is "<< rev_track_ptr->sttn;
std::cout<< std::endl<< "Value of STR is "<< rev_track_ptr->STR;
}
Hope to hear from you soon.
Last edited by Shobhit; 05-14-2002 at 02:52 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
HI all
I think i can get a perfect solution for our problem here.
we r using oracle 7i on hpux 11.0 as a billing server .The thing is it used to get hanged sometime and we need to unmount and need to mount the oracle DB then we need to start the oracle process.The process running in that... (6 Replies)
Discussion started by: edwin_francis
6 Replies
2. UNIX for Dummies Questions & Answers
Experts!!!
I have an urgent solution for a problem with the HP Unix workstation.
I am not able to check the file system for a particular volume.
when i tried with
$> fsck -o full /dev/vg00/rlvol9
Returns..
full file system check required... exiting...
$>
How do i recover the... (4 Replies)
Discussion started by: anent
4 Replies
3. HP-UX
Hi Everyone,
I have an HP3000 server on which I am unable to login to the server.I connected the server to my laptop thru a serial cable and I am unable to login thru any user ..when i enter my login id ..the system gets me back to the login prompt without asking me for a password.
Cud u pls... (1 Reply)
Discussion started by: hunk
1 Replies
4. Filesystems, Disks and Memory
Hello,
I am having a Problem with an Arena EX3 Raid on an HPUX 10.20 Workstation.
Everything is working fine until I shutdown the Server and power off the Raid. Then I get a filesystem corruption on the Raid. This happens everytime.
The Raid is configured as Raid Level 1.
I would really... (1 Reply)
Discussion started by: nleuenbe
1 Replies
5. HP-UX
Hi all!
I am running an NIS Server with Linux. Now I want to configure a HPUX-Server to use this NIS Server. I have don all the configuration stuff exactly as described in the documentation.
When I run YPWHICH, it shows me the right server and domain. If I run YPCAT passwd, I'll get the... (4 Replies)
Discussion started by: pepade
4 Replies
6. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
7. HP-UX
Hi Gurus,
I'm using HP-UX B.11.23 system. I've been having some problem in mounting a filesystem that has been defined in /etc/fstab as shown below.
fstab entries:
/dev/vgsap/ora10264 /oracle/PRD/102_64 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgsap/orasapreog... (2 Replies)
Discussion started by: superHonda123
2 Replies
8. HP-UX
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
9. HP-UX
i am trying to build on hpux-itanium 64 bit platform. my application needs to link to 64 bit version of the library libCsup.so
This library is present in /usr/lib/hpux64/libCsup.so
I am specifying the location of this library as linker flags
LDFLAGS := -Wl,-N -Wl,+s... (0 Replies)
Discussion started by: skyineyes
0 Replies
10. HP-UX
Hi,
I am getting this error during kerberos server setup in HPUX 11.31 :
kdb_create: unknown LDAP backend error while adding master entry to the database
ps -ef|grep ldap
root 3905 1 0 13:11:36 ? 0:00 /opt/ldapux/bin/ldapclientd
Unable to find out the meaning of this... (1 Reply)
Discussion started by: Amit Kulkarni
1 Replies
LEARN ABOUT FREEBSD
dwarf_get_cfa_name
DWARF_GET_AT_NAME(3) BSD Library Functions Manual DWARF_GET_AT_NAME(3)
NAME
dwarf_get_ACCESS_name, dwarf_get_AT_name, dwarf_get_ATE_name, dwarf_get_CC_name, dwarf_get_CFA_name, dwarf_get_CHILDREN_name,
dwarf_get_DS_name, dwarf_get_DSC_name, dwarf_get_EH_name, dwarf_get_END_name, dwarf_get_FORM_name, dwarf_get_ID_name, dwarf_get_INL_name,
dwarf_get_LANG_name, dwarf_get_LNE_name, dwarf_get_LNS_name, dwarf_get_MACINFO_name, dwarf_get_OP_name, dwarf_get_ORD_name,
dwarf_get_TAG_name, dwarf_get_VIRTUALITY_name, dwarf_get_VIS_name -- retrieve the symbolic names of DWARF constants
LIBRARY
DWARF Access Library (libdwarf, -ldwarf)
SYNOPSIS
#include <libdwarf.h>
int
dwarf_get_ACCESS_name(unsigned val, char **str);
int
dwarf_get_AT_name(unsigned val, char **str);
int
dwarf_get_ATE_name(unsigned val, char **str);
int
dwarf_get_CC_name(unsigned val, char **str);
int
dwarf_get_CFA_name(unsigned val, char **str);
int
dwarf_get_CHILDREN_name(unsigned val, char **str);
int
dwarf_get_DS_name(unsigned val, char **str);
int
dwarf_get_DSC_name(unsigned val, char **str);
int
dwarf_get_EH_name(unsigned val, char **str);
int
dwarf_get_END_name(unsigned val, char **str);
int
dwarf_get_FORM_name(unsigned val, char **str);
int
dwarf_get_ID_name(unsigned val, char **str);
int
dwarf_get_INL_name(unsigned val, char **str);
int
dwarf_get_LANG_name(unsigned val, char **str);
int
dwarf_get_LNE_name(unsigned val, char **str);
int
dwarf_get_LNS_name(unsigned val, char **str);
int
dwarf_get_MACINFO_name(unsigned val, char **str);
int
dwarf_get_OP_name(unsigned val, char **str);
int
dwarf_get_ORD_name(unsigned val, char **str);
int
dwarf_get_TAG_name(unsigned val, char **str);
int
dwarf_get_VIRTUALITY_name(unsigned val, char **str);
int
dwarf_get_VIS_name(unsigned val, char **str);
DESCRIPTION
These functions return the symbolic name of a numeric DWARF constant.
Argument val specifies the numeric value whose symbolic name is desired.
Argument str should point to a location which will hold the returned NUL-terminated string containing the symbolic name of the specified
value.
The list of functions and the DWARF constants that they accept are:
dwarf_get_ACCESS_name() DW_ACCESS_* constants.
dwarf_get_AT_name() DW_AT_* constants.
dwarf_get_ATE_name() DW_ATE_* constants.
dwarf_get_CC_name() DW_CC_* constants.
dwarf_get_CFA_name() DW_CFA_* constants.
dwarf_get_CHILDREN_name() DW_CHILDREN_* constants.
dwarf_get_DS_name() DW_DS_* constants.
dwarf_get_DSC_name() DW_DSC_* constants.
dwarf_get_EH_name() DW_EH_PE_* constants.
dwarf_get_END_name() DW_END_* constants.
dwarf_get_FORM_name() DW_FORM_* constants.
dwarf_get_ID_name() DW_ID_* constants.
dwarf_get_INL_name() DW_INL_* constants.
dwarf_get_LANG_name() DW_LANG_* constants.
dwarf_get_LNE_name() DW_LNE_* constants.
dwarf_get_LNS_name() DW_LNS_* constants.
dwarf_get_MACINFO_name() DW_MACINFO_* constants.
dwarf_get_OP_name() DW_OP_* constants.
dwarf_get_ORD_name() DW_ORD_* constants.
dwarf_get_TAG_name() DW_TAG_* constants.
dwarf_get_VIRTUALITY_name() DW_VIRTUALITY_* constants.
dwarf_get_VIS_name() DW_VIS_* constants.
RETURN VALUES
These functions return DW_DLV_OK on success. If the DWARF constant denoted by argument val is not recognized, these function return
DW_DLV_NO_ENTRY.
SEE ALSO
dwarf(3)
BSD
April 22, 2011 BSD