version 1.1, 2012/02/21 16:23:02
|
version 1.1.1.4, 2013/07/22 10:46:12
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (c) 2011 Todd C. Miller <Todd.Miller@courtesan.com> | * Copyright (c) 2011-2013 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 14
|
Line 14
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
|
|
#ifndef _SUDO_TOKE_H | #ifndef _SUDOERS_TOKE_H |
#define _SUDO_TOKE_H | #define _SUDOERS_TOKE_H |
|
|
int append(const char *, int); | bool append(const char *, int); |
int fill_args(const char *, int, int); | bool fill_args(const char *, int, int); |
int fill_cmnd(const char *, int); | bool fill_cmnd(const char *, int); |
int fill_txt(const char *, int, int); | bool fill_txt(const char *, int, int); |
int ipv6_valid(const char *s); | bool ipv6_valid(const char *s); |
void yyerror(const char *); | int sudoers_trace_print(const char *msg); |
| void sudoerserror(const char *); |
|
|
#ifndef FLEX_SCANNER |
#ifndef FLEX_SCANNER |
extern int (*trace_print)(const char *msg); |
extern int (*trace_print)(const char *msg); |
Line 33 extern int (*trace_print)(const char *msg);
|
Line 34 extern int (*trace_print)(const char *msg);
|
/* realloc() to size + COMMANDARGINC to make room for command args */ |
/* realloc() to size + COMMANDARGINC to make room for command args */ |
#define COMMANDARGINC 64 |
#define COMMANDARGINC 64 |
|
|
#define LEXTRACE(msg) do { \ | #define LEXTRACE(msg) do { \ |
if (trace_print != NULL) \ | if (trace_print != NULL) \ |
(*trace_print)(msg); \ | (*trace_print)(msg); \ |
} while (0); |
} while (0); |
|
|
#endif /* _SUDO_TOKE_H */ | #endif /* _SUDOERS_TOKE_H */ |