* Fixed potential issue on FreeBSD when nprocs < 10 (thanks zotrix)
[monky] / src / netbsd.c
index 6e4fcbf..b0da99d 100644 (file)
@@ -17,7 +17,6 @@
 #include <sys/param.h>
 #include <sys/sysctl.h>
 #include <sys/types.h>
-#include <sys/time.h>
 #include <sys/user.h>
 #include <sys/socket.h>
 #include <sys/swap.h>
@@ -111,6 +110,11 @@ void update_uptime()
        }
 }
 
+int check_mount(char *s)
+{
+       /* stub */
+       return 0;
+}
 
 void update_meminfo()
 {
@@ -329,7 +333,7 @@ double get_acpi_temperature(int fd)
        return -1;
 }
 
-void get_battery_stuff(char *buf, unsigned int n, const char *bat)
+void get_battery_stuff(char *buf, unsigned int n, const char *bat, int item)
 {
 }
 
@@ -345,12 +349,29 @@ int open_acpi_temperature(const char *name)
        return -1;
 }
 
-char *get_acpi_ac_adapter(void)
+void get_acpi_ac_adapter( char * p_client_buffer, size_t client_buffer_size )
 {
-       return "N/A";
+       if ( !p_client_buffer || client_buffer_size <= 0 )
+               return;
+
+       /* not implemented */
+       memset(p_client_buffer,0,client_buffer_size);
+
+       return;
+}
+
+/*char *get_acpi_fan()*/
+void get_acpi_fan( char * p_client_buffer, size_t client_buffer_size )
+{
+       if ( !p_client_buffer || client_buffer_size <= 0 )
+               return;
+
+       /* not implemented */
+       memset(p_client_buffer,0,client_buffer_size);
+
+       return;
 }
 
-char *get_acpi_fan()
+void update_entropy (void)
 {
-       return "N/A";
 }