head 1.13; access; symbols netbsd-10-0-RELEASE:1.13 netbsd-10-0-RC6:1.13 netbsd-10-0-RC5:1.13 netbsd-10-0-RC4:1.13 netbsd-10-0-RC3:1.13 netbsd-10-0-RC2:1.13 netbsd-10-0-RC1:1.13 netbsd-10:1.13.0.36 netbsd-10-base:1.13 netbsd-9-3-RELEASE:1.13 cjep_sun2x-base1:1.13 cjep_sun2x:1.13.0.34 cjep_sun2x-base:1.13 cjep_staticlib_x-base1:1.13 netbsd-9-2-RELEASE:1.13 cjep_staticlib_x:1.13.0.32 cjep_staticlib_x-base:1.13 netbsd-9-1-RELEASE:1.13 phil-wifi-20200421:1.13 phil-wifi-20200411:1.13 is-mlppp:1.13.0.30 is-mlppp-base:1.13 phil-wifi-20200406:1.13 netbsd-8-2-RELEASE:1.13 netbsd-9-0-RELEASE:1.13 netbsd-9-0-RC2:1.13 netbsd-9-0-RC1:1.13 phil-wifi-20191119:1.13 netbsd-9:1.13.0.28 netbsd-9-base:1.13 phil-wifi-20190609:1.13 netbsd-8-1-RELEASE:1.13 netbsd-8-1-RC1:1.13 pgoyette-compat-merge-20190127:1.13 pgoyette-compat-20190127:1.13 pgoyette-compat-20190118:1.13 pgoyette-compat-1226:1.13 pgoyette-compat-1126:1.13 pgoyette-compat-1020:1.13 pgoyette-compat-0930:1.13 pgoyette-compat-0906:1.13 netbsd-7-2-RELEASE:1.13 pgoyette-compat-0728:1.13 netbsd-8-0-RELEASE:1.13 phil-wifi:1.13.0.26 phil-wifi-base:1.13 pgoyette-compat-0625:1.13 netbsd-8-0-RC2:1.13 pgoyette-compat-0521:1.13 pgoyette-compat-0502:1.13 pgoyette-compat-0422:1.13 netbsd-8-0-RC1:1.13 pgoyette-compat-0415:1.13 pgoyette-compat-0407:1.13 pgoyette-compat-0330:1.13 pgoyette-compat-0322:1.13 pgoyette-compat-0315:1.13 netbsd-7-1-2-RELEASE:1.13 pgoyette-compat:1.13.0.24 pgoyette-compat-base:1.13 netbsd-7-1-1-RELEASE:1.13 matt-nb8-mediatek:1.13.0.22 matt-nb8-mediatek-base:1.13 perseant-stdc-iso10646:1.13.0.20 perseant-stdc-iso10646-base:1.13 netbsd-8:1.13.0.18 netbsd-8-base:1.13 prg-localcount2-base3:1.13 prg-localcount2-base2:1.13 prg-localcount2-base1:1.13 prg-localcount2:1.13.0.16 prg-localcount2-base:1.13 pgoyette-localcount-20170426:1.13 bouyer-socketcan-base1:1.13 pgoyette-localcount-20170320:1.13 netbsd-7-1:1.13.0.14 netbsd-7-1-RELEASE:1.13 netbsd-7-1-RC2:1.13 netbsd-7-nhusb-base-20170116:1.13 bouyer-socketcan:1.13.0.12 bouyer-socketcan-base:1.13 pgoyette-localcount-20170107:1.13 netbsd-7-1-RC1:1.13 pgoyette-localcount-20161104:1.13 netbsd-7-0-2-RELEASE:1.13 localcount-20160914:1.13 netbsd-7-nhusb:1.13.0.10 netbsd-7-nhusb-base:1.13 pgoyette-localcount-20160806:1.13 pgoyette-localcount-20160726:1.13 pgoyette-localcount:1.13.0.8 pgoyette-localcount-base:1.13 netbsd-7-0-1-RELEASE:1.13 netbsd-7-0:1.13.0.6 netbsd-7-0-RELEASE:1.13 netbsd-7-0-RC3:1.13 netbsd-7-0-RC2:1.13 netbsd-7-0-RC1:1.13 netbsd-5-2-3-RELEASE:1.12 netbsd-5-1-5-RELEASE:1.12 netbsd-6-0-6-RELEASE:1.12 netbsd-6-1-5-RELEASE:1.12 netbsd-7:1.13.0.4 netbsd-7-base:1.13 yamt-pagecache-base9:1.13 yamt-pagecache-tag8:1.12 netbsd-6-1-4-RELEASE:1.12 netbsd-6-0-5-RELEASE:1.12 tls-earlyentropy:1.13.0.2 tls-earlyentropy-base:1.13 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.13 riastradh-drm2-base3:1.13 netbsd-6-1-3-RELEASE:1.12 netbsd-6-0-4-RELEASE:1.12 netbsd-5-2-2-RELEASE:1.12 netbsd-5-1-4-RELEASE:1.12 netbsd-6-1-2-RELEASE:1.12 netbsd-6-0-3-RELEASE:1.12 netbsd-5-2-1-RELEASE:1.12 netbsd-5-1-3-RELEASE:1.12 netbsd-6-1-1-RELEASE:1.12 riastradh-drm2-base2:1.12 riastradh-drm2-base1:1.12 riastradh-drm2:1.12.0.38 riastradh-drm2-base:1.12 netbsd-6-1:1.12.0.42 netbsd-6-0-2-RELEASE:1.12 netbsd-6-1-RELEASE:1.12 netbsd-6-1-RC4:1.12 netbsd-6-1-RC3:1.12 agc-symver:1.12.0.40 agc-symver-base:1.12 netbsd-6-1-RC2:1.12 netbsd-6-1-RC1:1.12 yamt-pagecache-base8:1.12 netbsd-5-2:1.12.0.36 netbsd-6-0-1-RELEASE:1.12 yamt-pagecache-base7:1.12 netbsd-5-2-RELEASE:1.12 netbsd-5-2-RC1:1.12 matt-nb6-plus-nbase:1.12 yamt-pagecache-base6:1.12 netbsd-6-0:1.12.0.34 netbsd-6-0-RELEASE:1.12 netbsd-6-0-RC2:1.12 tls-maxphys:1.12.0.32 tls-maxphys-base:1.13 matt-nb6-plus:1.12.0.30 matt-nb6-plus-base:1.12 netbsd-6-0-RC1:1.12 yamt-pagecache-base5:1.12 yamt-pagecache-base4:1.12 netbsd-6:1.12.0.28 netbsd-6-base:1.12 netbsd-5-1-2-RELEASE:1.12 netbsd-5-1-1-RELEASE:1.12 yamt-pagecache-base3:1.12 yamt-pagecache-base2:1.12 yamt-pagecache:1.12.0.6 yamt-pagecache-base:1.12 cherry-xenmp:1.12.0.26 cherry-xenmp-base:1.12 uebayasi-xip-base7:1.12 bouyer-quota2-nbase:1.12 bouyer-quota2:1.12.0.24 bouyer-quota2-base:1.12 matt-mips64-premerge-20101231:1.12 matt-nb5-mips64-premerge-20101231:1.12 matt-nb5-pq3:1.12.0.22 matt-nb5-pq3-base:1.12 netbsd-5-1:1.12.0.20 uebayasi-xip-base6:1.12 uebayasi-xip-base5:1.12 netbsd-5-1-RELEASE:1.12 uebayasi-xip-base4:1.12 uebayasi-xip-base3:1.12 netbsd-5-1-RC4:1.12 matt-nb5-mips64-k15:1.12 uebayasi-xip-base2:1.12 netbsd-5-1-RC3:1.12 netbsd-5-1-RC2:1.12 uebayasi-xip-base1:1.12 netbsd-5-1-RC1:1.12 uebayasi-xip:1.12.0.18 uebayasi-xip-base:1.12 netbsd-5-0-2-RELEASE:1.12 matt-nb5-mips64-premerge-20091211:1.12 matt-premerge-20091211:1.12 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.12 matt-nb4-mips64-k7-u2a-k9b:1.12 matt-nb5-mips64-u1-k1-k5:1.12 matt-nb5-mips64:1.12.0.16 netbsd-5-0-1-RELEASE:1.12 jym-xensuspend-nbase:1.12 netbsd-5-0:1.12.0.14 netbsd-5-0-RELEASE:1.12 netbsd-5-0-RC4:1.12 netbsd-5-0-RC3:1.12 netbsd-5-0-RC2:1.12 jym-xensuspend:1.12.0.12 jym-xensuspend-base:1.12 netbsd-5-0-RC1:1.12 christos-time_t-nbase:1.12 christos-time_t:1.12.0.10 christos-time_t-base:1.12 netbsd-5:1.12.0.8 netbsd-5-base:1.12 matt-mips64-base2:1.12 matt-mips64:1.11.0.26 netbsd-4-0-1-RELEASE:1.11 wrstuden-revivesa-base-3:1.12 wrstuden-revivesa-base-2:1.12 wrstuden-fixsa-newbase:1.11 wrstuden-revivesa-base-1:1.12 simonb-wapbl-nbase:1.12 yamt-pf42-base4:1.12 simonb-wapbl:1.12.0.4 simonb-wapbl-base:1.12 yamt-pf42-base3:1.12 hpcarm-cleanup-nbase:1.12 yamt-pf42-baseX:1.11 yamt-pf42-base2:1.12 wrstuden-revivesa:1.12.0.2 wrstuden-revivesa-base:1.12 yamt-pf42:1.11.0.24 yamt-pf42-base:1.11 keiichi-mipv6:1.11.0.22 keiichi-mipv6-base:1.11 matt-armv6-nbase:1.11 matt-armv6-prevmlocking:1.11 wrstuden-fixsa-base-1:1.11 netbsd-4-0:1.11.0.20 netbsd-4-0-RELEASE:1.11 cube-autoconf:1.11.0.18 cube-autoconf-base:1.11 netbsd-4-0-RC5:1.11 netbsd-4-0-RC4:1.11 netbsd-4-0-RC3:1.11 netbsd-4-0-RC2:1.11 netbsd-4-0-RC1:1.11 matt-armv6:1.11.0.16 matt-armv6-base:1.11 matt-mips64-base:1.11 hpcarm-cleanup:1.11.0.14 hpcarm-cleanup-base:1.11 netbsd-3-1-1-RELEASE:1.11 netbsd-3-0-3-RELEASE:1.11 wrstuden-fixsa:1.11.0.12 wrstuden-fixsa-base:1.11 abandoned-netbsd-4-base:1.11 abandoned-netbsd-4:1.11.0.6 netbsd-3-1:1.11.0.8 netbsd-3-1-RELEASE:1.11 netbsd-3-0-2-RELEASE:1.11 netbsd-3-1-RC4:1.11 netbsd-3-1-RC3:1.11 netbsd-3-1-RC2:1.11 netbsd-3-1-RC1:1.11 netbsd-4:1.11.0.10 netbsd-4-base:1.11 netbsd-3-0-1-RELEASE:1.11 netbsd-3-0:1.11.0.4 netbsd-3-0-RELEASE:1.11 netbsd-3-0-RC6:1.11 netbsd-3-0-RC5:1.11 netbsd-3-0-RC4:1.11 netbsd-3-0-RC3:1.11 netbsd-3-0-RC2:1.11 netbsd-3-0-RC1:1.11 netbsd-2-0-3-RELEASE:1.10 netbsd-2-1:1.10.0.8 netbsd-2-1-RELEASE:1.10 netbsd-2-1-RC6:1.10 netbsd-2-1-RC5:1.10 netbsd-2-1-RC4:1.10 netbsd-2-1-RC3:1.10 netbsd-2-1-RC2:1.10 netbsd-2-1-RC1:1.10 netbsd-2-0-2-RELEASE:1.10 netbsd-3:1.11.0.2 netbsd-3-base:1.11 netbsd-2-0-1-RELEASE:1.10 netbsd-2:1.10.0.6 netbsd-2-base:1.10 netbsd-2-0-RELEASE:1.10 netbsd-2-0-RC5:1.10 netbsd-2-0-RC4:1.10 netbsd-2-0-RC3:1.10 netbsd-2-0-RC2:1.10 netbsd-2-0-RC1:1.10 netbsd-2-0:1.10.0.4 netbsd-2-0-base:1.10 netbsd-1-6-PATCH002-RELEASE:1.10 netbsd-1-6-PATCH002:1.10 netbsd-1-6-PATCH002-RC4:1.10 netbsd-1-6-PATCH002-RC3:1.10 netbsd-1-6-PATCH002-RC2:1.10 netbsd-1-6-PATCH002-RC1:1.10 netbsd-1-6-PATCH001:1.10 netbsd-1-6-PATCH001-RELEASE:1.10 netbsd-1-6-PATCH001-RC3:1.10 netbsd-1-6-PATCH001-RC2:1.10 netbsd-1-6-PATCH001-RC1:1.10 nathanw_sa_before_merge:1.10 nathanw_sa_end:1.9.2.2 fvdl_fs64_base:1.10 nathanw_sa_base:1.10 netbsd-1-6-RELEASE:1.10 netbsd-1-6-RC3:1.10 netbsd-1-6-RC2:1.10 netbsd-1-6-RC1:1.10 netbsd-1-6:1.10.0.2 netbsd-1-6-base:1.10 netbsd-1-5-PATCH003:1.8.12.1 netbsd-1-5-PATCH002:1.8.12.1 netbsd-1-5-PATCH001:1.8.12.1 nathanw_sa:1.9.0.2 netbsd-1-5-RELEASE:1.8.12.1 netbsd-1-5-BETA2:1.8.12.1 netbsd-1-5-BETA:1.8.12.1 netbsd-1-4-PATCH003:1.8.4.1 netbsd-1-5-ALPHA2:1.8 netbsd-1-5:1.8.0.12 netbsd-1-5-base:1.8 minoura-xpg4dl:1.8.0.10 minoura-xpg4dl-base:1.8 netbsd-1-4-PATCH002:1.8 wrstuden-devbsize-19991221:1.8 wrstuden-devbsize:1.8.0.8 wrstuden-devbsize-base:1.8 comdex-fall-1999:1.8.0.6 comdex-fall-1999-base:1.8 netbsd-1-4-PATCH001:1.8 netbsd-1-4-RELEASE:1.8 netbsd-1-4:1.8.0.4 netbsd-1-4-base:1.8 netbsd-1-3-PATCH003:1.8 netbsd-1-3-PATCH003-CANDIDATE2:1.8 netbsd-1-3-PATCH003-CANDIDATE1:1.8 netbsd-1-3-PATCH003-CANDIDATE0:1.8 netbsd-1-3-PATCH002:1.8 netbsd-1-3-PATCH001:1.8 netbsd-1-3-RELEASE:1.8 netbsd-1-3-BETA:1.8 netbsd-1-3:1.8.0.2 netbsd-1-3-base:1.8 netbsd-1-2-PATCH001:1.6 nsswitch:1.6.0.2 netbsd-1-2-RELEASE:1.6 netbsd-1-2-BETA:1.6 netbsd-1-2-base:1.6 netbsd-1-2:1.6.0.4 netbsd-1-1-PATCH001:1.5 netbsd-1-1-RELEASE:1.5 netbsd-1-1:1.5.0.2 netbsd-1-1-base:1.5 netbsd-1-0-PATCH06:1.1 netbsd-1-0-PATCH05:1.1 netbsd-1-0-PATCH04:1.1 netbsd-1-0-PATCH03:1.1 netbsd-1-0-PATCH02:1.1 netbsd-1-0-PATCH1:1.1 netbsd-1-0-PATCH0:1.1 netbsd-1-0-RELEASE:1.1 netbsd-1-0:1.1.0.2 netbsd-1-0-base:1.1; locks; strict; comment @ * @; 1.13 date 2013.08.19.08.03.33; author joerg; state Exp; branches; next 1.12; commitid 5Q2ZBYAWt5uOq22x; 1.12 date 2008.04.28.20.22.54; author martin; state Exp; branches 1.12.6.1 1.12.10.1 1.12.32.1; next 1.11; 1.11 date 2005.02.03.04.39.32; author perry; state Exp; branches 1.11.24.1; next 1.10; 1.10 date 2001.12.06.23.04.06; author wiz; state Exp; branches; next 1.9; 1.9 date 2000.10.03.19.53.32; author sommerfeld; state Exp; branches 1.9.2.1; next 1.8; 1.8 date 97.07.30.23.00.02; author jtc; state Exp; branches 1.8.4.1 1.8.12.1; next 1.7; 1.7 date 97.07.13.18.01.32; author christos; state Exp; branches; next 1.6; 1.6 date 96.05.13.23.11.15; author jtc; state Exp; branches; next 1.5; 1.5 date 95.03.01.08.01.23; author jtc; state Exp; branches; next 1.4; 1.4 date 94.12.23.13.02.09; author cgd; state Exp; branches; next 1.3; 1.3 date 94.12.20.16.18.59; author cgd; state Exp; branches; next 1.2; 1.2 date 94.10.26.00.56.10; author cgd; state Exp; branches; next 1.1; 1.1 date 94.05.29.21.47.14; author jtc; state Exp; branches; next ; 1.12.6.1 date 2014.05.22.11.36.35; author yamt; state Exp; branches; next ; commitid OndjEcbQZzO4KwBx; 1.12.10.1 date 2008.04.28.20.22.54; author martin; state dead; branches; next 1.12.10.2; 1.12.10.2 date 2008.04.28.20.22.55; author martin; state Exp; branches; next ; 1.12.32.1 date 2014.08.20.00.02.05; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.11.24.1 date 2008.05.18.12.30.09; author yamt; state Exp; branches; next ; 1.9.2.1 date 2002.01.14.21.37.09; author nathanw; state Exp; branches; next 1.9.2.2; 1.9.2.2 date 2002.01.28.21.27.19; author nathanw; state Exp; branches; next ; 1.8.4.1 date 2000.10.19.15.35.59; author he; state Exp; branches; next ; 1.8.12.1 date 2000.10.18.17.13.00; author tv; state Exp; branches; next ; desc @@ 1.13 log @Add nl_langinfo_l, catopen_l and wcsftime_l. @ text @/* $NetBSD: nl_types.h,v 1.12 2008/04/28 20:22:54 martin Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by J.T. Conklin. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _NL_TYPES_H_ #define _NL_TYPES_H_ #include #ifdef _NLS_PRIVATE /* * MESSAGE CATALOG FILE FORMAT. * * The NetBSD message catalog format is similar to the format used by * Svr4 systems. The differences are: * * fixed byte order (big endian) * * fixed data field sizes * * A message catalog contains four data types: a catalog header, one * or more set headers, one or more message headers, and one or more * text strings. */ #define _NLS_MAGIC 0xff88ff89 struct _nls_cat_hdr { int32_t __magic; int32_t __nsets; int32_t __mem; int32_t __msg_hdr_offset; int32_t __msg_txt_offset; } ; struct _nls_set_hdr { int32_t __setno; /* set number: 0 < x <= NL_SETMAX */ int32_t __nmsgs; /* number of messages in the set */ int32_t __index; /* index of first msg_hdr in msg_hdr table */ } ; struct _nls_msg_hdr { int32_t __msgno; /* msg number: 0 < x <= NL_MSGMAX */ int32_t __msglen; int32_t __offset; } ; #endif #define NL_SETD 1 #define NL_CAT_LOCALE 1 typedef struct __nl_cat_d { void *__data; int __size; } *nl_catd; typedef long nl_item; __BEGIN_DECLS nl_catd catopen(const char *, int); char *catgets(nl_catd, int, int, const char *) __format_arg(4); int catclose(nl_catd); __END_DECLS #if defined(_NETBSD_SOURCE) # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif __BEGIN_DECLS nl_catd catopen_l(const char *, int, locale_t); __END_DECLS #endif #endif /* _NL_TYPES_H_ */ @ 1.12 log @Remove clause 3 and 4 from TNF licenses @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.11 2005/02/03 04:39:32 perry Exp $ */ d86 1 a86 2 char *catgets(nl_catd, int, int, const char *) __attribute__((__format_arg__(4))); d90 10 @ 1.12.32.1 log @Rebase to HEAD as of a few days ago. @ text @d1 1 a1 1 /* $NetBSD$ */ d86 2 a87 1 char *catgets(nl_catd, int, int, const char *) __format_arg(4); a90 10 #if defined(_NETBSD_SOURCE) # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif __BEGIN_DECLS nl_catd catopen_l(const char *, int, locale_t); __END_DECLS #endif @ 1.12.6.1 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.12 2008/04/28 20:22:54 martin Exp $ */ d86 2 a87 1 char *catgets(nl_catd, int, int, const char *) __format_arg(4); a90 10 #if defined(_NETBSD_SOURCE) # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif __BEGIN_DECLS nl_catd catopen_l(const char *, int, locale_t); __END_DECLS #endif @ 1.12.10.1 log @file nl_types.h was added on branch christos-time_t on 2008-04-28 20:22:55 +0000 @ text @d1 91 @ 1.12.10.2 log @Remove clause 3 and 4 from TNF licenses @ text @a0 91 /* $NetBSD: nl_types.h,v 1.12 2008/04/28 20:22:54 martin Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by J.T. Conklin. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _NL_TYPES_H_ #define _NL_TYPES_H_ #include #ifdef _NLS_PRIVATE /* * MESSAGE CATALOG FILE FORMAT. * * The NetBSD message catalog format is similar to the format used by * Svr4 systems. The differences are: * * fixed byte order (big endian) * * fixed data field sizes * * A message catalog contains four data types: a catalog header, one * or more set headers, one or more message headers, and one or more * text strings. */ #define _NLS_MAGIC 0xff88ff89 struct _nls_cat_hdr { int32_t __magic; int32_t __nsets; int32_t __mem; int32_t __msg_hdr_offset; int32_t __msg_txt_offset; } ; struct _nls_set_hdr { int32_t __setno; /* set number: 0 < x <= NL_SETMAX */ int32_t __nmsgs; /* number of messages in the set */ int32_t __index; /* index of first msg_hdr in msg_hdr table */ } ; struct _nls_msg_hdr { int32_t __msgno; /* msg number: 0 < x <= NL_MSGMAX */ int32_t __msglen; int32_t __offset; } ; #endif #define NL_SETD 1 #define NL_CAT_LOCALE 1 typedef struct __nl_cat_d { void *__data; int __size; } *nl_catd; typedef long nl_item; __BEGIN_DECLS nl_catd catopen(const char *, int); char *catgets(nl_catd, int, int, const char *) __attribute__((__format_arg__(4))); int catclose(nl_catd); __END_DECLS #endif /* _NL_TYPES_H_ */ @ 1.11 log @de-__P -- the hack is long since useless. Discussed with christos, matt, kleink, others. Approved by christos. @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.10 2001/12/06 23:04:06 wiz Exp $ */ a17 7 * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the NetBSD * Foundation, Inc. and its contributors. * 4. Neither the name of The NetBSD Foundation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. @ 1.11.24.1 log @sync with head. @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.11 2005/02/03 04:39:32 perry Exp $ */ d18 7 @ 1.10 log @Give the struct typedef'd to *nl_catd a name to avoid an error with gcc 2.95.3 ("non-local function `struct {anonymous} *const & I18n::getCatalogFd() ' uses anonymous type"). Fixes problem reported in pkg/14477. Ok'd by kleink. @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.9 2000/10/03 19:53:32 sommerfeld Exp $ */ d92 2 a93 2 nl_catd catopen __P((const char *, int)); char *catgets __P((nl_catd, int, int, const char *)) d95 1 a95 1 int catclose __P((nl_catd)); @ 1.9 log @Allow passthrough format-string checking of catgets @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.8 1997/07/30 23:00:02 jtc Exp $ */ d84 1 a84 1 typedef struct { @ 1.9.2.1 log @Catch up to -current. @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.9 2000/10/03 19:53:32 sommerfeld Exp $ */ d84 1 a84 1 typedef struct __nl_cat_d { @ 1.9.2.2 log @Catch up to -current. @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.9.2.1 2002/01/14 21:37:09 nathanw Exp $ */ @ 1.8 log @Fix files using old TNF copyright notice @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.7 1997/07/13 18:01:32 christos Exp $ */ d93 2 a94 1 char *catgets __P((nl_catd, int, int, const char *)); @ 1.8.4.1 log @Pull up revision 1.9 (requested by sommerfeld): Allow passthrough format-string checking of catgets, as part of format string audit. @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.8 1997/07/30 23:00:02 jtc Exp $ */ d93 1 a93 2 char *catgets __P((nl_catd, int, int, const char *)) __attribute__((__format_arg__(4))); @ 1.8.12.1 log @Pullup 1.9 [sommerfeld]: Allow passthrough format-string checking of catgets. @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.9 2000/10/03 19:53:32 sommerfeld Exp $ */ d93 1 a93 2 char *catgets __P((nl_catd, int, int, const char *)) __attribute__((__format_arg__(4))); @ 1.7 log @Add missing __{BEGIN,END}_DECLS @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.6 1996/05/13 23:11:15 jtc Exp $ */ d29 2 a30 2 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR @ 1.6 log @Add data structure declarations used in external message catalog format @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.5 1995/03/01 08:01:23 jtc Exp $ */ d91 5 a95 3 extern nl_catd catopen __P((__const char *, int)); extern char *catgets __P((nl_catd, int, int, const char *)); extern int catclose __P((nl_catd)); @ 1.5 log @catclose returns int @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.4 1994/12/23 13:02:09 cgd Exp $ */ d3 35 a37 31 /*********************************************************** Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that Alfalfa's name not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. ALPHALPHA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL ALPHALPHA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. If you make any modifications, bugfixes or other changes to this software we'd appreciate it if you could send a copy to us so we can keep things up-to-date. Many thanks. Kee Hinckley Alfalfa Software, Inc. 267 Allston St., #3 Cambridge, MA 02139 USA nazgul@@alfalfa.com ******************************************************************/ d43 45 a87 1 #define NL_SETD 0 a88 1 typedef long nl_catd; d92 1 a92 1 extern char *catgets __P((nl_catd, int, int, char *)); @ 1.4 log @oops; one too many __const's @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.3 1994/12/20 16:18:59 cgd Exp $ */ d46 1 a46 1 extern void catclose __P((nl_catd)); @ 1.3 log @make the char *'s that some of these routines take/return __const. It quiets some warnings, and is the 'right thing' anyway. @ text @d1 1 a1 1 /* $NetBSD: nl_types.h,v 1.2 1994/10/26 00:56:10 cgd Exp $ */ d45 1 a45 1 extern char *catgets __P((nl_catd, int, int, __const char *)); @ 1.2 log @new RCS ID format. @ text @d1 1 a1 1 /* $NetBSD$ */ d44 2 a45 2 extern nl_catd catopen __P((char *, int)); extern char *catgets __P((nl_catd, int, int, char *)); @ 1.1 log @Added nl_types.h for message catalog functions @ text @d1 2 @