Lines Matching refs:ent

74 int mount_indirect(struct autofs_userreq *req, struct autoentry *ent);
75 int mount_direct(struct autofs_userreq *req, struct autoentry *ent);
76 int mount_browse(struct autofs_userreq *req, struct autoentry *ent);
116 struct autoentry *ent;
155 ent = xcalloc(1, sizeof(*ent));
158 ent->ae_mnt = p;
161 ent->ae_path = p;
164 ent->ae_type = p;
167 ent->ae_opts = p;
170 ent->ae_rpath = p;
177 ent->ae_indirect = 1;
180 ent->ae_direct = 1;
183 ent->ae_browse = 1;
195 if (ent->ae_direct && ent->ae_indirect) {
200 x = asprintf(&ent->ae_fullpath, "%s/%s",
201 ent->ae_mnt, ent->ae_path);
205 if (strlen(ent->ae_fullpath) + 1 > PATH_MAX) {
208 tab, lineno, ent->ae_fullpath, PATH_MAX);
211 ent->ae_line = lineno;
212 ent->ae_free = line;
213 ent->ae_next = entries;
214 entries = ent;
219 free(ent->ae_fullpath);
221 free(ent);
230 struct autoentry *ent;
237 for (ent = entries; ent != NULL; ent = ent->ae_next) {
240 error = asprintf(&path, "%s/%s", ent->ae_mnt, ent->ae_path);
251 if (autoh_get(ent->ae_mnt, &ah)) {
260 if (ent->ae_browse) {
266 if (ent->ae_direct) {
272 if (ent->ae_indirect) {
291 struct autoentry *ent;
300 for (ent = entries; ent != NULL; ent = ent->ae_next) {
302 mnt, ent->ae_mnt, autoreq_getpath(req), ent->ae_path);
305 (int)strlen(ent->ae_mnt),
307 (int)strlen(ent->ae_path));
310 if ((mcmp = strcmp(mnt, ent->ae_mnt)) != 0) {
314 if (mount_direct(req, ent))
316 if (mount_indirect(req, ent))
318 if (mount_browse(req, ent))
331 mount_indirect(req, ent)
333 struct autoentry *ent;
339 if (ent->ae_indirect != 1) {
359 if (stat(ent->ae_fullpath, &sb))
366 x = asprintf(&path, "%s/%s", ent->ae_fullpath, autoreq_getpath(req));
374 ent->ae_type, ent->ae_opts, ent->ae_rpath, autoreq_getpath(req), path);
394 mount_direct(req, ent)
396 struct autoentry *ent;
402 if (ent->ae_direct != 1) {
420 if (stat(ent->ae_fullpath, &sb))
425 ent->ae_type, ent->ae_opts, ent->ae_rpath, ent->ae_fullpath);
442 mount_browse(req, ent)
444 struct autoentry *ent;
448 if (ent->ae_browse != 1)