/*
* 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.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*/
#include "lint.h"
#include <nl_types.h>
#include <errno.h>
#include "nlspath_checks.h"
char *
{
struct _cat_hdr *p;
struct _cat_set_hdr *q;
struct _cat_msg_hdr *r;
void *catd;
/* invalid message catalog descriptor */
return ((char *)def_str);
}
/* special message catalog descriptor for C locale */
return ((char *)def_str);
/* invalid message catalog descriptor */
return ((char *)def_str);
}
lo = 0;
/*
* Two while loops will perform binary search.
* Outer loop searches the set and inner loop searches
* message id
*/
q = (struct _cat_set_hdr *)
+ _CAT_SET_HDR_SIZE * mid);
lo = q->__first_msg_hdr;
r = (struct _cat_msg_hdr *)
+ p->__msg_hdr_offset
+ _CAT_MSG_HDR_SIZE * mid);
+ p->__msg_text_offset
+ r->__msg_offset;
/* security */
return ((char *)
def_str);
} else {
errno = errno_save;
return (msg);
}
} else {
return (msg);
}
else
} /* while */
/* In case set number not found */
return ((char *)def_str);
else
} /* while */
/* In case msg_id not found. */
return ((char *)def_str);
}