bugGlibc support for *BSD's kernels - Bugs: bug #4308, [kfreebsd] missing stuff in...


bug #4308: [kfreebsd] missing stuff in <sys/sysinfo.h>

Submitted by:  Robert Millan <robertmh>
Submitted on:  Mon 14 Jul 2003 05:19:48 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 14 Jul 2003 05:37:03 PM UTC, comment #1:

uhm.. actualy it seems the sysinfo struct and associated function are linux-specific.

we should probably fix the code with a replacement for sysinfo. anyone knows how to get system load parameters portably? maybe sysconf ()?

Robert Millan <robertmh>
Mon 14 Jul 2003 05:19:48 PM UTC, original submission:

need to declare the sysinfo structure, and add a replacemtn for the missing stuff provided by <linux/kernel.h> on GNU/Linux's <sys/sysinfo.h>.

this includes SI_LOAD_SHIFT. a fixed <sys/sysinfo.h> is needed for Debian's autobuilder software (http://m68k.debian.org/buildd/getting.html)

hunks between kfreebsd and linux versions:

@@ -21,8 +21,15 @@

#include <features.h>

+/* Get sysinfo structure from kernel header. */
+#include <linux/kernel.h>

+/* Returns information on overall system statistics. */
+extern int sysinfo (struct sysinfo *__info) __THROW;
/* Return number of configured processors. */
extern int get_nprocs_conf (void) __THROW;

Robert Millan <robertmh>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.


Please enter the title of George Orwell's famous dystopian book (it's a date):



No Changes Have Been Made to This Item

Back to the top

Powered by Savane 3.1-cleanup1