Home
last modified time | relevance | path

Searched refs:gopt (Results 1 – 25 of 28) sorted by relevance

12

/netbsd-src/external/bsd/am-utils/dist/amd/
H A Dconf.c251 cfm->cfm_type = gopt.map_type; in init_cf_map()
254 cfm->cfm_defaults = gopt.map_defaults; in init_cf_map()
257 cfm->cfm_opts = gopt.map_options; in init_cf_map()
260 cfm->cfm_search_path = gopt.search_path; in init_cf_map()
266 cfm->cfm_flags = gopt.flags & (CFM_BROWSABLE_DIRS | in init_cf_map()
376 gopt.arch = xstrdup(val); in gopt_arch()
384 gopt.auto_attrcache = atoi(val); in gopt_auto_attrcache()
385 if (gopt.auto_attrcache < 0) { in gopt_auto_attrcache()
396 gopt.auto_dir = xstrdup(val); in gopt_auto_dir()
418 gopt.flags |= CFM_AUTOFS_USE_LOFS; in gopt_autofs_use_lofs()
[all …]
H A Dget_args.c101 cpu, endian, gopt.arch, gopt.karch); in get_version_string()
104 gopt.op_sys_full, gopt.op_sys, gopt.op_sys_ver, gopt.op_sys_vendor, DISTRO_NAME); in get_version_string()
192 gopt.auto_dir = optarg; in get_args()
196 gopt.am_timeo = atoi(optarg); in get_args()
197 if (gopt.am_timeo <= 0) in get_args()
198 gopt.am_timeo = AM_TTL; in get_args()
202 gopt.sub_domain = optarg; in get_args()
206 gopt.karch = optarg; in get_args()
210 gopt.logfile = optarg; in get_args()
214 gopt.flags |= CFM_NORMALIZE_HOSTNAMES; in get_args()
[all …]
H A Damd.c52 struct amu_global_options gopt; /* where global options are stored */ variable
197 if (gopt.flags & CFM_PRINT_PID) { in daemon_mode()
198 if (STREQ(gopt.pid_file, "/dev/stdout")) { in daemon_mode()
206 f = fopen(gopt.pid_file, "w"); in daemon_mode()
211 fprintf(stderr, "cannot open %s (errno=%d)\n", gopt.pid_file, errno); in daemon_mode()
242 memset(&gopt, 0, sizeof(struct amu_global_options)); in init_global_options()
245 gopt.arch = HOST_ARCH; in init_global_options()
248 gopt.auto_dir = "/a"; in init_global_options()
251 gopt.auto_attrcache = 0; in init_global_options()
254 gopt.cluster = NULL; in init_global_options()
[all …]
H A Damfs_toplvl.c98 if (gopt.auto_attrcache == 0) { in set_auto_attrcache_timeout()
111 xsnprintf(preopts, l, ",%s=%d", MNTTAB_OPT_ACTIMEO, gopt.auto_attrcache); in set_auto_attrcache_timeout()
115 xsnprintf(preopts, l, ",%s=%d", MNTTAB_OPT_ACTDIRMIN, gopt.auto_attrcache); in set_auto_attrcache_timeout()
119 xsnprintf(preopts, l, ",%s=%d", MNTTAB_OPT_ACTDIRMAX, gopt.auto_attrcache); in set_auto_attrcache_timeout()
123 xsnprintf(preopts, l, ",%s=%d", MNTTAB_OPT_ACTREGMIN, gopt.auto_attrcache); in set_auto_attrcache_timeout()
127 xsnprintf(preopts, l, ",%s=%d", MNTTAB_OPT_ACTREGMAX, gopt.auto_attrcache); in set_auto_attrcache_timeout()
150 if (gopt.flags & CFM_FORCED_UNMOUNTS) { in amfs_toplvl_init()
217 if (gopt.amfs_auto_timeo[AMU_TYPE_TOPLVL] > 0) { in amfs_toplvl_mount()
219 MNTTAB_OPT_TIMEO, gopt.amfs_auto_timeo[AMU_TYPE_TOPLVL]); in amfs_toplvl_mount()
222 if (gopt.amfs_auto_retrans[AMU_TYPE_TOPLVL] > 0) { in amfs_toplvl_mount()
[all …]
H A Dinfo_nis.c111 gopt.nis_domain = xstrdup(default_domain); in determine_nis_domain()
158 if (!gopt.nis_domain) { in nis_reload()
177 error = yp_all(gopt.nis_domain, map, &cbinfo); in nis_reload()
203 error = yp_order(gopt.nis_domain, map, &order); in nis_isup()
217 error = yp_master(gopt.nis_domain, map, &master); in nis_isup()
259 if (!gopt.nis_domain) { in nis_search()
272 if (yp_order(gopt.nis_domain, map, &order)) in nis_search()
286 if ((time_t)order - *tp > gopt.am_timeo) { in nis_search()
304 res = yp_match(gopt.nis_domain, map, key, strlen(key), pval, &outlen); in nis_search()
338 if (!gopt.nis_domain) { in nis_init()
[all …]
H A Dinfo_ldap.c255 if (!gopt.map_type || !STREQ(gopt.map_type, AMD_LDAP_TYPE)) { in amu_ldap_init()
257 (gopt.map_type ? gopt.map_type : "null")); in amu_ldap_init()
273 aldh->hostent = string2he(gopt.ldap_hostports); in amu_ldap_init()
276 gopt.ldap_hostports ? gopt.ldap_hostports : "(null)", map); in amu_ldap_init()
337 if (gopt.ldap_proto_version > LDAP_VERSION2) { in amu_ldap_rebind()
338 if (!ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, &gopt.ldap_proto_version)) { in amu_ldap_rebind()
340 gopt.ldap_proto_version); in amu_ldap_rebind()
343 "%s:%d\n", gopt.ldap_proto_version, h->host, h->port); in amu_ldap_rebind()
353 if (gopt.ldap_cache_seconds > 0) { in amu_ldap_rebind()
355 ldap_enable_cache(ld, gopt.ldap_cache_seconds, gopt.ldap_cache_maxmem); in amu_ldap_rebind()
[all …]
H A Dinfo_hesiod.c112 dlog("Hesiod base is: %s\n", gopt.hesiod_base); in hesiod_search()
113 dlog("hesiod_search: hes_resolve(%s, %s)", hes_key, gopt.hesiod_base); in hesiod_search()
119 rvec = hesiod_resolve(hesiod_context, hes_key, gopt.hesiod_base); in hesiod_search()
121 rvec = hes_resolve(hes_key, gopt.hesiod_base); in hesiod_search()
H A Dsrvr_nfs.c576 int fs_version = nfs_valid_version(gopt.nfs_vers_ping) && in nfs_keepalive()
577 gopt.nfs_vers_ping < fs->fs_version ? gopt.nfs_vers_ping : fs->fs_version; in nfs_keepalive()
762 if (gopt.nfs_vers) { in find_nfs_srvr()
763 nfs_version = gopt.nfs_vers; in find_nfs_srvr()
767 if (gopt.nfs_proto) { in find_nfs_srvr()
768 nfs_proto = gopt.nfs_proto; in find_nfs_srvr()
786 if (hp && !(gopt.flags & CFM_NORMALIZE_HOSTNAMES)) in find_nfs_srvr()
874 gopt.nfs_vers); in find_nfs_srvr()
884 gopt.nfs_vers); in find_nfs_srvr()
1023 if (gopt.flags & CFM_NORMALIZE_HOSTNAMES) in find_nfs_srvr()
H A Dnfs_start.c150 do_mapc_reload = clocktime(NULL) + gopt.map_reload_interval; in do_select()
337 if (gopt.flags & CFM_RESTART_EXISTING_MOUNTS) in mount_automounter()
356 if (gopt.flags & CFM_RESTART_EXISTING_MOUNTS) in mount_automounter()
381 gopt.preferred_amq_port); in mount_automounter()
H A Dopts.c154 0, &gopt.arch, 0, TRUE },
162 0, &gopt.auto_dir, 0, FALSE },
168 0, &gopt.karch, 0, TRUE },
170 0, &gopt.cluster, 0, TRUE },
180 0, &gopt.op_sys, 0, TRUE },
182 0, &gopt.op_sys_ver, 0, TRUE },
184 0, &gopt.op_sys_full, 0, TRUE },
186 0, &gopt.op_sys_vendor, 0, TRUE },
983 if (!(gopt.flags & CFM_NORMALIZE_SLASHES)) in normalize_slash()
1448 if (!(gopt.flags & CFM_NORMALIZE_SLASHES)) in deslashify()
H A Dops_nfs.c512 if (gopt.flags & CFM_FULLY_QUALIFIED_HOSTS) { in make_nfs_auth()
519 if (gopt.flags & CFM_FULLY_QUALIFIED_HOSTS) { in make_nfs_auth()
834 if (gopt.amfs_auto_timeo[proto] > 0) in mount_nfs_fh()
836 MNTTAB_OPT_TIMEO, gopt.amfs_auto_timeo[proto]); in mount_nfs_fh()
837 if (gopt.amfs_auto_retrans[proto] > 0) in mount_nfs_fh()
839 MNTTAB_OPT_RETRANS, gopt.amfs_auto_retrans[proto]); in mount_nfs_fh()
996 gopt.flags & CFM_FORCED_UNMOUNTS && in nfs_umount()
H A Dautil.c130 if (gopt.flags & CFM_NORMALIZE_HOSTNAMES) { in host_normalize()
138 if (gopt.flags & CFM_DOMAIN_STRIP) { in host_normalize()
285 mp->am_timeo = gopt.am_timeo; /* otherwise use default timeout */ in am_mounted()
634 if (gopt.flags & CFM_FORCED_UNMOUNTS) { in amfs_mount()
H A Dinfo_exec.c144 while (fgets_timed(buf, size, fd, gopt.exec_map_timeout)) { in read_line()
224 while (fgets_timed(qanswer, sizeof(qanswer), fd, gopt.exec_map_timeout) && in exec_parse_qanswer()
H A Dmap.c419 mp->am_timeo = gopt.am_timeo; in init_map()
747 if (gopt.flags & CFM_UNMOUNT_ON_EXIT || mp->am_flags & AMF_AUTOFS) { in umount_exported()
1031 if (mp->am_timeo_w < 4 * gopt.am_timeo_w) in timeout_mp()
1032 mp->am_timeo_w += gopt.am_timeo_w; in timeout_mp()
H A Dsun2amd.c56 struct amu_global_options gopt; variable
H A Damd.h179 #define AMFS_AUTO_RETRANS(x) ((ALLOWED_MOUNT_TIME*10+5*gopt.amfs_auto_timeo[(x)])/gopt.amfs_auto_ti…
689 extern struct amu_global_options gopt; /* where global options are stored */
H A Damq_subr.c189 if (gopt.logfile && opt->as_str in amqproc_setopt_1_svc()
190 && STREQ(gopt.logfile, opt->as_str)) { in amqproc_setopt_1_svc()
H A Dnfs_prot_svc.c127 !(gopt.flags & CFM_NFS_INSECURE_PORT)) { in nfs_program_2()
136 if (gopt.flags & CFM_NFS_ANY_INTERFACE) { in nfs_program_2()
H A Dnfs_subr.c170 if (mp->am_timeo_w < 4 * gopt.am_timeo_w) in nfsproc_getattr_2_svc()
171 mp->am_timeo_w += gopt.am_timeo_w; in nfsproc_getattr_2_svc()
573 if ((gopt.flags & CFM_SHOW_STATFS_ENTRIES) && in nfsproc_statfs_2_svc()
1116 if (mp->am_timeo_w < 4 * gopt.am_timeo_w) in am_nfs3_getattr_3_svc()
1117 mp->am_timeo_w += gopt.am_timeo_w; in am_nfs3_getattr_3_svc()
1713 if ((gopt.flags & CFM_SHOW_STATFS_ENTRIES) && in am_nfs3_fsstat_3_svc()
H A Damq_svc.c166 if (gopt.flags & CFM_USE_TCPWRAPPERS) { in amq_program_1()
H A Damfs_generic.c1012 if (gopt.flags & CFM_SELECTORS_IN_DEFAULTS) { in amfs_parse_defaults()
1058 if (!(gopt.flags & CFM_SELECTORS_IN_DEFAULTS) && rvec[1]) { in amfs_parse_defaults()
/netbsd-src/external/bsd/am-utils/dist/conf/autofs/
H A Dautofs_linux.c173 unsigned long timeout = gopt.am_timeo; in autofs_mounted()
193 mp->am_autofs_ttl = clocktime(NULL) + gopt.am_timeo_w; in autofs_mounted()
590 if (bind_works && gopt.flags & CFM_AUTOFS_USE_LOFS) { in autofs_bind_umount()
652 if (bind_works && gopt.flags & CFM_AUTOFS_USE_LOFS) { in autofs_mount_fs()
897 mp->am_autofs_ttl = now + gopt.am_timeo_w; in autofs_timeout_mp()
H A Dautofs_solaris_v2_v3.c604 if (gopt.flags & CFM_AUTOFS_USE_LOFS || in autofs_mount_2_req()
1088 if (!(gopt.flags & CFM_AUTOFS_USE_LOFS)) in autofs_mount_fs()
1146 gopt.flags & CFM_AUTOFS_USE_LOFS) { in autofs_umount_fs()
1219 if (gopt.flags & CFM_AUTOFS_USE_LOFS || in autofs_mount_succeeded()
/netbsd-src/external/bsd/am-utils/dist/
H A DChangeLog1788 * amd/conf.c ({ropt,gopt}_sun_map_syntax): new function to parse
5655 * amd/info_ldap.c (amu_ldap_rebind): gopt.ldap_cache_seconds is
5950 timeout on the autofs mountpoint to cache_duration (gopt.am_timeo)
/netbsd-src/external/gpl3/gcc.old/dist/gcc/doc/
H A Dinvoke.texi1024 -mextern-sdata -mno-extern-sdata -mgpopt -mno-gopt @gol

12