mfi_evt.c (237259) | mfi_evt.c (237260) |
---|---|
1/*- 2 * Copyright (c) 2008, 2009 Yahoo!, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 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) 2008, 2009 Yahoo!, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 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/mfiutil/mfi_evt.c 237259 2012-06-19 06:18:37Z eadler $ | 29 * $FreeBSD: head/usr.sbin/mfiutil/mfi_evt.c 237260 2012-06-19 06:18:42Z eadler $ |
30 */ 31 32#include <sys/types.h> 33#include <sys/errno.h> 34#include <err.h> 35#include <fcntl.h> 36#include <stdio.h> 37#include <stdlib.h> --- 21 unchanged lines hidden (view full) --- 59 mbox[1] = filter.word; 60 size = sizeof(struct mfi_evt_list) + sizeof(struct mfi_evt_detail) * 61 (num_events - 1); 62 return (mfi_dcmd_command(fd, MFI_DCMD_CTRL_EVENT_GET, list, size, 63 (uint8_t *)&mbox, sizeof(mbox), statusp)); 64} 65 66static int | 30 */ 31 32#include <sys/types.h> 33#include <sys/errno.h> 34#include <err.h> 35#include <fcntl.h> 36#include <stdio.h> 37#include <stdlib.h> --- 21 unchanged lines hidden (view full) --- 59 mbox[1] = filter.word; 60 size = sizeof(struct mfi_evt_list) + sizeof(struct mfi_evt_detail) * 61 (num_events - 1); 62 return (mfi_dcmd_command(fd, MFI_DCMD_CTRL_EVENT_GET, list, size, 63 (uint8_t *)&mbox, sizeof(mbox), statusp)); 64} 65 66static int |
67show_logstate(int ac, char **av) | 67show_logstate(int ac, char **av __unused) |
68{ 69 struct mfi_evt_log_state info; 70 int error, fd; 71 72 if (ac != 1) { 73 warnx("show logstate: extra arguments"); 74 return (EINVAL); 75 } --- 620 unchanged lines hidden --- | 68{ 69 struct mfi_evt_log_state info; 70 int error, fd; 71 72 if (ac != 1) { 73 warnx("show logstate: extra arguments"); 74 return (EINVAL); 75 } --- 620 unchanged lines hidden --- |