2 /* : : generated by proto : : */
3 /***********************************************************************
5 * This software is part of the ast package *
6 * Copyright (c) 1985-2010 AT&T Intellectual Property *
7 * and is licensed under the *
8 * Common Public License, Version 1.0 *
9 * by AT&T Intellectual Property *
11 * A copy of the License is available at *
12 * http://www.opensource.org/licenses/cpl1.0.txt *
13 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
15 * Information and Software Systems Research *
19 * Glenn Fowler <gsf@research.att.com> *
20 * David Korn <dgk@research.att.com> *
21 * Phong Vo <kpv@research.att.com> *
23 ***********************************************************************/
29 * fast find interface definitions
33 #if !defined(__PROTO__)
34 #include <prototyped.h>
36 #if !defined(__LINKAGE__)
37 #define __LINKAGE__ /* 2004-08-11 transition */
42 #define FIND_VERSION 19980301L
45 #define FIND_CODES "lib/find/codes"
48 #define FIND_CODES_ENV "FINDCODES"
50 #define FIND_GENERATE (1<<0) /* generate new codes */
51 #define FIND_ICASE (1<<1) /* ignore case in match */
52 #define FIND_GNU (1<<2) /* generate gnu format codes */
53 #define FIND_OLD (1<<3) /* generate old format codes */
54 #define FIND_TYPE (1<<4) /* generate type with codes */
55 #define FIND_VERIFY (1<<5) /* verify the dir hierarchy */
57 #define FIND_USER (1L<<16) /* first user flag bit */
62 typedef int (*Findverify_f
) __PROTO__((struct Find_s
*, const char*, size_t, struct Finddisc_s
*));
64 typedef struct Finddisc_s
66 unsigned long version
; /* interface version */
67 unsigned long flags
; /* FIND_* flags */
68 Error_f errorf
; /* error function */
69 Findverify_f verifyf
; /* dir verify function */
70 char** dirs
; /* dir prefixes to search */
75 const char* id
; /* library id string */
76 unsigned long stamp
; /* codes time stamp */
84 #if _BLD_ast && defined(__EXPORT__)
86 #define __MANGLE__ __LINKAGE__ __EXPORT__
89 extern __MANGLE__ Find_t
* findopen
__PROTO__((const char*, const char*, const char*, Finddisc_t
*));
90 extern __MANGLE__
char* findread
__PROTO__((Find_t
*));
91 extern __MANGLE__
int findwrite
__PROTO__((Find_t
*, const char*, size_t, const char*));
92 extern __MANGLE__
int findclose
__PROTO__((Find_t
*));
95 #define __MANGLE__ __LINKAGE__