/*
* 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 1998-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "initialize.h"
#ifndef TEXT_DOMAIN
/*
* TEXT_DOMAIN should have been set by build environment.
*/
#endif /* TEXT_DOMAIN */
/*
*/
static void
set_signal_jmp(void)
{
}
static void
{
}
void
{
/*
* Initialize sort structure.
*/
S->m_default_species = ALPHA;
/*
* Simple localization issues.
*/
(void) textdomain(TEXT_DOMAIN);
#ifndef DEBUG_FORCE_WIDE
#else /* DEBUG_FORCE_WIDE */
S->m_c_locale = 0;
S->m_single_byte_locale = 0;
#endif /* DEBUG_FORCE_WIDE */
/*
* We use a constant seed so that our sorts on a given file are
* reproducible.
*/
srand(3459871433U);
if (atexit(atexit_handler) < 0)
/*
* Establish signal handlers and sufficient state for clean up.
*/
}
void
{
field_t *F;
/*
* Initialize locale-specific ops vectors.
*/
field_initialize(S);
if (S->m_single_byte_locale) {
S->m_coll_convert = field_convert;
F = S->m_fields_head;
while (F != NULL) {
switch (F->f_species) {
case ALPHA:
if (F->f_options &
F->f_convert = field_convert_alpha;
else
F->f_convert =
break;
case NUMERIC:
break;
case MONTH:
F->f_convert = field_convert_month;
break;
default:
break;
}
F = F->f_next;
}
} else {
F = S->m_fields_head;
while (F != NULL) {
switch (F->f_species) {
case ALPHA:
break;
case NUMERIC:
F->f_convert =
break;
case MONTH:
break;
default:
break;
}
F = F->f_next;
}
}
/*
* Validate and obtain sizes, inodes for input streams.
*/
/*
* Output guard.
*/
/*
* Ready stdin for usage as stream.
*/
if (S->m_input_from_stdin) {
if (S->m_single_byte_locale) {
str->s_element_size = sizeof (char);
} else {
}
}
}