Home
last modified time | relevance | path

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

123

/xnu-8019.80.24/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.cpp289 if (oldNChannels < 0 || oldNChannels > INT_MAX - 1) { in addChannel()
450 if (newNChannels < 0 || newNChannels > INT_MAX / _channelDimension) { in handleSwapPrepare()
579 if (!_channelDimension || swapNChannels > INT_MAX / _channelDimension) { in handleSwapCleanup()
/xnu-8019.80.24/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 Ddecmpfs.c1660 countInt = (uplSize > INT_MAX) ? INT_MAX : (int)uplSize;
1847 } else if (uplOff > INT_MAX) {
1858 int icount = (count > INT_MAX) ? INT_MAX : (int)count;
H A Dkdebug.c2169 assert(size < INT_MAX); in kdbg_write_to_vnode()
2318 if (map_size >= INT_MAX) { in kdbg_write_v1_header()
2382 assert(map_size < INT_MAX); in kdbg_write_v1_header()
2401 assert(pad_size < INT_MAX); in kdbg_write_v1_header()
2432 assert(pad_size < INT_MAX); in kdbg_write_v1_header()
2694 kd_bufinfo.nkdthreads = kd_mapcount < INT_MAX ? (int)kd_mapcount : in kdbg_control()
2695 INT_MAX; in kdbg_control()
H A Dkern_core.c578 error = vn_rdwr(UIO_WRITE, vp, (caddr_t)header, (int)MIN(header_size, INT_MAX), (off_t)0, in coredump()
/xnu-8019.80.24/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-8019.80.24/bsd/netinet6/
H A Desp_rijndael.c196 VERIFY(ivoff <= INT_MAX); in esp_cbc_decrypt_aes()
397 VERIFY(ivoff <= INT_MAX); in esp_cbc_encrypt_aes()
698 VERIFY(off <= INT_MAX); in esp_gcm_encrypt_aes()
699 VERIFY(ivoff <= INT_MAX); in esp_gcm_encrypt_aes()
700 VERIFY(bodyoff <= INT_MAX); in esp_gcm_encrypt_aes()
943 VERIFY(off <= INT_MAX); in esp_gcm_decrypt_aes()
944 VERIFY(ivoff <= INT_MAX); in esp_gcm_decrypt_aes()
945 VERIFY(bodyoff <= INT_MAX); in esp_gcm_decrypt_aes()
H A Dah_input.c241 VERIFY((off + sizeof(struct ah) + sizoff + siz1) <= INT_MAX); in ah4_input()
681 VERIFY((sizeof(struct ah) + sizoff + siz1) <= INT_MAX); in ah6_input()
H A Desp_core.c746 VERIFY(ivoff <= INT_MAX); in esp_cbc_decrypt()
984 VERIFY(ivoff <= INT_MAX); in esp_cbc_encrypt()
/xnu-8019.80.24/osfmk/arm/
H A Dmachlimits.h82 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-8019.80.24/bsd/arm/
H A Dlimits.h76 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-8019.80.24/bsd/i386/
H A Dlimits.h77 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-8019.80.24/iokit/IOKit/
H A DIOReportMacros.h353 *__nElements = INT_MAX; \
537 *__nElements = INT_MAX; \
699 *__nElements = INT_MAX; \
/xnu-8019.80.24/bsd/netinet/
H A Dmptcp.c324 VERIFY(i <= INT_MAX); in mptcp_reass()
347 VERIFY(i <= INT_MAX); in mptcp_reass()
530 VERIFY(todrop <= INT_MAX); in mptcp_input()
562 VERIFY((mp_tp->mpt_rcvnxt - mb_dsn) <= INT_MAX); in mptcp_input()
844 int exp_rtt = INT_MAX, cheap_rtt = INT_MAX; in mptcp_get_subflow()
H A Dip_compat.h659 # undef INT_MAX
689 # undef INT_MAX
/xnu-8019.80.24/libsyscall/mach/
H A Dmach_error_string.c112 return (found)? ret : INT_MAX; in err_sparse_mapit()
/xnu-8019.80.24/bsd/sys/
H A Dkern_memorystatus_freeze.h73 #define FREEZE_PAGES_MAX (max_task_footprint_mb == 0 ? INT_MAX : (max_task_footprint_mb << (20 - …
/xnu-8019.80.24/bsd/vfs/
H A Dvfs_disk_conditioner.c166 assert(delay_usec <= INT_MAX); in disk_conditioner_delay()
H A Dvfs_vnops.c1029 if (read_len < 0 || read_len > INT_MAX) { in vn_read()
1168 if (write_len < 0 || write_len > INT_MAX) { in vn_write()
1637 if (temp_nbytes > INT_MAX) { in vn_ioctl()
1638 *(int *)data = INT_MAX; in vn_ioctl()
/xnu-8019.80.24/bsd/nfs/
H A Dkrpc_subr.c603 if (len > INT_MAX) { in krpc_call()
/xnu-8019.80.24/bsd/dev/i386/
H A Dsysctl.c284 old_value = (int)MIN(nstime / NSEC_PER_SEC, INT_MAX); in panic_set_restart_timeout()
1011 old = (int)MIN(NMI_count, INT_MAX); in misc_nmis()

123