]>
Commit | Line | Data |
---|---|---|
59e0d9fe A |
1 | /* |
2 | * Copyright 1994, University Corporation for Atmospheric Research | |
3 | * See ../COPYRIGHT file for copying and redistribution conditions. | |
4 | */ | |
5 | /* | |
6 | * Reproduction of ../COPYRIGHT file: | |
7 | * | |
8 | ********************************************************************* | |
9 | ||
10 | Copyright 1995-2002 University Corporation for Atmospheric Research/Unidata | |
11 | ||
12 | Portions of this software were developed by the Unidata Program at the | |
13 | University Corporation for Atmospheric Research. | |
14 | ||
15 | Access and use of this software shall impose the following obligations | |
16 | and understandings on the user. The user is granted the right, without | |
17 | any fee or cost, to use, copy, modify, alter, enhance and distribute | |
18 | this software, and any derivative works thereof, and its supporting | |
19 | documentation for any purpose whatsoever, provided that this entire | |
20 | notice appears in all copies of the software, derivative works and | |
21 | supporting documentation. Further, UCAR requests that the user credit | |
22 | UCAR/Unidata in any publications that result from the use of this | |
23 | software or in any product that includes this software. The names UCAR | |
24 | and/or Unidata, however, may not be used in any advertising or publicity | |
25 | to endorse or promote any products or commercial entity unless specific | |
26 | written permission is obtained from UCAR/Unidata. The user also | |
27 | understands that UCAR/Unidata is not obligated to provide the user with | |
28 | any support, consulting, training or assistance of any kind with regard | |
29 | to the use, operation and performance of this software nor to provide | |
30 | the user with any updates, revisions, new versions or "bug fixes." | |
31 | ||
32 | THIS SOFTWARE IS PROVIDED BY UCAR/UNIDATA "AS IS" AND ANY EXPRESS OR | |
33 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
34 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
35 | DISCLAIMED. IN NO EVENT SHALL UCAR/UNIDATA BE LIABLE FOR ANY SPECIAL, | |
36 | INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING | |
37 | FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, | |
38 | NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION | |
39 | WITH THE ACCESS, USE OR PERFORMANCE OF THIS SOFTWARE. | |
40 | ||
41 | ********************************************************************* | |
42 | * | |
43 | */ | |
44 | ||
224c7076 | 45 | /* $Id: wordexp.h,v 1.5 1994/05/12 20:46:40 davis Exp $ */ |
59e0d9fe A |
46 | #ifndef _WORDEXP_H |
47 | #define _WORDEXP_H | |
48 | ||
49 | #include <sys/cdefs.h> | |
3d9156a7 | 50 | #include <_types.h> |
6465356a A |
51 | #include <sys/_types/_size_t.h> |
52 | #include <Availability.h> | |
59e0d9fe A |
53 | |
54 | typedef struct { | |
55 | size_t we_wordc; | |
56 | char **we_wordv; | |
57 | size_t we_offs; | |
58 | } wordexp_t; | |
59 | ||
60 | /* wordexp() flags Argument */ | |
61 | #define WRDE_APPEND 0x01 | |
62 | #define WRDE_DOOFFS 0x02 | |
63 | #define WRDE_NOCMD 0x04 | |
64 | #define WRDE_REUSE 0x08 | |
65 | #define WRDE_SHOWERR 0x10 | |
66 | #define WRDE_UNDEF 0x20 | |
67 | ||
68 | /* | |
69 | * wordexp() Return Values | |
70 | */ | |
71 | /* required */ | |
72 | #define WRDE_BADCHAR 1 | |
73 | #define WRDE_BADVAL 2 | |
74 | #define WRDE_CMDSUB 3 | |
6465356a A |
75 | #define WRDE_NOSPACE 4 |
76 | #define WRDE_NOSYS 5 | |
59e0d9fe A |
77 | #define WRDE_SYNTAX 6 |
78 | ||
79 | ||
80 | __BEGIN_DECLS | |
6465356a A |
81 | int wordexp(const char * __restrict, wordexp_t * __restrict, int) __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA); |
82 | void wordfree(wordexp_t *) __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA); | |
59e0d9fe A |
83 | __END_DECLS |
84 | ||
85 | #endif /* _WORDEXP_H */ |