NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Fwd: Re: kern/50230: conflict in type declaration of 'idtype_t' from sys/types.h with POSIX sys/wait.h



"heiko.eissfeldt%hexco.de@localhost" <heiko.eissfeldt%hexco.de@localhost> wrote:

> > | From: David Holland <dholland-bugs%netbsd.org@localhost>
> > | To: gnats-bugs%NetBSD.org@localhost
> > | Cc:
> > | Subject: Re: kern/50230: conflict in type declaration of 'idtype_t' from
> > | sys/types.h with POSIX sys/wait.h
> > | Date: Sun, 11 Oct 2015 00:14:09 +0000
> > |
> > | On Fri, Sep 11, 2015 at 08:00:01AM +0000, Heiko%hexco.de@localhost wrote:
> > | > while the declaration according to POSIX is in sys/wait.h and has a
> > | > different meaning.
> > |
> > | Apparently POSIX or somebody went and invented a "waitid" call that
> > | uses this type. We don't have any such call.
> > |
> > | Is this something we need to have, or is it a posix_mistake?
> >
> > We need to have it... I started on it, but got interrupted.

Please note that the waitid() call was added in 1989 for SVr4, so it is *really* 
old.

Be careful not to use the current POSIX text to implement it as the POSIX text 
is wrong.

One of the main intends is to avoid to mask the exit() code to 8 bits only.
The other is to return timing and other information at the same time. This 
interfact is also used for SIGCHLD handlers, so a SIGCHLD handler already knows 
the exit code and exit reason without a need to call waitid().

Jörg

-- 
 EMail:joerg%schily.net@localhost                    (home) Jörg Schilling D-13353 Berlin
       joerg.schilling%fokus.fraunhofer.de@localhost (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/'



Home | Main Index | Thread Index | Old Index