• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef	_WORDEXP_H
2 #define	_WORDEXP_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <features.h>
9 
10 #define __NEED_size_t
11 
12 #include <bits/alltypes.h>
13 
14 #define WRDE_DOOFFS  1
15 #define WRDE_APPEND  2
16 #define WRDE_NOCMD   4
17 #define WRDE_REUSE   8
18 #define WRDE_SHOWERR 16
19 #define WRDE_UNDEF   32
20 
21 typedef struct {
22 	size_t we_wordc;
23 	char **we_wordv;
24 	size_t we_offs;
25 } wordexp_t;
26 
27 #define WRDE_NOSYS   -1
28 #define WRDE_NOSPACE 1
29 #define WRDE_BADCHAR 2
30 #define WRDE_BADVAL  3
31 #define WRDE_CMDSUB  4
32 #define WRDE_SYNTAX  5
33 
34 int wordexp (const char *__restrict, wordexp_t *__restrict, int);
35 void wordfree (wordexp_t *);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
42