]> git.saurik.com Git - apple/libc.git/blame - include/wordexp.h
Libc-1272.200.26.tar.gz
[apple/libc.git] / include / wordexp.h
CommitLineData
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
10Copyright 1995-2002 University Corporation for Atmospheric Research/Unidata
11
12Portions of this software were developed by the Unidata Program at the
13University Corporation for Atmospheric Research.
14
15Access and use of this software shall impose the following obligations
16and understandings on the user. The user is granted the right, without
17any fee or cost, to use, copy, modify, alter, enhance and distribute
18this software, and any derivative works thereof, and its supporting
19documentation for any purpose whatsoever, provided that this entire
20notice appears in all copies of the software, derivative works and
21supporting documentation. Further, UCAR requests that the user credit
22UCAR/Unidata in any publications that result from the use of this
23software or in any product that includes this software. The names UCAR
24and/or Unidata, however, may not be used in any advertising or publicity
25to endorse or promote any products or commercial entity unless specific
26written permission is obtained from UCAR/Unidata. The user also
27understands that UCAR/Unidata is not obligated to provide the user with
28any support, consulting, training or assistance of any kind with regard
29to the use, operation and performance of this software nor to provide
30the user with any updates, revisions, new versions or "bug fixes."
31
32THIS SOFTWARE IS PROVIDED BY UCAR/UNIDATA "AS IS" AND ANY EXPRESS OR
33IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
34WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
35DISCLAIMED. IN NO EVENT SHALL UCAR/UNIDATA BE LIABLE FOR ANY SPECIAL,
36INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
37FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
38NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
39WITH 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
54typedef 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
81int wordexp(const char * __restrict, wordexp_t * __restrict, int) __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA);
82void wordfree(wordexp_t *) __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_NA);
59e0d9fe
A
83__END_DECLS
84
85#endif /* _WORDEXP_H */