gettext.c revision b6233ca500dcfb36bc38a5dbd2c7e3584f2c2485
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "synonyms.h"
#include "mtlib.h"
#include <errno.h>
#include <ctype.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <libintl.h>
#include <thread.h>
#include <synch.h>
#include "libc.h"
#include "_loc_path.h"
#include "msgfmt.h"
#include "gettext.h"
if (!global_gt) { \
if (global_gt) \
else { \
atfork_lock_exit(); \
return ((def)); \
} \
}
const char *defaultbind = DEFAULT_BINDING;
const char default_domain[] = DEFAULT_DOMAIN;
char *
{
char *res;
return (res);
}
char *
{
char *res;
return (res);
}
/*
* textdomain() sets or queries the name of the current domain of
* the active LC_MESSAGES locale category.
*/
char *
_textdomain(const char *domain)
{
char *res;
return (NULL);
}
return (CURRENT_DOMAIN(global_gt));
}
/*
* gettext() is a pass-thru to _real_gettext_u() with a NULL pointer passed
* for domain and LC_MESSAGES passed for category.
*/
char *
{
char *res;
int errno_save = errno;
errno = errno_save;
return (res);
}
/*
* In dcgettext() call, domain is valid only for this call.
*/
char *
{
char *res;
int errno_save = errno;
errno = errno_save;
return (res);
}
char *
{
char *res;
int errno_save = errno;
errno = errno_save;
return (res);
}
char *
{
char *res;
int errno_save = errno;
errno = errno_save;
return (res);
}
char *
unsigned long int n)
{
char *res;
int errno_save = errno;
errno = errno_save;
return (res);
}
char *
unsigned long int n, int category)
{
char *res;
int errno_save = errno;
errno = errno_save;
return (res);
}