On Wed, 2005-01-26 at 12:33 +0100, Robert Millan wrote:
> On Tue, Jan 25, 2005 at 11:41:43PM -0500, Albert Cahalan wrote:

> > In general I'm moving away from PAGE_SIZE, but I
> > sure do wish to keep it in minimal.c. Note that
> > this file is not compiled in by default, and that
> > it already supports FreeBSD.
> 
> Well, currently it hardcoded PAGE_SIZE to 4096 when undefined.  I think
> it's better to get it from system headers as FreeBSD (and GNU/kFreeBSD)
> have it =)

Perhaps. Note that minimal.c is intended to work with
all sorts of wimpy C libraries: uClibc, klibc, newlib
Many of these libraries lack sysctl().

BTW, what C library are you using?

> > You should not remove stuff from the example
> > sysctl.conf. It's commented out anyway.
> 
> Are your comments wrt debian or upstream?  In the debian package, my patch
> makes a copy of sysctl.conf.  This way we only modify the
> "sysctl.conf.kfreebsd-gnu" version so that linux-gnu systems are not affected.
> (the linux-gnu defaults aren't much useful to kfreebsd's sysctl namespace).

Oh, OK. I wasn't sure if that was a separate file or not.

> > SIGPOLL is in the UNIX standard. SIGIO is not there.
> > This suggests that FreeBSD is less of a UNIX than
> > Linux is. :-) Please fix your kernel and/or libc.
> 
> The glibc manual says this about SIGPOLL:
> 
>      This is a System V signal name, more or less similar to `SIGIO'.
>      It is defined only for compatibility.
> 
> ... where the last phrase isn't really true -- this is a bug indeed.

Eeew. The BSDisms in glibc never fail to sicken me.
I've noticed that signal() is broken (it should map
to the Linux system call, which correctly follows the
7th Edition and SysV behavior of unsetting the signal
handler when it is called). Also, fputs() does not
have the correct SysV return value. I sure wish the
glibc hackers would realize that, if I wanted BSD, I
would not be running Linux!

> > SIGPWR is not Linux-specific. AIX, HP-UX, IRIX, and
> > Solaris all have it. Hopefully it will get into the next
> > revision of POSIX. Here is the Solaris 9 description:
> > 
> >      Name             Value   Default    Event
> >      SIGPWR           19      Ignore     Power Fail or Restart
> > 
> > The IRIX description is identical.
> 
> Looks like *BSD systems and GNU/k*BSD derivatives don't have it.  Is there
> any way to conditionalise its use in the code?

Oh, I suppose, but can't you just implement SIGPWR?
All the real UNIX systems have it.

There should be one signal left out. Find what it is.
Hopefully, the default action matches that of SIGPWR.
If so, then just call that SIGPWR.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to