[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Re: Bug in getloadavg
From: |
Paul Eggert |
Subject: |
Re: [Bug-gnulib] Re: Bug in getloadavg |
Date: |
Thu, 01 Apr 2004 07:33:18 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> Emacs has a different mechanism for this. cloexec would not work
> anyway.
>
> I think getloadavg.c should simply call some functions to do this, and
> it should use an interface that will work without explicit
> declarations.
But gnulib has to port to C99, and C99 requires that every function be
explicitly declared, even functions that return 'int'.
Perhaps the simplest solution is to use "#ifdef emacs"? This will
also handle the free vs. xfree discrepancy. If you like, I can code
up a solution along those lines. (It would save me a bit of time if
you told me Emacs's mechanism for close-on-exec.)
- Re: [Bug-gnulib] Re: Bug in getloadavg,
Paul Eggert <=