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

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

[Glibc-bsd-hackers] [bug #4308] [kfreebsd] missing stuff in <sys/sysinfo


From: nobody
Subject: [Glibc-bsd-hackers] [bug #4308] [kfreebsd] missing stuff in <sys/sysinfo.h>
Date: Mon, 14 Jul 2003 13:37:04 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030527 Galeon/1.3.5 Debian/1.3.5.20030615-1

=================== 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 ()?




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





reply via email to

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