]> git.saurik.com Git - apple/libc.git/blob - include/nl_types.h
4adabafc571360f8229d49f1a3dce4c7520a185d
[apple/libc.git] / include / nl_types.h
1 /*
2 * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23 /* $FreeBSD: src/include/nl_types.h,v 1.7 1999/08/27 23:44:51 peter Exp $ */
24
25 /***********************************************************
26 Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
27
28 All Rights Reserved
29
30 Permission to use, copy, modify, and distribute this software and its
31 documentation for any purpose and without fee is hereby granted,
32 provided that the above copyright notice appear in all copies and that
33 both that copyright notice and this permission notice appear in
34 supporting documentation, and that Alfalfa's name not be used in
35 advertising or publicity pertaining to distribution of the software
36 without specific, written prior permission.
37
38 ALPHALPHA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40 ALPHALPHA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
44 SOFTWARE.
45
46 If you make any modifications, bugfixes or other changes to this software
47 we'd appreciate it if you could send a copy to us so we can keep things
48 up-to-date. Many thanks.
49 Kee Hinckley
50 Alfalfa Software, Inc.
51 267 Allston St., #3
52 Cambridge, MA 02139 USA
53 nazgul@alfalfa.com
54
55 ******************************************************************/
56
57 #ifndef _NL_TYPES_H_
58 #define _NL_TYPES_H_
59 #include <sys/cdefs.h>
60
61 #define NL_SETD 0
62 #define NL_CAT_LOCALE 1
63
64 typedef int nl_item;
65 typedef void *nl_catd;
66
67 __BEGIN_DECLS
68 extern nl_catd catopen(__const char *, int);
69 extern char *catgets(nl_catd, int, int, __const char *);
70 extern int catclose(nl_catd);
71 __END_DECLS
72
73 #endif /* _NL_TYPES_H_ */