Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: yxc02740@Bayou.UH.EDU
Subject: problem of protocol/talkd.h
Date: Tue, 2 Apr 1996 13:19:14 -0600 (CST)	[thread overview]
Message-ID: <199604021919.NAA09535@Bayou.UH.EDU> (raw)

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

             reply	other threads:[~1996-04-02 19:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-02 19:19 yxc02740 [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-04-03  2:50 problem of protocol/talkd.h David Mosberger-Tang
1996-04-03  6:22 David Mosberger-Tang
     [not found] <199604030250.TAA09777@koala.azstarnet.com>
1996-04-03  3:12 ` Erik Troan
1996-04-03  5:58 ` yxc02740
1996-04-03  6:32 ` yxc02740
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox