=================== BUG #4308: FULL BUG SNAPSHOT ===================
Submitted by: robertmh Project: Glibc support for *BSD's kernels
Submitted on: Mon 07/14/2003 at 19:19
Category: None Severity: 5 - Major
Bug Group: None Resolution: None
Assigned to: None Status: Open
Summary: [kfreebsd] missing stuff in <sys/sysinfo.h>
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;
Follow-up Comments
*******************
-------------------------------------------------------
Date: Mon 07/14/2003 at 19:37 By: robertmh
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 ()?
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=4308&group_id=4737
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Glibc-bsd-hackers mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/glibc-bsd-hackers