2
0

wordexp.h 650 B

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