common.h (270892) | common.h (279741) |
---|---|
1/*- 2 * Copyright (c) 2014 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from 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) 2014 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from 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: stable/10/usr.sbin/autofs/common.h 270096 2014-08-17 09:44:42Z trasz $ | 29 * $FreeBSD: stable/10/usr.sbin/autofs/common.h 279741 2015-03-07 19:32:19Z trasz $ |
30 */ 31 32#ifndef AUTOMOUNTD_H 33#define AUTOMOUNTD_H 34 35#include <sys/queue.h> 36#include <stdbool.h> 37 --- 37 unchanged lines hidden (view full) --- 75 76struct node *node_new_root(void); 77struct node *node_new(struct node *parent, char *key, char *options, 78 char *location, const char *config_file, int config_line); 79struct node *node_new_map(struct node *parent, char *key, char *options, 80 char *map, const char *config_file, int config_line); 81struct node *node_find(struct node *root, const char *mountpoint); 82bool node_is_direct_map(const struct node *n); | 30 */ 31 32#ifndef AUTOMOUNTD_H 33#define AUTOMOUNTD_H 34 35#include <sys/queue.h> 36#include <stdbool.h> 37 --- 37 unchanged lines hidden (view full) --- 75 76struct node *node_new_root(void); 77struct node *node_new(struct node *parent, char *key, char *options, 78 char *location, const char *config_file, int config_line); 79struct node *node_new_map(struct node *parent, char *key, char *options, 80 char *map, const char *config_file, int config_line); 81struct node *node_find(struct node *root, const char *mountpoint); 82bool node_is_direct_map(const struct node *n); |
83bool node_has_wildcards(const struct node *n); |
|
83char *node_path(const struct node *n); 84char *node_options(const struct node *n); 85void node_expand_ampersand(struct node *root, const char *key); 86void node_expand_wildcard(struct node *root, const char *key); 87int node_expand_defined(struct node *root); 88void node_expand_indirect_maps(struct node *n); 89void node_print(const struct node *n); 90void parse_master(struct node *root, const char *path); | 84char *node_path(const struct node *n); 85char *node_options(const struct node *n); 86void node_expand_ampersand(struct node *root, const char *key); 87void node_expand_wildcard(struct node *root, const char *key); 88int node_expand_defined(struct node *root); 89void node_expand_indirect_maps(struct node *n); 90void node_print(const struct node *n); 91void parse_master(struct node *root, const char *path); |
91void parse_map(struct node *parent, const char *map, const char *args); | 92void parse_map(struct node *parent, const char *map, const char *args, 93 bool *wildcards); |
92char *defined_expand(const char *string); 93void defined_init(void); 94void defined_parse_and_add(char *def); 95void lesser_daemon(void); 96 97int main_automount(int argc, char **argv); 98int main_automountd(int argc, char **argv); 99int main_autounmountd(int argc, char **argv); --- 13 unchanged lines hidden --- | 94char *defined_expand(const char *string); 95void defined_init(void); 96void defined_parse_and_add(char *def); 97void lesser_daemon(void); 98 99int main_automount(int argc, char **argv); 100int main_automountd(int argc, char **argv); 101int main_autounmountd(int argc, char **argv); --- 13 unchanged lines hidden --- |