1/* 2 * Taken from the original FreeBSD user SCSI library. 3 */ 4/* Copyright (c) 1994 HD Associates 5 * (contact: dufault@hda.com) 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * From: scsi.c,v 1.8 1997/02/22 15:07:54 peter Exp $ |
35 * $FreeBSD: head/lib/libcam/scsi_cmdparse.c 64382 2000-08-08 06:24:17Z kbyanc $ |
36 */ 37#include <stdlib.h> 38#include <stdio.h> 39#include <ctype.h> 40#include <string.h> 41#include <sys/errno.h> 42#include <stdarg.h> 43#include <fcntl.h> --- 70 unchanged lines hidden (view full) --- 114# define ARG_PUT(ARG) \ 115 do \ 116 { \ 117 if (!suppress) \ 118 { \ 119 if (arg_put) \ 120 (*arg_put)(puthook, (letter == 't' ? \ 121 'b' : letter), \ |
122 (void *)((long)(ARG)), width, \ 123 field_name); \ |
124 else \ 125 *(va_arg(ap, int *)) = (ARG); \ 126 assigned++; \ 127 } \ 128 field_name[0] = 0; \ 129 suppress = 0; \ 130 } while (0) 131 --- 697 unchanged lines hidden --- |