Home
last modified time | relevance | path

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

123

/xnu-8020.121.3/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-8020.121.3/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.c521 if (size > INT_MAX) { in vscnprintf()
522 return INT_MAX; in vscnprintf()
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.c2203 assert(size < INT_MAX); in kdbg_write_to_vnode()
2352 if (map_size >= INT_MAX) { in _write_legacy_header()
2416 assert(map_size < INT_MAX); in _write_legacy_header()
2435 assert(pad_size < INT_MAX); in _write_legacy_header()
2466 assert(pad_size < INT_MAX); in _write_legacy_header()
2717 .nkdthreads = kd_mapcount < INT_MAX ? (int)kd_mapcount : in kdbg_control()
2718 INT_MAX, in kdbg_control()
H A Dkern_core.c579 error = vn_rdwr(UIO_WRITE, vp, (caddr_t)header, (int)MIN(header_size, INT_MAX), (off_t)0, in coredump()
/xnu-8020.121.3/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-8020.121.3/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.c750 VERIFY(ivoff <= INT_MAX); in esp_cbc_decrypt()
988 VERIFY(ivoff <= INT_MAX); in esp_cbc_encrypt()
/xnu-8020.121.3/osfmk/arm/ !
H A Dmachlimits.h82 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-8020.121.3/bsd/arm/ !
H A Dlimits.h76 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-8020.121.3/bsd/i386/ !
H A Dlimits.h77 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-8020.121.3/iokit/IOKit/ !
H A DIOReportMacros.h353 *__nElements = INT_MAX; \
537 *__nElements = INT_MAX; \
699 *__nElements = INT_MAX; \
/xnu-8020.121.3/libsyscall/mach/ !
H A Dmach_error_string.c112 return (found)? ret : INT_MAX; in err_sparse_mapit()
/xnu-8020.121.3/bsd/netinet/ !
H A Dmptcp.c335 VERIFY(i <= INT_MAX); in mptcp_reass()
358 VERIFY(i <= INT_MAX); in mptcp_reass()
542 VERIFY(todrop <= INT_MAX); in mptcp_input()
574 VERIFY((mp_tp->mpt_rcvnxt - mb_dsn) <= INT_MAX); in mptcp_input()
856 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-8020.121.3/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-8020.121.3/bsd/vfs/ !
H A Dvfs_vnops.c1025 assert(read_len >= 0 && read_len <= INT_MAX); in vn_read_common()
1118 if (read_len < 0 || read_len > INT_MAX) { in vn_read()
1178 if (write_len < 0 || write_len > INT_MAX) { in vn_write()
1647 if (temp_nbytes > INT_MAX) { in vn_ioctl()
1648 *(int *)data = INT_MAX; in vn_ioctl()
2246 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-8020.121.3/bsd/nfs/ !
H A Dkrpc_subr.c603 if (len > INT_MAX) { in krpc_call()

123