Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@dot.cygnus.com>
Subject: Re: messy include files - pid_t undefined?
Date: Sat, 27 Sep 1997 21:02:19 -0700 (PDT)	[thread overview]
Message-ID: <199709280402.VAA25420@dot.cygnus.com> (raw)
In-Reply-To: <199709241305.PAA04758@blinky.bfr.co.il>

> It seems that pid_t is undefined by default on linux/axp, even though
> the man pages say it should be defined in unistd.h:

The man pages are wrong; pid_t shall be defined in <sys/types.h>.

As for Linux/Intel, you are probably using libc5, which isn't 
very good about following the namespace rules of the various
standards, and so you get the observed bleed-over. 

Current glibc is very close to conformant with ISO C 89,
ISO 9946-1996 (POSIX.1) and XPG4 (aka Single Unix Standard).

> Finally, if I add #include <sys/types.h> to the top of the code (as
> Donald Lewine's POSIX Programmer's Guide indicates is needed), the
> code compiles without problem *without* -D_LOOSE_KERNEL_NAMES, and
> causes *many* warnings when compiled *with* -D_LOOSE_KERNEL_NAMES.

Ignore _LOOSE_KERNEL_NAMES and __KERNEL_STRICT_NAMES.  There are
quite a few problems with libc headers and kernel headers in the
glibc 1.98 19961212 snapshot.

Glibc 2.0 (stable) and 2.1 (development) fix the bulk of these 
problems, hopefully all of them.  It is kind of a pain to upgrade,
but you may soon be able to try out a beta of Red Hat 4.8 that
will hopefully make this less traumatic.

r~

--
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-09-28  4:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199709241305.PAA04758@blinky.bfr.co.il>
1997-09-28  4:02 ` Richard Henderson [this message]
     [not found] <199709241509.LAA15324@headwall.maine.com>
1997-09-28  4:16 ` messy include files - pid_t undefined? Richard Henderson
1997-09-24 13:19 Ronny Ranerup
1997-09-24 13:31 ` Tom Browder
1997-09-24 15:09 ` Christopher F. Miller
1997-09-28  4:10 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1997-09-24 13:05 Harvey J. Stein
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