hast.h (207371) | hast.h (210883) |
---|---|
1/*- 2 * Copyright (c) 2009-2010 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Pawel Jakub Dawidek under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2009-2010 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Pawel Jakub Dawidek under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sbin/hastd/hast.h 207371 2010-04-29 15:36:32Z pjd $ | 29 * $FreeBSD: head/sbin/hastd/hast.h 210883 2010-08-05 19:08:54Z pjd $ |
30 */ 31 32#ifndef _HAST_H_ 33#define _HAST_H_ 34 35#include <sys/queue.h> 36#include <sys/socket.h> 37 --- 140 unchanged lines hidden (view full) --- 178 struct activemap *hr_amp; 179 /* Locked used to synchronize access to hr_amp. */ 180 pthread_mutex_t hr_amp_lock; 181 182 /* Next resource. */ 183 TAILQ_ENTRY(hast_resource) hr_next; 184}; 185 | 30 */ 31 32#ifndef _HAST_H_ 33#define _HAST_H_ 34 35#include <sys/queue.h> 36#include <sys/socket.h> 37 --- 140 unchanged lines hidden (view full) --- 178 struct activemap *hr_amp; 179 /* Locked used to synchronize access to hr_amp. */ 180 pthread_mutex_t hr_amp_lock; 181 182 /* Next resource. */ 183 TAILQ_ENTRY(hast_resource) hr_next; 184}; 185 |
186struct hastd_config *yy_config_parse(const char *config); | 186struct hastd_config *yy_config_parse(const char *config, bool exitonerror); |
187void yy_config_free(struct hastd_config *config); 188 189void yyerror(const char *); 190int yylex(void); 191int yyparse(void); 192 193#endif /* !_HAST_H_ */ | 187void yy_config_free(struct hastd_config *config); 188 189void yyerror(const char *); 190int yylex(void); 191int yyparse(void); 192 193#endif /* !_HAST_H_ */ |