Re: [dwm] dwm-5.3

From: James Turner <>
Date: Sat, 13 Dec 2008 12:45:39 -0500

On Sat, Dec 13, 2008 at 10:34:28AM -0700, Neale Pickett wrote:
> James Turner <> writes:
> > After taking some time and looking at the different signal headers on
> > OpenBSD only #include <sys/signal.h> is required, no need to #include
> > <signal.h> which contains additional functions.
> My man page (Linux) says to #include <signal.h>. I don't have any of my
> books nearby, nor do I have access to any of my older boxen (SunOS,
> HP/UX, etc.) but I suspect signal.h is the portable way to do it.
> I'm not sure what the motivation is for changing this. If the concern
> is size of the compiled binary, consider that including prototypes for
> additional functions shouldn't change anything about the output binary;
> it still links against libc6, and since #define is just a C preprocessor
> directive, unused #defines won't affect the binary either.
> Neale

man signal on OpenBSD also states to #include <signal.h>, it's just
signal.h includes sys/signal.h and for the function used by dwm
sys/signal.h is all that is required on OpenBSD. I don't run any other
systems so if signal.h is more portable then go with it.

James Turner
BSD Group Consulting
Received on Sat Dec 13 2008 - 17:45:39 UTC

This archive was generated by hypermail 2.2.0 : Sat Dec 13 2008 - 17:48:06 UTC