Sponsored Content
Full Discussion: cc and ld is not same ?
Top Forums Programming cc and ld is not same ? Post 16774 by bdyjm on Wednesday 6th of March 2002 08:23:38 PM
Old 03-06-2002
Error my program occur core when running.

Hello.
Thank you very much for your answer in time.

my program is right running in SCO unix , but occur core running in HP-UNIX of HP 9000 machine . I bethink of your last time reply my question about #pragma pack() in include header file, say HP cpu not support data order when processing data,but in my program , have many similar the follow sentences:

iSerielNo = *(int *)(szReceiveBuf + 2);
or
*(int *)(szReceiveBuf + 2) = iSerielNo ;

I suppose HP 9000 machine not support this forcing evaluating sentence , occur core in running ?

others , as:

fread( (ST_SYS *) &stSys , sizeof(ST_SYS) , 1, fp) ;

ST_SYS is a structure variable , may I use the using ?
 
rwho(1) 						      General Commands Manual							   rwho(1)

NAME
rwho - show who is logged in on local machines SYNOPSIS
DESCRIPTION
produces output similar to the output of the HP-UX command for all machines on the local network that are running the daemon (see who(1) and rwhod(1M)). If has not received a report from a machine for 11 minutes, assumes the machine is down and does not report users last known to be logged into that machine. output line has fields for the name of the user, the name of the machine, the user's terminal line, the time the user logged in, and the amount of time the user has been idle. Idle time is shown as: If a user has not typed to the system for a minute or more, reports this as idle time. If a user has not typed to the system for an hour or more, the user is omitted from output unless the flag is given. An example output line from would look similar to: This output line could be interpreted as is logged into and his terminal line is has been logged on since September 12 at 13:28 (1:28 p.m.). has not typed anything into for 11 minutes. WARNINGS
output becomes unwieldy when the number of users for each machine on the local network running becomes large. One line of output occurs for each user on each machine on the local network that is running AUTHOR
was developed by the University of California, Berkeley. FILES
Information about other machines. SEE ALSO
ruptime(1), rusers(1), rwhod(1M). rwho(1)
All times are GMT -4. The time now is 03:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy