1e530e044SWarner Losh /*- 2e530e044SWarner Losh * DEVD (Device action daemon) 3e530e044SWarner Losh * 4e530e044SWarner Losh * Copyright (c) 2002 M. Warner Losh <imp@freebsd.org>. 5e530e044SWarner Losh * All rights reserved. 6e530e044SWarner Losh * 7e530e044SWarner Losh * Redistribution and use in source and binary forms, with or without 8e530e044SWarner Losh * modification, are permitted provided that the following conditions 9e530e044SWarner Losh * are met: 10e530e044SWarner Losh * 1. Redistributions of source code must retain the above copyright 11e530e044SWarner Losh * notice, this list of conditions and the following disclaimer. 12e530e044SWarner Losh * 2. Redistributions in binary form must reproduce the above copyright 13e530e044SWarner Losh * notice, this list of conditions and the following disclaimer in the 14e530e044SWarner Losh * documentation and/or other materials provided with the distribution. 15e530e044SWarner Losh * 16e530e044SWarner Losh * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17e530e044SWarner Losh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18e530e044SWarner Losh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19e530e044SWarner Losh * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20e530e044SWarner Losh * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21e530e044SWarner Losh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22e530e044SWarner Losh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23e530e044SWarner Losh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24e530e044SWarner Losh * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25e530e044SWarner Losh * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26e530e044SWarner Losh * SUCH DAMAGE. 27e530e044SWarner Losh * 28e530e044SWarner Losh * $FreeBSD$ 29e530e044SWarner Losh */ 30e530e044SWarner Losh 31e530e044SWarner Losh #include <sys/queue.h> 32e530e044SWarner Losh 33e530e044SWarner Losh int yylex(void); 34e530e044SWarner Losh void yyerror(const char *s); 35e530e044SWarner Losh int yyparse(void); 36e530e044SWarner Losh void add_directory(const char *); 37e530e044SWarner Losh 38e530e044SWarner Losh struct file_list 39e530e044SWarner Losh { 40e530e044SWarner Losh char *path; 41e530e044SWarner Losh TAILQ_ENTRY(file_list) fl_link; 42e530e044SWarner Losh }; 43e530e044SWarner Losh 44e530e044SWarner Losh TAILQ_HEAD(file_list_head, file_list); 45e530e044SWarner Losh 46e530e044SWarner Losh extern struct file_list_head dirlist; 47e530e044SWarner Losh 48e530e044SWarner Losh 49