xref: /titanic_50/usr/src/lib/libast/i386/include/ast/wordexp.h (revision 3e14f97f673e8a630f076077de35afdd43dc1587)
1 
2 /* : : generated by proto : : */
3 /***********************************************************************
4 *                                                                      *
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                     *
10 *                                                                      *
11 *                A copy of the License is available at                 *
12 *            http://www.opensource.org/licenses/cpl1.0.txt             *
13 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
14 *                                                                      *
15 *              Information and Software Systems Research               *
16 *                            AT&T Research                             *
17 *                           Florham Park NJ                            *
18 *                                                                      *
19 *                 Glenn Fowler <gsf@research.att.com>                  *
20 *                  David Korn <dgk@research.att.com>                   *
21 *                   Phong Vo <kpv@research.att.com>                    *
22 *                                                                      *
23 ***********************************************************************/
24 
25 /*
26  * posix wordexp interface definitions
27  */
28 
29 #ifndef _WORDEXP_H
30 #if !defined(__PROTO__)
31 #include <prototyped.h>
32 #endif
33 #if !defined(__LINKAGE__)
34 #define __LINKAGE__		/* 2004-08-11 transition */
35 #endif
36 
37 #define _WORDEXP_H
38 
39 #include <ast_common.h>
40 
41 #define WRDE_APPEND	01
42 #define WRDE_DOOFFS	02
43 #define WRDE_NOCMD	04
44 #define WRDE_NOSYS	0100
45 #define WRDE_REUSE	010
46 #define WRDE_SHOWERR	020
47 #define WRDE_UNDEF	040
48 
49 #define WRDE_BADCHAR	1
50 #define WRDE_BADVAL	2
51 #define WRDE_CMDSUB	3
52 #define WRDE_NOSPACE	4
53 #define WRDE_SYNTAX	5
54 #define WRDE_NOSHELL	6
55 
56 typedef struct _wdarg
57 {
58 	size_t	we_wordc;
59 	char	**we_wordv;
60 	size_t	we_offs;
61 } wordexp_t;
62 
63 #if _BLD_ast && defined(__EXPORT__)
64 #undef __MANGLE__
65 #define __MANGLE__ __LINKAGE__		__EXPORT__
66 #endif
67 
68 extern __MANGLE__ int wordexp __PROTO__((const char*, wordexp_t*, int));
69 extern __MANGLE__ int wordfree __PROTO__((wordexp_t*));
70 
71 #undef __MANGLE__
72 #define __MANGLE__ __LINKAGE__
73 
74 #endif /* _WORDEXP_H */
75