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
IDA(4) BSD Kernel Interfaces Manual IDA(4)
NAME
ida -- Compaq Intelligent Drive Array Controllers
SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device scbus
device ida
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
ida_load="YES"
DESCRIPTION
The Compaq Intelligent Drive Array (IDA) technology is used to distribute data across an array of hard drives. It unites these hard drives
into one or more high-performance logical drives. The drive array is managed by an array controller.
These controllers have the ability to provide fault tolerance for the connected drives and optionally provide write cache for the logical
drives. It is also possible for an application to access the SCSI bus subsystem directly by using the pass-through interface.
HARDWARE
The following controllers are supported by the ida driver:
o Compaq SMART Array 221
o Compaq Integrated SMART Array Controller
o Compaq SMART Array 4200
o Compaq SMART Array 4250ES
o Compaq SMART 3200 Controller
o Compaq SMART 3100ES Controller
o Compaq SMART-2/DH Controller
o Compaq SMART-2/SL Controller
o Compaq SMART-2/P Controller
o Compaq SMART-2/E Controller
o Compaq SMART Controller
IMPLEMENTATION NOTES
Extreme caution should be exercised when using the pass-through interface. It is possible to interfere with normal system I/O and cause
hangs if pass-through is used to an active device. Pass-through should only be used to a device that is otherwise quiescent.
SEE ALSO
cam(4), pass(4), xpt(4), camcontrol(8)
AUTHORS
The ida driver was written by Jonathan Lemon <jlemon@FreeBSD.org> and Matthew N. Dodd <mdodd@FreeBSD.org>. This manual page was written by
Tom Rhodes <trhodes@FreeBSD.org>.
BSD
August 8, 2004 BSD