OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-newlib/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [intl/] [catgetsinfo.h] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 jlechner
/* Copyright (C) 1996, 1997, 2001 Free Software Foundation, Inc.
2
   This file is part of the GNU C Library.
3
   Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>.
4
 
5
   The GNU C Library is free software; you can redistribute it and/or
6
   modify it under the terms of the GNU Lesser General Public
7
   License as published by the Free Software Foundation; either
8
   version 2.1 of the License, or (at your option) any later version.
9
 
10
   The GNU C Library is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
   Lesser General Public License for more details.
14
 
15
   You should have received a copy of the GNU Lesser General Public
16
   License along with the GNU C Library; if not, write to the Free
17
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18
   02111-1307 USA.  */
19
 
20
#include <sys/types.h>
21
 
22
 
23
struct catalog_obj
24
{
25
  u_int32_t magic;
26
  u_int32_t plane_size;
27
  u_int32_t plane_depth;
28
  /* This is in fact two arrays in one: always a pair of name and
29
     pointer into the data area.  */
30
  u_int32_t name_ptr[0];
31
};
32
 
33
 
34
/* This structure will be filled after loading the catalog.  */
35
typedef struct catalog_info
36
{
37
  enum { mmapped, malloced } status;
38
 
39
  size_t plane_size;
40
  size_t plane_depth;
41
  u_int32_t *name_ptr;
42
  const char *strings;
43
 
44
  struct catalog_obj *file_ptr;
45
  size_t file_size;
46
} *__nl_catd;
47
 
48
 
49
 
50
/* The magic number to signal we really have a catalog file.  */
51
#define CATGETS_MAGIC 0x960408de
52
 
53
 
54
/* Prototypes for helper functions.  */
55
extern int __open_catalog (const char *cat_name, const char *nlspath,
56
                           const char *env_var, __nl_catd __catalog);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.