/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 (c) 1996, by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* MKS interface to XPG message internationalization routines.
* Copyright 1989, 1992 by Mortice Kern Systems Inc. All rights reserved.
*
* Written by T. J. Thompson
*/
#ifdef M_RCSID
#ifndef lint
static char rcsID[] = "$Header: /rd/src/libc/i18n/rcs/m_text.c 1.18 1995/02/02 16:42:09 jeffhe Exp $";
#endif
#endif
#include <mks.h>
#include <locale.h>
#include <nl_types.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#ifdef M_VARIANTS
/*f
* Note: All the text strings in the messaging database must be stored in
* the codeset of the compiled program. xlate will convert from that codeset,
* into that of the user.
*/
static char *
xlate(char *s)
{
static char *lastmsg;
/* No memory? Return untranslated string */
return s;
/* Free previour string */
/* Do *not* translate the leading ! which indicates perror */
if (*new == '!')
new++;
/* And translate the string */
return lastmsg;
}
#else
#define xlate(s) (s)
#endif
STATIC void
{
}
void
char *str;
{
}
/*f
* Given a message id number, and a default string, call the XPG cat*
* functions to look up the message, or return just the default string.
*/
char *
int id;
const char *str;
char *cls; /* NOT USED */
{
char *nlocale;
char *cp;
/* Do not re-try a failed catopen */
}
#ifdef NL_CAT_LOCALE /* XPG4 - April 1992 - not final version! */
#else
#endif
}
}
}