Lines Matching refs:value

142     char   *value;  local
156 if (*(value = curr_opt + strcspn(curr_opt, whitespace_eq))) {
157 if (*value != '=') {
158 *value++ = 0;
159 value += strspn(value, whitespace);
161 if (*value == '=') {
162 *value++ = 0;
163 value += strspn(value, whitespace);
166 if (*value == 0)
167 value = 0;
185 if (!value && need_arg(op))
187 if (value && !permit_arg(op))
191 if (value && expand_arg(op))
192 value = chop_string(percent_x(bf, sizeof(bf), value, request));
194 syslog(LOG_DEBUG, "option: %s %s", key, value ? value : "");
195 (*(op->func)) (value, request);
203 static void allow_option(value, request) in allow_option() argument
204 char *value; in allow_option()
214 static void deny_option(value, request) in deny_option() argument
215 char *value; in deny_option()
223 static void banners_option(value, request) in banners_option() argument
224 char *value; in banners_option()
234 sprintf(path, "%s/%s", value, eval_daemon(request));
246 } else if (stat(value, &st) < 0) {
247 tcpd_warn("%s: %m", value);
255 static void group_option(value, request) in group_option() argument
256 char *value; in group_option()
262 if ((grp = getgrnam(value)) == 0)
263 tcpd_jump("unknown group: \"%s\"", value);
267 tcpd_jump("setgid(%s): %m", value);
274 static void user_option(value, request) in user_option() argument
275 char *value; in user_option()
282 if ((group = split_at(value, '.')) != 0)
284 if ((pwd = getpwnam(value)) == 0)
285 tcpd_jump("unknown user: \"%s\"", value);
289 tcpd_jump("setuid(%s): %m", value);
296 static void umask_option(value, request) in umask_option() argument
297 char *value; in umask_option()
303 if (sscanf(value, "%o%c", &mask, &junk) != 1 || (mask & 0777) != mask)
304 tcpd_jump("bad umask value: \"%s\"", value);
312 static void spawn_option(value, request) in spawn_option() argument
313 char *value; in spawn_option()
317 shell_cmd(value);
324 static void linger_option(value, request) in linger_option() argument
325 char *value; in linger_option()
331 if (sscanf(value, "%d%c", &linger.l_linger, &junk) != 1
333 tcpd_jump("bad linger value: \"%s\"", value);
346 static void keepalive_option(value, request) in keepalive_option() argument
347 char *value; in keepalive_option()
361 static void nice_option(value, request) in nice_option() argument
362 char *value; in nice_option()
368 if (value != 0 && sscanf(value, "%d%c", &niceval, &junk) != 1)
369 tcpd_jump("bad nice value: \"%s\"", value);
376 static void twist_option(value, request) in twist_option() argument
377 char *value; in twist_option()
388 syslog(deny_severity, "twist %s to %s", eval_client(request), value);
401 (void) execl("/bin/sh", "sh", "-c", value, (char *) 0);
414 static void rfc931_option(value, request) in rfc931_option() argument
415 char *value; in rfc931_option()
421 if (value != 0) {
422 if (sscanf(value, "%d%c", &timeout, &junk) != 1 || timeout <= 0)
423 tcpd_jump("bad rfc931 timeout: \"%s\"", value);
433 static void setenv_option(value, request) in setenv_option() argument
434 char *value; in setenv_option()
440 if (*(var_value = value + strcspn(value, whitespace)))
442 if (setenv(chop_string(value), chop_string(var_value), 1))
453 int value; member
549 return (t->value);
558 static void severity_option(value, request) in severity_option() argument
559 char *value; in severity_option()
562 char *level = split_at(value, '.');
565 severity_map(log_fac, value) | severity_map(log_sev, level) :
566 severity_map(log_sev, value);