sys/prctl.h: add PR_PAC_{SET,GET}_ENABLED_KEYS from linux v5.13
[musl.git] / include / wordexp.h
blob5460002deec7462e42a5bdf8cd5f49d7d3040e29
1 #ifndef _WORDEXP_H
2 #define _WORDEXP_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <features.h>
10 #define __NEED_size_t
12 #include <bits/alltypes.h>
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
21 typedef struct {
22 size_t we_wordc;
23 char **we_wordv;
24 size_t we_offs;
25 } wordexp_t;
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
34 int wordexp (const char *__restrict, wordexp_t *__restrict, int);
35 void wordfree (wordexp_t *);
37 #ifdef __cplusplus
39 #endif
41 #endif