dm_util.c revision cee0fb94c0d4227de0a00efc162fb2739844b641
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <strings.h>
#include <stdio.h>
#include <mms_trace.h>
void
{
int i;
int shift;
}
}
void
{
int i;
int shift;
}
}
void
{
int i;
/* LINTED: to satisfy lint */
int shift;
}
}
void
{
int i;
/* LINTED: to satisfy lint */
int shift;
*val = 0;
}
}
void
{
int i;
/* LINTED: to satisfy lint */
int shift;
}
}
void
{
int i;
/* LINTED: to satisfy lint */
int shift;
*val = 0;
}
}
void
dm_trim_tail(char *str)
{
int len;
int i;
for (i = len - 1; i >= 0; i--) {
if (str[i] == ' ') {
str[i] = '\0';
} else {
return;
}
}
}
void
dm_to_upper(char *vp)
{
int i;
for (i = 0; vp[i] != '\0'; i++) {
}
}
char *
{
int ioff;
int ooff;
int i;
/* Need 2 output chars for a sense byte */
break;
}
ioff++;
ooff += 2;
}
/* Need 3 output chars for a blank and a sense byte */
break;
}
ooff++;
}
return (obuf);
}