From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199604021919.NAA09535@Bayou.UH.EDU> Date: Tue, 2 Apr 1996 13:19:14 -0600 (CST) From: yxc02740@Bayou.UH.EDU Subject: problem of protocol/talkd.h hi, when I tried to deal with problem of "talk" in linux/axp, I found the definition of talk message in /usr/include/protocol/talkd.h might be wrong: the control message of talk protocol is defined as following: (copy from /usr/include/protocol/talkd.h) typedef struct { u_char vers; /* protocol version */ u_char type; /* request type, see below */ u_char answer; /* not used */ u_char pad; u_long id_num; /* message id */ struct osockaddr addr; /* old (4.3) style */ struct osockaddr ctl_addr; /* old (4.3) style */ long pid; /* caller's process id */ #define NAME_SIZE 12 char l_name[NAME_SIZE];/* caller's name */ char r_name[NAME_SIZE];/* callee's name */ #define TTY_SIZE 16 char r_tty[TTY_SIZE];/* callee's tty name */ } CTL_MSG; The message id id_num and process id pid are defined as long. They are incompatible with 32-bit machine which has 32-bit long int. I has checked the same file in DUNIX, and found they are defined as u_int and int instead of long. I think this is a mistake and will cause problem to talk, is that true? yansong chen yxc02740@bayou.uh.edu