Lines Matching refs:value

144     char   *value;  local
158 if (*(value = curr_opt + strcspn(curr_opt, whitespace_eq))) {
159 if (*value != '=') {
160 *value++ = 0;
161 value += strspn(value, whitespace);
163 if (*value == '=') {
164 *value++ = 0;
165 value += strspn(value, whitespace);
168 if (*value == 0)
169 value = 0;
187 if (!value && need_arg(op))
189 if (value && !permit_arg(op))
193 if (value && expand_arg(op))
194 value = chop_string(percent_x(bf, sizeof(bf), value, request));
196 syslog(LOG_DEBUG, "option: %s %s", key, value ? value : "");
197 (*(op->func)) (value, request);
205 static void allow_option(value, request) in allow_option() argument
206 char *value; in allow_option()
216 static void deny_option(value, request) in deny_option() argument
217 char *value; in deny_option()
225 static void banners_option(value, request) in banners_option() argument
226 char *value; in banners_option()
236 sprintf(path, "%s/%s", value, eval_daemon(request));
248 } else if (stat(value, &st) < 0) {
249 tcpd_warn("%s: %m", value);
257 static void group_option(value, request) in group_option() argument
258 char *value; in group_option()
264 if ((grp = getgrnam(value)) == 0)
265 tcpd_jump("unknown group: \"%s\"", value);
269 tcpd_jump("setgid(%s): %m", value);
276 static void user_option(value, request) in user_option() argument
277 char *value; in user_option()
284 if ((group = split_at(value, '.')) != 0)
286 if ((pwd = getpwnam(value)) == 0)
287 tcpd_jump("unknown user: \"%s\"", value);
291 tcpd_jump("setuid(%s): %m", value);
298 static void umask_option(value, request) in umask_option() argument
299 char *value; in umask_option()
305 if (sscanf(value, "%o%c", &mask, &junk) != 1 || (mask & 0777) != mask)
306 tcpd_jump("bad umask value: \"%s\"", value);
314 static void spawn_option(value, request) in spawn_option() argument
315 char *value; in spawn_option()
319 shell_cmd(value);
326 static void linger_option(value, request) in linger_option() argument
327 char *value; in linger_option()
333 if (sscanf(value, "%d%c", &linger.l_linger, &junk) != 1
335 tcpd_jump("bad linger value: \"%s\"", value);
348 static void keepalive_option(value, request) in keepalive_option() argument
349 char *value; in keepalive_option()
363 static void nice_option(value, request) in nice_option() argument
364 char *value; in nice_option()
370 if (value != 0 && sscanf(value, "%d%c", &niceval, &junk) != 1)
371 tcpd_jump("bad nice value: \"%s\"", value);
378 static void twist_option(value, request) in twist_option() argument
379 char *value; in twist_option()
390 syslog(deny_severity, "twist %s to %s", eval_client(request), value);
403 (void) execl("/bin/sh", "sh", "-c", value, (char *) 0);
416 static void rfc931_option(value, request) in rfc931_option() argument
417 char *value; in rfc931_option()
423 if (value != 0) {
424 if (sscanf(value, "%d%c", &timeout, &junk) != 1 || timeout <= 0)
425 tcpd_jump("bad rfc931 timeout: \"%s\"", value);
435 static void setenv_option(value, request) in setenv_option() argument
436 char *value; in setenv_option()
442 if (*(var_value = value + strcspn(value, whitespace)))
444 if (setenv(chop_string(value), chop_string(var_value), 1))
455 int value; member
551 return (t->value);
560 static void severity_option(value, request) in severity_option() argument
561 char *value; in severity_option()
564 char *level = split_at(value, '.');
567 severity_map(log_fac, value) | severity_map(log_sev, level) :
568 severity_map(log_sev, value);