Home
last modified time | relevance | path

Searched refs:intval (Results 1 – 25 of 79) sorted by relevance

1234

/netbsd-src/external/ibm-public/postfix/dist/src/global/
H A Dmail_conf_int.c114 static int convert_mail_conf_int(const char *name, int *intval) in convert_mail_conf_int() argument
122 *intval = longval = strtol(strval, &end, 10); in convert_mail_conf_int()
123 if (*strval == 0 || *end != 0 || errno == ERANGE || longval != *intval) in convert_mail_conf_int()
132 void check_mail_conf_int(const char *name, int intval, int min, int max) in check_mail_conf_int() argument
134 if (min && intval < min) in check_mail_conf_int()
135 msg_fatal("invalid %s parameter value %d < %d", name, intval, min); in check_mail_conf_int()
136 if (max && intval > max) in check_mail_conf_int()
137 msg_fatal("invalid %s parameter value %d > %d", name, intval, max); in check_mail_conf_int()
144 int intval; in get_mail_conf_int() local
146 if (convert_mail_conf_int(name, &intval) == 0) in get_mail_conf_int()
[all …]
H A Dmail_conf_nint.c110 static int convert_mail_conf_nint(const char *name, int *intval) in convert_mail_conf_nint() argument
118 *intval = longval = strtol(strval, &end, 10); in convert_mail_conf_nint()
119 if (*strval == 0 || *end != 0 || errno == ERANGE || longval != *intval) in convert_mail_conf_nint()
128 static void check_mail_conf_nint(const char *name, int intval, int min, int max) in check_mail_conf_nint() argument
130 if (min && intval < min) in check_mail_conf_nint()
131 msg_fatal("invalid %s parameter value %d < %d", name, intval, min); in check_mail_conf_nint()
132 if (max && intval > max) in check_mail_conf_nint()
133 msg_fatal("invalid %s parameter value %d > %d", name, intval, max); in check_mail_conf_nint()
140 int intval; in get_mail_conf_nint() local
142 if (convert_mail_conf_nint(name, &intval) == 0) in get_mail_conf_nint()
[all …]
H A Dconv_time.c72 int intval; in conv_time() local
76 intval = longval = strtol(strval, &end, 10); in conv_time()
77 if (*strval == 0 || errno == ERANGE || longval != intval || intval < 0 in conv_time()
83 if (intval < INT_MAX / WEEK) { in conv_time()
84 *timval = intval * WEEK; in conv_time()
90 if (intval < INT_MAX / DAY) { in conv_time()
91 *timval = intval * DAY; in conv_time()
97 if (intval < INT_MAX / HOUR) { in conv_time()
98 *timval = intval * HOUR; in conv_time()
104 if (intval < INT_MAX / MINUTE) { in conv_time()
[all …]
H A Dmail_conf_time.c111 static int convert_mail_conf_time(const char *name, int *intval, int def_unit) in convert_mail_conf_time() argument
117 if (conv_time(strval, intval, def_unit) == 0) in convert_mail_conf_time()
124 void check_mail_conf_time(const char *name, int intval, int min, int max) in check_mail_conf_time() argument
126 if (min && intval < min) in check_mail_conf_time()
127 msg_fatal("invalid %s: %d (min %d)", name, intval, min); in check_mail_conf_time()
128 if (max && intval > max) in check_mail_conf_time()
129 msg_fatal("invalid %s: %d (max %d)", name, intval, max); in check_mail_conf_time()
157 int intval; in get_mail_conf_time() local
161 if (convert_mail_conf_time(name, &intval, def_unit) == 0) in get_mail_conf_time()
163 if (convert_mail_conf_time(name, &intval, def_unit) == 0) in get_mail_conf_time()
[all …]
H A Dcfg_parser.c159 int intval; in get_dict_int() local
164 intval = longval = strtol(strval, &end, 10); in get_dict_int()
165 if (*strval == 0 || *end != 0 || errno == ERANGE || longval != intval) in get_dict_int()
169 intval = defval; in get_dict_int()
170 if (min && intval < min) in get_dict_int()
172 parser->name, name, intval, min); in get_dict_int()
173 if (max && intval > max) in get_dict_int()
175 parser->name, name, intval, max); in get_dict_int()
176 return (intval); in get_dict_int()
198 int intval; in get_dict_bool() local
[all …]
H A Dmail_conf_bool.c88 static int convert_mail_conf_bool(const char *name, int *intval) in convert_mail_conf_bool() argument
96 *intval = 1; in convert_mail_conf_bool()
98 *intval = 0; in convert_mail_conf_bool()
110 int intval; in get_mail_conf_bool() local
112 if (convert_mail_conf_bool(name, &intval) == 0) in get_mail_conf_bool()
113 set_mail_conf_bool(name, intval = defval); in get_mail_conf_bool()
114 return (intval); in get_mail_conf_bool()
123 int intval; in get_mail_conf_bool_fn() local
125 if (convert_mail_conf_bool(name, &intval) == 0) in get_mail_conf_bool_fn()
126 set_mail_conf_bool(name, intval = defval()); in get_mail_conf_bool_fn()
[all …]
H A Dmail_conf_nbool.c89 static int convert_mail_conf_nbool(const char *name, int *intval) in convert_mail_conf_nbool() argument
97 *intval = 1; in convert_mail_conf_nbool()
99 *intval = 0; in convert_mail_conf_nbool()
111 int intval; in get_mail_conf_nbool() local
113 if (convert_mail_conf_nbool(name, &intval) == 0) in get_mail_conf_nbool()
115 if (convert_mail_conf_nbool(name, &intval) == 0) in get_mail_conf_nbool()
117 return (intval); in get_mail_conf_nbool()
126 int intval; in get_mail_conf_nbool_fn() local
128 if (convert_mail_conf_nbool(name, &intval) == 0) in get_mail_conf_nbool_fn()
130 if (convert_mail_conf_nbool(name, &intval) == 0) in get_mail_conf_nbool_fn()
[all …]
H A Dmail_version.c99 int intval; in mail_version_int() local
103 intval = longval = strtol(strval, &end, 10); in mail_version_int()
104 if (*strval == 0 || *end != 0 || errno == ERANGE || longval != intval) in mail_version_int()
105 intval = (-1); in mail_version_int()
106 return (intval); in mail_version_int()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/lit/lit/builtin_commands/
H A Dcat.py13 for intval in data:
14 if intval == 9 or intval == 10:
15 newdata.write(chr(intval))
17 if intval > 127:
18 intval = intval -128
20 if intval < 32:
22 newdata.write(chr(intval+64))
23 elif intval == 127:
26 newdata.write(chr(intval))
/netbsd-src/external/gpl2/xcvs/dist/lib/
H A Dgetdate.c332 long int intval; member
1747 pc->meridian = (yyvsp[(2) - (2)].intval);
1760 pc->meridian = (yyvsp[(4) - (4)].intval);
1775 pc->time_zone = time_zone_hhmm ((yyvsp[(4) - (5)].textintval), (yyvsp[(5) - (5)].intval));
1787 pc->meridian = (yyvsp[(6) - (6)].intval);
1801 pc->time_zone = time_zone_hhmm ((yyvsp[(6) - (7)].textintval), (yyvsp[(7) - (7)].intval));
1810 pc->local_isdst = (yyvsp[(1) - (1)].intval);
1811 pc->dsts_seen += (0 < (yyvsp[(1) - (1)].intval));
1821 pc->dsts_seen += (0 < (yyvsp[(1) - (2)].intval)) + 1;
1829 { pc->time_zone = (yyvsp[(1) - (1)].intval); ;}
[all …]
/netbsd-src/usr.bin/rdist/
H A Dgram.y71 int intval; member
77 %type <intval> OPTION, options
311 yylval.intval = COMPARE; in yylex()
315 yylval.intval = REMOVE; in yylex()
319 yylval.intval = VERIFY; in yylex()
323 yylval.intval = WHOLE; in yylex()
327 yylval.intval = YOUNGER; in yylex()
331 yylval.intval = FOLLOW; in yylex()
335 yylval.intval = IGNLNKS; in yylex()
/netbsd-src/sys/arch/arm/nxp/
H A Dimx6_platform.c185 fdt32_t intval[3]; in imx6sx_platform_bootstrap() local
222 intval[0] = cpu_to_fdt32(1); in imx6sx_platform_bootstrap()
223 intval[1] = cpu_to_fdt32(13); in imx6sx_platform_bootstrap()
224 intval[2] = cpu_to_fdt32(0xf01); in imx6sx_platform_bootstrap()
226 intval, sizeof(intval)); in imx6sx_platform_bootstrap()
/netbsd-src/external/bsd/pcc/dist/pcc/cc/cxxcom/
H A Dscan.l101 "class" { yylval.intval = CLNAME; notype=1; return(C_STRUCT); }
104 "const_cast" { yylval.intval = CONST_CAST; return(CXX_CASTS); }
110 "dynamic_cast" { yylval.intval = DYN_CAST; return(CXX_CASTS); }
125 "reinterpret_cast" { yylval.intval = REINT_CAST; return(CXX_CASTS); }
132 "static_cast" { yylval.intval = STATIC_CAST; return(CXX_CASTS); }
133 "struct" { yylval.intval = STNAME; notype=1; return(C_STRUCT); }
138 "union" { yylval.intval = UNAME; notype=1; return(C_STRUCT); }
/netbsd-src/usr.bin/patch/
H A Dutil.c289 static sig_t hupval, intval; in set_signals() local
295 intval = signal(SIGINT, SIG_IGN); in set_signals()
296 if (intval != SIG_IGN) in set_signals()
297 intval = my_exit; in set_signals()
300 signal(SIGINT, intval); in set_signals()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/h8300/
H A Dh8300.c2937 HOST_WIDE_INT intval = INTVAL (operands[2]); in output_plussi() local
2939 if (TARGET_H8300SX && (intval >= 1 && intval <= 7)) in output_plussi()
2941 if (TARGET_H8300SX && (intval >= -7 && intval <= -1)) in output_plussi()
2946 switch ((unsigned int) intval & 0xffffffff) in output_plussi()
2960 operands[2] = GEN_INT (intval >> 16); in output_plussi()
2965 operands[2] = GEN_INT (intval >> 16); in output_plussi()
2970 if ((intval & 0xffff) == 0) in output_plussi()
2972 operands[2] = GEN_INT (intval >> 16); in output_plussi()
3021 HOST_WIDE_INT intval = INTVAL (operands[2]); in compute_plussi_length() local
3023 if (TARGET_H8300SX && (intval >= 1 && intval <= 7)) in compute_plussi_length()
[all …]
/netbsd-src/sbin/iscsid/
H A Discsid_lists.c402 elem = find_id(&list[par->list_kind].list, par->intval); in search_list()
437 (!par->intval || in search_list()
438 p->addr.port == par->intval)) in search_list()
448 (!par->intval || in search_list()
449 t->addr.port == par->intval)) in search_list()
458 (!par->intval || i->port == par->intval)) in search_list()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/h8300/
H A Dh8300.cc2736 HOST_WIDE_INT intval = INTVAL (operands[2]); in output_plussi() local
2738 if (TARGET_H8300SX && (intval >= 1 && intval <= 7)) in output_plussi()
2740 if (TARGET_H8300SX && (intval >= -7 && intval <= -1)) in output_plussi()
2745 switch ((unsigned int) intval & 0xffffffff) in output_plussi()
2788 operands[2] = GEN_INT (intval >> 16); in output_plussi()
2798 operands[2] = GEN_INT (intval >> 16); in output_plussi()
2807 if ((intval & 0xffff) == 0) in output_plussi()
2809 operands[2] = GEN_INT (intval >> 16); in output_plussi()
2836 HOST_WIDE_INT intval = INTVAL (operands[2]); in compute_plussi_length() local
2838 if (TARGET_H8300SX && (intval >= 1 && intval <= 7)) in compute_plussi_length()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/fortran/
H A Dtrans-const.cc42 gfc_build_const (tree type, tree intval) in gfc_build_const() argument
50 val = convert (type, intval); in gfc_build_const()
54 val = build_real_from_int_cst (type, intval); in gfc_build_const()
58 val = build_real_from_int_cst (TREE_TYPE (type), intval); in gfc_build_const()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/fortran/
H A Dtrans-const.c42 gfc_build_const (tree type, tree intval) in gfc_build_const() argument
50 val = convert (type, intval); in gfc_build_const()
54 val = build_real_from_int_cst (type, intval); in gfc_build_const()
58 val = build_real_from_int_cst (TREE_TYPE (type), intval); in gfc_build_const()
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Ddsl_prop.c616 uint64_t zapobj, intval, dummy; in dsl_prop_set_sync_impl() local
626 isint = (dodefault(zfs_name_to_prop(propname), 8, 1, &intval) == 0); in dsl_prop_set_sync_impl()
723 VERIFY0(dsl_prop_get_int_ds(ds, propname, &intval)); in dsl_prop_set_sync_impl()
737 cbr->cbr_func(cbr->cbr_arg, intval); in dsl_prop_set_sync_impl()
742 ds->ds_dir->dd_object, propname, intval, TRUE); in dsl_prop_set_sync_impl()
746 "%lld", (longlong_t)intval); in dsl_prop_set_sync_impl()
874 uint64_t intval = fnvpair_value_uint64(pair); in dsl_props_set_sync_impl() local
876 source, sizeof (intval), 1, &intval, tx); in dsl_props_set_sync_impl()
H A Dzfs_ioctl.c2484 uint64_t intval; in zfs_prop_set_special() local
2503 VERIFY(0 == nvpair_value_uint64(pair, &intval)); in zfs_prop_set_special()
2507 err = dsl_dir_set_quota(dsname, source, intval); in zfs_prop_set_special()
2510 err = dsl_dataset_set_refquota(dsname, source, intval); in zfs_prop_set_special()
2514 if (intval == UINT64_MAX) { in zfs_prop_set_special()
2528 err = dsl_dir_set_reservation(dsname, source, intval); in zfs_prop_set_special()
2531 err = dsl_dataset_set_refreservation(dsname, source, intval); in zfs_prop_set_special()
2534 err = zvol_set_volsize(dsname, intval); in zfs_prop_set_special()
2543 err = zfs_set_version(zfsvfs, intval); in zfs_prop_set_special()
2546 if (err == 0 && intval >= ZPL_VERSION_USERSPACE) { in zfs_prop_set_special()
[all …]
/netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/
H A Dlibzfs_pool.c247 uint64_t intval; in zpool_get_prop() local
266 intval = zpool_get_prop_int(zhp, prop, &src); in zpool_get_prop()
267 (void) snprintf(buf, len, "%llu", intval); in zpool_get_prop()
302 intval = zpool_get_prop_int(zhp, prop, &src); in zpool_get_prop()
312 (u_longlong_t)intval); in zpool_get_prop()
314 (void) zfs_nicenum(intval, buf, len); in zpool_get_prop()
318 if (intval == 0) { in zpool_get_prop()
322 (u_longlong_t)intval); in zpool_get_prop()
324 (void) zfs_nicenum(intval, buf, len); in zpool_get_prop()
330 (u_longlong_t)intval); in zpool_get_prop()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/iq2000/
H A Dpredicates.md232 int intval;
237 intval = INTVAL (op);
239 return ((intval & ((unsigned)(intval) - 1)) == 0);
/netbsd-src/external/gpl3/gcc/dist/gcc/config/iq2000/
H A Dpredicates.md232 int intval;
237 intval = INTVAL (op);
239 return ((intval & ((unsigned)(intval) - 1)) == 0);
/netbsd-src/sys/dev/ic/
H A Dathn.c1973 uint32_t intval, next_tbtt, next_dtim; in athn_set_sta_timers() local
1981 intval = ic->ic_bss->ni_intval; in athn_set_sta_timers()
1983 next_tbtt = roundup(tsftu, intval); in athn_set_sta_timers()
1998 next_dtim = next_tbtt + rem_dtim_count * intval; in athn_set_sta_timers()
2001 AR_WRITE(sc, AR_BEACON_PERIOD, intval * IEEE80211_DUR_TU); in athn_set_sta_timers()
2002 AR_WRITE(sc, AR_DMA_BEACON_PERIOD, intval * IEEE80211_DUR_TU); in athn_set_sta_timers()
2024 AR_WRITE(sc, AR_TIM_PERIOD, intval * IEEE80211_DUR_TU); in athn_set_sta_timers()
2025 AR_WRITE(sc, AR_DTIM_PERIOD, dtim_period * intval * IEEE80211_DUR_TU); in athn_set_sta_timers()
2041 uint32_t intval, next_tbtt; in athn_set_hostap_timers() local
2044 intval = ic->ic_bss->ni_intval; in athn_set_hostap_timers()
[all …]

1234