Home
last modified time | relevance | path

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

123

/xnu-8792.41.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-8792.41.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_prf.c509 if (size > INT_MAX) { in vscnprintf()
510 return INT_MAX; in vscnprintf()
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.c1843 assert(size < INT_MAX); in kdbg_write_to_vnode()
1924 if (map_size >= INT_MAX) { in _write_legacy_header()
1988 assert(map_size < INT_MAX); in _write_legacy_header()
2007 assert(pad_size < INT_MAX); in _write_legacy_header()
2037 assert(pad_size < INT_MAX); in _write_legacy_header()
2365 .nkdthreads = (int)MIN(kd_mapcount, INT_MAX), in _kd_sysctl_internal()
H A Dsys_generic.c315 if (nbyte > INT_MAX) { in dofileread()
362 if (nbyte > INT_MAX) { in read_internal()
643 if (nbyte > INT_MAX) { in dofilewrite()
690 if (nbyte > INT_MAX) { in write_internal()
H A Dkern_core.c641 error = vn_rdwr(UIO_WRITE, vp, (caddr_t)header, (int)MIN(header_size, INT_MAX), (off_t)0, in coredump()
/xnu-8792.41.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-8792.41.9/bsd/sys/
H A Dkern_memorystatus_freeze.h75 #define FREEZE_PAGES_MAX (max_task_footprint_mb == 0 ? INT_MAX : (max_task_footprint_mb << (20 - …
77 …(memorystatus_entitled_max_task_footprint_mb == 0 ? INT_MAX : (memorystatus_entitled_max_task_foot…
/xnu-8792.41.9/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-8792.41.9/bsd/arm/
H A Dlimits.h76 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-8792.41.9/bsd/i386/
H A Dlimits.h77 #define INT_MAX 2147483647 /* max value for an int */ macro
/xnu-8792.41.9/iokit/IOKit/
H A DIOReportMacros.h353 *__nElements = INT_MAX; \
537 *__nElements = INT_MAX; \
699 *__nElements = INT_MAX; \
/xnu-8792.41.9/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()
854 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-8792.41.9/libsyscall/mach/
H A Dmach_error_string.c112 return (found)? ret : INT_MAX; in err_sparse_mapit()
/xnu-8792.41.9/bsd/vfs/
H A Dvfs_vnops.c1067 assert(read_len >= 0 && read_len <= INT_MAX); in vn_read_common()
1160 if (read_len < 0 || read_len > INT_MAX) { in vn_read()
1220 if (write_len < 0 || write_len > INT_MAX) { in vn_write()
1702 if (temp_nbytes > INT_MAX) { in vn_ioctl()
1703 *(int *)data = INT_MAX; in vn_ioctl()
2316 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-8792.41.9/bsd/dev/i386/
H A Dsysctl.c283 old_value = (int)MIN(nstime / NSEC_PER_SEC, INT_MAX); in panic_set_restart_timeout()
1010 old = (int)MIN(NMI_count, INT_MAX); in misc_nmis()

123