Convert sudo to use BSD TAILQ macros instead of home ground tail

queue functions.  This includes a private queue.h header derived
from FreeBSD.  It is simpler to just use our own header rather than
try to deal with macros that may or may not be present in various
queue.h incarnations.
This commit is contained in:
Todd C. Miller
2013-10-22 09:00:37 -06:00
parent fe0e953e9b
commit 923edabe6c
31 changed files with 962 additions and 299 deletions

View File

@@ -17,21 +17,20 @@
#ifndef _SUDO_CONF_H
#define _SUDO_CONF_H
#include "list.h"
#include "queue.h"
#define GROUP_SOURCE_ADAPTIVE 0
#define GROUP_SOURCE_STATIC 1
#define GROUP_SOURCE_DYNAMIC 2
struct plugin_info {
struct plugin_info *prev; /* required */
struct plugin_info *next; /* required */
TAILQ_ENTRY(plugin_info) entries;
const char *path;
const char *symbol_name;
char * const * options;
int lineno;
};
TQ_DECLARE(plugin_info)
TAILQ_HEAD(plugin_info_list, plugin_info);
/* Read main sudo.conf file. */
void sudo_conf_read(const char *);