Home
last modified time | relevance | path

Searched refs:INT_MAX (Results 1 – 25 of 69) sorted by relevance

123

/xnu-12377.1.9/iokit/Kernel/
H A DIOReporterDefs.h56 #if (SIZE_T_MAX < INT_MAX)
65 } else if (__val > INT_MAX / (int)sizeof(__type)) { \
75 } else if (__val > INT_MAX / (int)sizeof(__type)) { \
H A DIOHistogramReporter.cpp209 if (_histogramSegmentsConfig[cnt].segment_bucket_count > INT_MAX in initWith()
210 || _histogramSegmentsConfig[cnt].base_bucket_width > INT_MAX) { in initWith()
H A DIOReporter.cpp290 if (oldNChannels < 0 || oldNChannels > INT_MAX - 1) { in addChannel()
451 if (newNChannels < 0 || newNChannels > INT_MAX / _channelDimension) { in handleSwapPrepare()
580 if (!_channelDimension || swapNChannels > INT_MAX / _channelDimension) { in handleSwapCleanup()
/xnu-12377.1.9/bsd/kern/
H A Dtty_subr.c191 if (cc > INT_MAX || (int)cc > count) { in q_to_b()
233 if (i > INT_MAX) { in ndqb()
253 if (count > INT_MAX) { in ndqb()
278 if (cc > INT_MAX || (int)cc > count) { in ndflush()
319 if (i > INT_MAX) { in putc()
422 if (cc > INT_MAX || (int)cc > count) { in b_to_q()
428 if (clp->c_cl - clp->c_cs > INT_MAX || cc > INT_MAX) { in b_to_q()
H A Dkern_clock.c325 if (ticks > INT_MAX) { in tvtohz()
326 ticks = INT_MAX; in tvtohz()
H A Dsubr_sbuf.c100 if (target_size > INT_MAX) { in sbuf_extendsize()
114 if (new_size > INT_MAX) { in sbuf_extendsize()
156 if (length > INT_MAX || flags & ~SBUF_USRFLAGMSK) { in sbuf_new()
985 SBUF_ASSERT_EQ(-1, sbuf_extend(s, INT_MAX));
1064 SBUF_ASSERT_EQ(-1, sbuf_bcat(s, "A", INT_MAX));
1196 SBUF_ASSERT_EQ(-1, sbuf_bcpy(s, "A", INT_MAX));
H A Dsubr_prf.c537 if (size > INT_MAX) { in vscnprintf()
538 return INT_MAX; in vscnprintf()
H A Ddecmpfs.c1692 countInt = (uplSize > INT_MAX) ? INT_MAX : (int)uplSize;
1883 } else if (uplOff > INT_MAX) {
1894 int icount = (count > INT_MAX) ? INT_MAX : (int)count;
H A Duipc_mbuf.c1153 m_maxlimit(MC_CL) = INT_MAX; in mbuf_table_init()
1166 m_maxlimit(MC_BIGCL) = INT_MAX; in mbuf_table_init()
1178 m_maxlimit(MC_MBUF) = INT_MAX; in mbuf_table_init()
1190 m_maxlimit(MC_MBUF_CL) = INT_MAX; in mbuf_table_init()
1200 m_maxlimit(MC_MBUF_BIGCL) = INT_MAX; in mbuf_table_init()
1213 m_maxlimit(MC_16KCL) = INT_MAX; in mbuf_table_init()
1222 m_maxlimit(MC_MBUF_16KCL) = INT_MAX; in mbuf_table_init()
H A Dsys_generic.c307 if (nbyte > INT_MAX) { in dofileread()
354 if (nbyte > INT_MAX) { in read_internal()
635 if (nbyte > INT_MAX) { in dofilewrite()
682 if (nbyte > INT_MAX) { in write_internal()
/xnu-12377.1.9/osfmk/i386/
H A Dmachlimits.h66 #define INT_MAX 2147483647 /* max value for an int */ macro
70 #define LONG_MAX INT_MAX /* max value for a long */
/xnu-12377.1.9/bsd/sys/
H A Dkern_memorystatus_freeze.h78 #define FREEZE_PAGES_MAX_DEFAULT (max_task_footprint_mb == 0 ? INT_MAX : (max_task_footprint_mb <…
80 …(memorystatus_entitled_max_task_footprint_mb == 0 ? INT_MAX : (memorystatus_entitled_max_task_foot…
/xnu-12377.1.9/bsd/netinet6/
H A Desp_rijndael.c197 VERIFY(ivoff <= INT_MAX); in esp_cbc_decrypt_aes()
399 VERIFY(ivoff <= INT_MAX); in esp_cbc_encrypt_aes()
797 VERIFY(off <= INT_MAX); in esp_gcm_encrypt_aes()
799 VERIFY(ivoff <= INT_MAX); in esp_gcm_encrypt_aes()
801 VERIFY(bodyoff <= INT_MAX); in esp_gcm_encrypt_aes()
956 VERIFY(off <= INT_MAX); in esp_gcm_decrypt_aes()
958 VERIFY(ivoff <= INT_MAX); in esp_gcm_decrypt_aes()
960 VERIFY(bodyoff <= INT_MAX); in esp_gcm_decrypt_aes()
H A Dah_input.c244 VERIFY((off + sizeof(struct ah) + sizoff + siz1) <= INT_MAX); in ah4_input()
688 VERIFY((sizeof(struct ah) + sizoff + siz1) <= INT_MAX); in ah6_input()
/xnu-12377.1.9/bsd/arm/
H A Dlimits.h104 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-12377.1.9/bsd/i386/
H A Dlimits.h105 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-12377.1.9/iokit/IOKit/
H A DIOReportMacros.h353 *__nElements = INT_MAX; \
537 *__nElements = INT_MAX; \
699 *__nElements = INT_MAX; \
/xnu-12377.1.9/bsd/netinet/
H A Dmptcp.c343 VERIFY(i <= INT_MAX); in mptcp_reass()
366 VERIFY(i <= INT_MAX); in mptcp_reass()
554 VERIFY(todrop <= INT_MAX); in mptcp_input()
586 VERIFY((mp_tp->mpt_rcvnxt - mb_dsn) <= INT_MAX); in mptcp_input()
865 int exp_rtt = INT_MAX, cheap_rtt = INT_MAX; in mptcp_get_subflow()
H A Dflow_divert.h34 #define FLOW_DIVERT_ORDER_LAST INT_MAX
H A Dip_compat.h659 # undef INT_MAX
689 # undef INT_MAX
/xnu-12377.1.9/libsyscall/mach/
H A Dmach_error_string.c112 return (found)? ret : INT_MAX; in err_sparse_mapit()
/xnu-12377.1.9/bsd/vfs/
H A Dvfs_vnops.c1115 assert(read_len >= 0 && read_len <= INT_MAX); in vn_read_common()
1208 if (read_len < 0 || read_len > INT_MAX) { in vn_read()
1268 if (write_len < 0 || write_len > INT_MAX) { in vn_write()
1748 if (temp_nbytes > INT_MAX) { in vn_ioctl()
1749 *(int *)data = INT_MAX; in vn_ioctl()
2362 if (read_len < 0 || read_len > INT_MAX) { in vnio_read()
H A Dvfs_disk_conditioner.c166 assert(delay_usec <= INT_MAX); in disk_conditioner_delay()
/xnu-12377.1.9/bsd/dev/i386/
H A Dsysctl.c283 old_value = (int)MIN(nstime / NSEC_PER_SEC, INT_MAX); in panic_set_restart_timeout()
1004 old = (int)MIN(NMI_count, INT_MAX); in misc_nmis()
/xnu-12377.1.9/security/
H A Dmac_base.c1039 if (outbuflen > INT_MAX) { in mac_externalize()
1040 outbuflen = INT_MAX; in mac_externalize()

123