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

 
 

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

Submitter:  Robert Millan <robertmh>
Submitted:  Mon 14 Jul 2003 05:19:48 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
+
 __BEGIN_DECLS
 
+/* 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code