Bug#176910: libc6-dev: "kill" prototype not included from signal.h in -ansi mode
On Fri, 2003-01-17 at 19:29, Anthony DeRobertis wrote:
> On Thursday, January 16, 2003, at 09:06 AM, GOTO Masanori wrote:
> >
> > Of cource, ISO C does not have kill(2), it's BSD/POSIX/XPG feature.
>
> Of course, it doesn't have a <signal.h> or a <sys/types.h> either. So
> the pure ISO C behavior would be to #error if those files (or any
> others not part of ISO C) were included.
>
> I'm not sure why kill should be singled out.
ISO C does have <signal.h>, in fact. Conforming programs can send
signals to themselves via raise(), and catch them with signal().
kill(), which operates on a PID and hence assumes a POSIX-like
worldview, is not part of the ISO standard.
p.
Reply to: