~ubuntu-branches/ubuntu/raring/autofs5/raring

« back to all changes in this revision

Viewing changes to include/master.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Christoph Nordholz
  • Date: 2009-03-09 01:16:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090309011648-gjynlid883f0s2c4
Tags: 5.0.4-1
* New upstream version (5.0.4 plus patchset as of 2009/03/09).
  * Closes: #518728.
  * Remove dpatch 14, applied upstream.
* New dpatch 14 to avoid using the relatively young SOCK_CLOEXEC
  feature.
* Only invoke 'make clean' on clean target so ./configure isn't
  purged.
* Fix a typo in the postinst regarding the ucf conffile handling.
* Add 'set -e' to package maintenance scripts.
* Drop unnecessary /var/run/autofs from package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef MASTER_H
21
21
#define MASTER_H
22
22
 
23
 
#define MASTER_SUBMNT_WAIT      0
24
 
#define MASTER_SUBMNT_CONTINUE  1
25
 
#define MASTER_SUBMNT_JOIN      2
26
 
 
27
23
struct map_source {
28
24
        char *type;
29
25
        char *format;
74
70
 
75
71
/* From master.c master parser utility routines */
76
72
 
 
73
void master_mutex_lock(void);
 
74
void master_mutex_unlock(void);
 
75
void master_mutex_lock_cleanup(void *);
77
76
void master_set_default_timeout(void);
78
77
void master_set_default_ghost_mode(void);
79
78
int master_add_autofs_point(struct master_mapent *, time_t, unsigned, unsigned, int);
95
94
void master_source_current_wait(struct master_mapent *);
96
95
void master_source_current_signal(struct master_mapent *);
97
96
struct master_mapent *master_find_mapent(struct master *, const char *);
 
97
struct autofs_point *__master_find_submount(struct autofs_point *, const char *);
 
98
struct autofs_point *master_find_submount(struct autofs_point *, const char *);
98
99
struct master_mapent *master_new_mapent(struct master *, const char *, time_t);
99
100
void master_add_mapent(struct master *, struct master_mapent *);
100
101
void master_remove_mapent(struct master_mapent *);
104
105
int master_read_master(struct master *, time_t, int);
105
106
int master_submount_list_empty(struct autofs_point *ap);
106
107
int master_notify_submount(struct autofs_point *, const char *path, enum states);
107
 
void master_signal_submount(struct autofs_point *, unsigned int);
108
108
void master_notify_state_change(struct master *, int);
109
109
int master_mount_mounts(struct master *, time_t, int);
110
110
extern inline unsigned int master_get_logopt(void);
111
111
int master_list_empty(struct master *);
112
112
int master_kill(struct master *);
113
113
 
114
 
#define master_mutex_lock() \
115
 
do { \
116
 
        int status = pthread_mutex_lock(&master_mutex); \
117
 
        if (status) \
118
 
                fatal(status); \
119
 
} while (0)
120
 
 
121
 
#define master_mutex_unlock() \
122
 
do { \
123
 
        int status = pthread_mutex_unlock(&master_mutex); \
124
 
        if (status) \
125
 
                fatal(status); \
126
 
} while (0)
127
 
 
128
114
#endif