projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix some type leakage (timer_t) from x86_64 commit
[oweals/musl.git]
/
include
/
wordexp.h
1
#ifndef _WORDEXP_H
2
#define _WORDEXP_H
3
4
#ifdef __cplusplus
5
extern "C" {
6
#endif
7
8
#define __NEED_size_t
9
10
#include <bits/alltypes.h>
11
12
#define WRDE_DOOFFS 1
13
#define WRDE_APPEND 2
14
#define WRDE_NOCMD 4
15
#define WRDE_REUSE 8
16
#define WRDE_SHOWERR 16
17
#define WRDE_UNDEF 32
18
19
typedef struct
20
{
21
size_t we_wordc;
22
char **wc_wordv;
23
size_t we_offs;
24
} wordexp_t;
25
26
#define WRDE_NOSYS -1
27
#define WRDE_NOSPACE 1
28
#define WRDE_BADCHAR 2
29
#define WRDE_BADVAL 3
30
#define WRDE_CMDSUB 4
31
#define WRDE_SYNTAX 5
32
33
int wordexp (const char *, wordexp_t *, int);
34
void wordfree (wordexp_t *);
35
36
#ifdef __cplusplus
37
}
38
#endif
39
40
#endif