dm_msg.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 <pthread.h>
#include <strings.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <signal.h>
#include <mms_sym.h>
#include <dm_impl.h>
#include <dm_msg.h>
#include <mms_trace.h>
#include <dm_proto.h>
#include <mms_strapp.h>
static mms_sym_t _dm_msg_cat[] = {
"$dm$: syntax error: $error$", 6500,
"$dm$: activate $type$ failed: $error$", 6501,
"$dm$: volume has no label. Enter volume id (VSN) or abort", 6503,
"$dm$: USCSICMD error: $error$", 6504,
"$dm$: no matching command: $error$", 6505,
"$dm$: internal error: $error$", 6506,
"$dm$: unknown capability: $error$", 6507,
"$dm$: attach error: $error$", 6508,
"$dm$: I/O error: $error$", 6509,
"$dm$: identify error: $error$", 6510,
"$dm$: detach error: $error$", 6511,
"$dm$: get request: $error$", 6512,
"$dm$: set blocksize error: $error$", 6513,
"$dm$: get blocksize error: $error$", 6514,
"$dm$: unsupported MTIOCTOP function: $error$", 6515,
"$dm$: open error: $error$", 6516,
"$dm$: load command error: $error$", 6517,
"$dm$: switch label from $from$ to $to$ and writeover data on $pcl$? "
"$dm$: $drive$ is still opened by pid $pid$", 6521,
"$dm$: MTSEEK error: $error$", 6522,
"$dm$: MTTELL error: $error$", 6523,
"$dm$: DM restarting because of attach error: $error$", 6524,
"$dm$: DM initialization error: $error$", 6525,
"$dm$: DM restarting: $error$", 6526,
"$dm$: mount command error: $error$", 6527,
"$dm$: DM exiting: $error$", 6528
};
void
dm_msg_create_hdr(void)
{
}
}
dm_msg_get_hdr(void)
{
tid = pthread_self();
return (mh);
}
}
return (NULL);
}
void
{
mh = dm_msg_get_hdr();
}
}
void
dm_msg_destroy(void)
{
mh = dm_msg_get_hdr();
}
}
char *
{
char *text;
int i;
/* Allocate a message struct */
return (NULL);
}
/* Replace single quotes (') with double quotes (") */
}
}
mh = dm_msg_get_hdr();
if (tail) {
} else {
}
}
char *
{
char *rc;
return (rc);
}
char *
{
char *rc;
return (rc);
}
/*
* Get the first message
*/
char *
dm_msg_text(void)
{
mh = dm_msg_get_hdr();
return (NULL);
}
}
int
dm_msg_class(void)
{
mh = dm_msg_get_hdr();
return (MMS_INTERNAL);
}
}
int
dm_msg_code(void)
{
mh = dm_msg_get_hdr();
return (MMS_DM_E_UNKNOWN);
}
}
char *
dm_msg_prepend(char *fmt, ...)
{
char *newtext;
mh = dm_msg_get_hdr();
}
}