Usermode/libposix - Updates to get curl and netsurf compiled
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / regex.h
1 /*
2  * Acess2 POSIX Emulation Library
3  * - By John Hodge (thePowersGang)
4  *
5  * regex.h
6  * - POSIX regular expression support
7  */
8 #ifndef _LIBPOSIX_REGEX_H_
9 #define _LIBPOSIX_REGEX_H_
10
11 typedef struct {
12         void *unused;
13 } regex_t;
14
15 typedef size_t  regoff_t;
16
17 typedef struct {
18         regoff_t rm_so;
19         regoff_t rm_eo;
20 } regmatch_t;
21
22 extern int regcomp(regex_t *preg, const char *regex, int cflags);
23 extern int regexec(const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags);
24 extern size_t regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size);
25 extern void regfree(regex_t *preg);
26
27 enum {
28         REG_BADBR = 1,
29         REG_BADPAT,
30         REG_BADRPT,
31 };
32
33
34 #endif
35
36

UCC git Repository :: git.ucc.asn.au