Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michael Alan Dorman <mdorman@calder.med.miami.edu>
Subject: Re: libc
Date: Tue, 22 Jul 1997 08:40:54 -0400	[thread overview]
Message-ID: <bfd86b4c7684ee5841f1f352de15eeb5.axp-list@archive.invalid> (raw)
In-Reply-To: <199707220345.XAA00315@adder.cs.Virginia.EDU>

On Jul 21, Greg Lindahl wrote
> Other OSes, not to mention Redhat 4.1/Intel, have int *. There is no
> easy way to write compatible code for both cases.

Sure there is.

#ifdef __GLIBC__
# define sock_size_t size_t
#else /* __GLIBC__ */
# define sock_size_t int
#endif /* __GLIBC__ */

sock_size_t len;

accept ( ..., &len );

This is exactly what the perl people have done---you should look at
the code in 5.004, as it also knows about the proper defines for the
new spec that specifies this.

Mike.

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

  reply	other threads:[~1997-07-22 12:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-22  3:45 libc Greg Lindahl
1997-07-22 12:40 ` Michael Alan Dorman [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-07-22 13:14 libc Ryan Benigno
     [not found] <33D4B218.7137@home.com>
1997-07-22  3:41 ` libc Michal Jaegermann
1997-07-22  5:52   ` libc Richard Henderson
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