hostres_scalars.c (202206) | hostres_scalars.c (228990) |
---|---|
1/*- 2 * Copyright (c) 2005-2006 The FreeBSD Project 3 * All rights reserved. 4 * 5 * Author: Victor Cruceru <soc-victor@freebsd.org> 6 * 7 * Redistribution of this software and documentation and use in source and 8 * binary forms, with or without modification, are permitted provided that --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2005-2006 The FreeBSD Project 3 * All rights reserved. 4 * 5 * Author: Victor Cruceru <soc-victor@freebsd.org> 6 * 7 * Redistribution of this software and documentation and use in source and 8 * binary forms, with or without modification, are permitted provided that --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c 202206 2010-01-13 18:17:53Z ed $ | 29 * $FreeBSD: head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c 228990 2011-12-30 10:58:14Z uqs $ |
30 */ 31 32/* 33 * Host Resources MIB scalars implementation for SNMPd. 34 */ 35 36#include <sys/types.h> 37#include <sys/sysctl.h> --- 127 unchanged lines hidden (view full) --- 165 string_len = make_date_time(s_date_time, &tloc_tm, 166 right_now.tv_usec / 100000); 167 168 return (string_get(value, s_date_time, string_len)); 169} 170 171/** 172 * Get kernel boot path. For FreeBSD it seems that no arguments are | 30 */ 31 32/* 33 * Host Resources MIB scalars implementation for SNMPd. 34 */ 35 36#include <sys/types.h> 37#include <sys/sysctl.h> --- 127 unchanged lines hidden (view full) --- 165 string_len = make_date_time(s_date_time, &tloc_tm, 166 right_now.tv_usec / 100000); 167 168 return (string_get(value, s_date_time, string_len)); 169} 170 171/** 172 * Get kernel boot path. For FreeBSD it seems that no arguments are |
173 * present. Returns NULL if an error occured. The returned data is a 174 * pointer to a global strorage. | 173 * present. Returns NULL if an error occurred. The returned data is a 174 * pointer to a global storage. |
175 */ 176int 177OS_getSystemInitialLoadParameters(u_char **params) 178{ 179 180 if (boot_line == NULL) { 181 int mib[2] = { CTL_KERN, KERN_BOOTFILE }; 182 char *buf; --- 310 unchanged lines hidden --- | 175 */ 176int 177OS_getSystemInitialLoadParameters(u_char **params) 178{ 179 180 if (boot_line == NULL) { 181 int mib[2] = { CTL_KERN, KERN_BOOTFILE }; 182 char *buf; --- 310 unchanged lines hidden --- |