glibc-bsd-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Glibc-bsd-hackers] Re: missing stuff in <sys/sysinfo.h>


From: Nathan Hawkins
Subject: [Glibc-bsd-hackers] Re: missing stuff in <sys/sysinfo.h>
Date: Mon, 14 Jul 2003 21:08:08 -0400

address@hidden writes:

=================== BUG #4308: LATEST MODIFICATIONS ==================
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=4308&group_id=4737
Changes by: Robert Millan <address@hidden>
Date: Mon 07/14/2003 at 19:37 (Europe/Andorra) ------------------ Additional Follow-up Comments ---------------------------- 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 ()?

On FreeBSD, virtually everything of that sort is in sysctl. I would suggest that the code depending on sysinfo needs some portability fixing.

=================== 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]