| 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 | |
| 45 | /* $Id: wordexp.h,v 1.5 1994/05/12 20:46:40 davis Exp $ */ |
| 46 | #ifndef _WORDEXP_H |
| 47 | #define _WORDEXP_H |
| 48 | |
| 49 | #include <sys/cdefs.h> |
| 50 | #include <_bounds.h> |
| 51 | #include <_types.h> |
| 52 | #include <sys/_types/_size_t.h> |
| 53 | #include <Availability.h> |
| 54 | |
| 55 | _LIBC_SINGLE_BY_DEFAULT() |
| 56 | |
| 57 | typedef struct { |
| 58 | 	size_t we_wordc; |
| 59 | 	char *_LIBC_CSTR *_LIBC_COUNT(we_wordc)	we_wordv; |
| 60 | 	size_t we_offs; |
| 61 | } wordexp_t; |
| 62 | |
| 63 | /* wordexp() flags Argument */ |
| 64 | #define WRDE_APPEND	0x01 |
| 65 | #define WRDE_DOOFFS	0x02 |
| 66 | #define WRDE_NOCMD	0x04 |
| 67 | #define WRDE_REUSE	0x08 |
| 68 | #define WRDE_SHOWERR	0x10 |
| 69 | #define WRDE_UNDEF	0x20 |
| 70 | |
| 71 | /* |
| 72 | * wordexp() Return Values |
| 73 | */ |
| 74 | /* required */ |
| 75 | #define WRDE_BADCHAR	1 |
| 76 | #define WRDE_BADVAL	2 |
| 77 | #define WRDE_CMDSUB	3 |
| 78 | #define WRDE_NOSPACE	4 |
| 79 | #define WRDE_NOSYS	5 |
| 80 | #define WRDE_SYNTAX	6 |
| 81 | |
| 82 | |
| 83 | __BEGIN_DECLS |
| 84 | int wordexp(const char * __restrict, wordexp_t * __restrict, int) __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA); |
| 85 | void wordfree(wordexp_t *) __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA); |
| 86 | __END_DECLS |
| 87 | |
| 88 | #endif /* _WORDEXP_H */ |