| /freebsd-12.1/contrib/sendmail/libsm/ |
| H A D | heap.c | 147 void *newptr; local 152 return newptr; 174 void *newptr; local 179 if (newptr == NULL) 181 return newptr; 527 void *newptr; local 535 return newptr; 568 return newptr; 595 void *newptr; local 605 return newptr; [all …]
|
| /freebsd-12.1/crypto/openssh/openbsd-compat/ |
| H A D | recallocarray.c | 41 void *newptr; in recallocarray() local 73 newptr = malloc(newsize); in recallocarray() 74 if (newptr == NULL) in recallocarray() 78 memcpy(newptr, ptr, oldsize); in recallocarray() 79 memset((char *)newptr + oldsize, 0, newsize - oldsize); in recallocarray() 81 memcpy(newptr, ptr, newsize); in recallocarray() 86 return newptr; in recallocarray()
|
| /freebsd-12.1/contrib/mandoc/ |
| H A D | compat_recallocarray.c | 52 void *newptr; in recallocarray() local 84 newptr = malloc(newsize); in recallocarray() 85 if (newptr == NULL) in recallocarray() 89 memcpy(newptr, ptr, oldsize); in recallocarray() 90 memset((char *)newptr + oldsize, 0, newsize - oldsize); in recallocarray() 92 memcpy(newptr, ptr, newsize); in recallocarray() 105 return newptr; in recallocarray()
|
| /freebsd-12.1/sys/contrib/octeon-sdk/ |
| H A D | cvmx-fpa.h | 257 cvmx_addr_t newptr; in cvmx_fpa_free_nosync() local 258 newptr.u64 = cvmx_ptr_to_phys(ptr); in cvmx_fpa_free_nosync() 259 newptr.sfilldidspace.didspace = CVMX_ADDR_DIDSPACE(CVMX_FULL_DID(CVMX_OCT_DID_FPA,pool)); in cvmx_fpa_free_nosync() 262 cvmx_write_io(newptr.u64, num_cache_lines); in cvmx_fpa_free_nosync() 276 cvmx_addr_t newptr; in cvmx_fpa_free() local 277 newptr.u64 = cvmx_ptr_to_phys(ptr); in cvmx_fpa_free() 278 newptr.sfilldidspace.didspace = CVMX_ADDR_DIDSPACE(CVMX_FULL_DID(CVMX_OCT_DID_FPA,pool)); in cvmx_fpa_free() 284 cvmx_write_io(newptr.u64, num_cache_lines); in cvmx_fpa_free()
|
| /freebsd-12.1/bin/setfacl/ |
| H A D | util.c | 50 void *newptr; in zrealloc() local 52 newptr = realloc(ptr, size); in zrealloc() 53 if (newptr == NULL) in zrealloc() 55 return (newptr); in zrealloc()
|
| /freebsd-12.1/sys/kern/ |
| H A D | kern_sysctl.c | 228 req.newptr = data; in sysctl_load_tunable_by_oid_locked() 235 req.newptr = data; in sysctl_load_tunable_by_oid_locked() 242 req.newptr = data; in sysctl_load_tunable_by_oid_locked() 249 req.newptr = data; in sysctl_load_tunable_by_oid_locked() 256 req.newptr = data; in sysctl_load_tunable_by_oid_locked() 263 req.newptr = data; in sysctl_load_tunable_by_oid_locked() 270 req.newptr = data; in sysctl_load_tunable_by_oid_locked() 277 req.newptr = data; in sysctl_load_tunable_by_oid_locked() 284 req.newptr = data; in sysctl_load_tunable_by_oid_locked() 291 req.newptr = data; in sysctl_load_tunable_by_oid_locked() [all …]
|
| H A D | kern_osd.c | 98 void *newptr; in osd_register() local 130 newptr = malloc(sizeof(osd_destructor_t) * in osd_register() 133 bcopy(osdm[type].osd_destructors, newptr, in osd_register() 136 osdm[type].osd_destructors = newptr; in osd_register() 229 void **newptr; in osd_set_reserved() local 250 newptr = rsv; in osd_set_reserved() 252 memcpy(newptr, osd->osd_slots, in osd_set_reserved() 257 newptr = realloc(osd->osd_slots, sizeof(void *) * slot, in osd_set_reserved() 259 if (newptr == NULL) { in osd_set_reserved() 276 osd->osd_slots = newptr; in osd_set_reserved()
|
| H A D | subr_kdb.c | 159 if (error != 0 || req->newptr == NULL) in kdb_sysctl_current() 176 if (error != 0 || req->newptr == NULL) in kdb_sysctl_enter() 194 if (error != 0 || req->newptr == NULL) in kdb_sysctl_panic() 211 if (error != 0 || req->newptr == NULL) in kdb_sysctl_trap() 227 if (error != 0 || req->newptr == NULL) in kdb_sysctl_trap_code() 255 if (error != 0 || req->newptr == NULL) in kdb_sysctl_stack_overflow()
|
| H A D | kern_ktr.c | 124 if (error != 0 || req->newptr == NULL) in sysctl_debug_ktr_cpumask() 144 if (error || !req->newptr) in sysctl_debug_ktr_clear() 169 if (error || !req->newptr) in sysctl_debug_ktr_mask() 217 if (error || !req->newptr) in sysctl_debug_ktr_entries() 284 if (error || !req->newptr) in sysctl_debug_ktr_alq_enable()
|
| H A D | kern_mib.c | 306 if (!(pr->pr_allow & PR_ALLOW_SET_HOSTNAME) && req->newptr) in sysctl_hostname() 318 if (req->newptr != NULL && error == 0) { in sysctl_hostname() 374 if (error || !req->newptr) in sysctl_kern_securelvl() 423 if (!(pr->pr_allow & PR_ALLOW_SET_HOSTNAME) && req->newptr) in sysctl_hostid() 428 if (req->newptr != NULL && error == 0) { in sysctl_hostid() 572 if (error || !req->newptr) in sysctl_kern_pid_max()
|
| H A D | kern_poll.c | 119 if (error || !req->newptr ) in poll_burst_max_sysctl() 143 if (error || !req->newptr ) in poll_each_burst_sysctl() 173 if (error || !req->newptr ) in user_frac_sysctl() 196 if (error || !req->newptr ) in reg_frac_sysctl()
|
| H A D | subr_counter.c | 84 if (error || !req->newptr) in sysctl_handle_counter_u64() 108 if (error || !req->newptr) in sysctl_handle_counter_u64_array()
|
| /freebsd-12.1/sys/netgraph/bluetooth/common/ |
| H A D | ng_bluetooth.c | 79 if (error == 0 && req->newptr != NULL) { in bluetooth_set_hci_command_timeout_value() 103 if (error == 0 && req->newptr != NULL) { in bluetooth_set_hci_connect_timeout_value() 138 if (error == 0 && req->newptr != NULL) { in bluetooth_set_l2cap_rtx_timeout_value() 163 if (error == 0 && req->newptr != NULL) { in bluetooth_set_l2cap_ertx_timeout_value() 241 if (error == 0 && req->newptr != NULL) { in bluetooth_set_sco_rtx_timeout_value()
|
| /freebsd-12.1/sys/dev/ath/ |
| H A D | if_ath_sysctl.c | 122 if (error || !req->newptr) in ath_sysctl_slottime() 148 if (error || !req->newptr) in ath_sysctl_acktimeout() 174 if (error || !req->newptr) in ath_sysctl_ctstimeout() 195 if (error || !req->newptr) in ath_sysctl_softled() 216 if (error || !req->newptr) in ath_sysctl_ledpin() 235 if (error || !req->newptr) in ath_sysctl_hardled() 298 if (!error && req->newptr) in ath_sysctl_rxantenna() 322 if (error || !req->newptr) in ath_sysctl_diversity() 356 if (error || !req->newptr) in ath_sysctl_diag() 381 if (error || !req->newptr) in ath_sysctl_tpscale() [all …]
|
| /freebsd-12.1/sys/arm/broadcom/bcm2835/ |
| H A D | bcm2835_pwm.c | 209 if (error != 0 || req->newptr == NULL) in bcm_pwm_mode_proc() 227 if (error != 0 || req->newptr == NULL) in bcm_pwm_freq_proc() 243 if (error != 0 || req->newptr == NULL) in bcm_pwm_period_proc() 258 if (error != 0 || req->newptr == NULL) in bcm_pwm_ratio_proc() 293 if (error != 0 || req->newptr == NULL) in bcm_pwm_mode2_proc() 309 if (error != 0 || req->newptr == NULL) in bcm_pwm_period2_proc() 324 if (error != 0 || req->newptr == NULL) in bcm_pwm_ratio2_proc() 344 if (error != 0 || req->newptr == NULL) in bcm_pwm_reg_proc()
|
| H A D | bcm2835_cpufreq.c | 721 if (err || !req->newptr) /* error || read request */ in sysctl_bcm2835_cpufreq_arm_freq() 753 if (err || !req->newptr) /* error || read request */ in sysctl_bcm2835_cpufreq_core_freq() 786 if (err || !req->newptr) /* error || read request */ in sysctl_bcm2835_cpufreq_sdram_freq() 818 if (err || !req->newptr) /* error || read request */ in sysctl_bcm2835_cpufreq_turbo() 854 if (err || !req->newptr) /* error || read request */ in sysctl_bcm2835_cpufreq_voltage_core() 890 if (err || !req->newptr) /* error || read request */ in sysctl_bcm2835_cpufreq_voltage_sdram_c() 926 if (err || !req->newptr) /* error || read request */ in sysctl_bcm2835_cpufreq_voltage_sdram_i() 962 if (err || !req->newptr) /* error || read request */ in sysctl_bcm2835_cpufreq_voltage_sdram_p() 991 if (!req->newptr) in sysctl_bcm2835_cpufreq_voltage_sdram() 1046 if (err || !req->newptr) /* error || read request */ in sysctl_bcm2835_cpufreq_temperature() [all …]
|
| /freebsd-12.1/contrib/libarchive/libarchive/ |
| H A D | archive_cmdline.c | 168 char *newptr; in cmdline_set_path() local 170 newptr = realloc(data->path, strlen(path) + 1); in cmdline_set_path() 171 if (newptr == NULL) in cmdline_set_path() 173 data->path = newptr; in cmdline_set_path()
|
| /freebsd-12.1/usr.bin/logins/ |
| H A D | logins.c | 96 void *newptr; in xmalloc() local 98 if ((newptr = malloc(size)) == NULL) in xmalloc() 100 return (newptr); in xmalloc() 106 void *newptr; in xrealloc() local 108 if ((newptr = realloc(ptr, size)) == NULL) in xrealloc() 110 return (newptr); in xrealloc()
|
| /freebsd-12.1/sys/dev/ixgbe/ |
| H A D | if_bypass.c | 173 if ((error != 0) || (req->newptr == NULL)) in ixgbe_bp_set_state() 234 if ((error) || (req->newptr == NULL)) in ixgbe_bp_timeout() 276 if ((error) || (req->newptr == NULL)) in ixgbe_bp_main_on() 318 if ((error) || (req->newptr == NULL)) in ixgbe_bp_main_off() 360 if ((error) || (req->newptr == NULL)) in ixgbe_bp_aux_on() 402 if ((error) || (req->newptr == NULL)) in ixgbe_bp_aux_off() 456 if ((error) || (req->newptr == NULL)) in ixgbe_bp_wd_set() 514 if ((error) || (req->newptr == NULL)) in ixgbe_bp_wd_reset() 564 if ((error) || (req->newptr == NULL)) in ixgbe_bp_log()
|
| /freebsd-12.1/sys/netinet/cc/ |
| H A D | cc_hd.c | 188 if (error == 0 && req->newptr != NULL) { in hd_pmax_handler() 206 if (error == 0 && req->newptr != NULL) { in hd_qmin_handler() 224 if (error == 0 && req->newptr != NULL) { in hd_qthresh_handler()
|
| /freebsd-12.1/sys/dev/liquidio/ |
| H A D | lio_sysctl.c | 683 if ((err) || (req->newptr == NULL)) in lio_get_set_pauseparam() 1058 if ((err) || (req->newptr == NULL)) in lio_set_ringparam() 1082 if ((err) || (req->newptr == NULL)) in lio_set_ringparam() 1218 if ((err) || (req->newptr == NULL)) in lio_set_channels() 1269 if ((err) || (req->newptr == NULL)) in lio_get_set_fwmsglevel() 1296 if ((err) || (req->newptr == NULL)) in lio_set_stats_interval() 1727 if ((err) || (req->newptr == NULL)) in lio_get_set_intr_coalesce() 1741 if ((err) || (req->newptr == NULL)) in lio_get_set_intr_coalesce() 1755 if ((err) || (req->newptr == NULL)) in lio_get_set_intr_coalesce() 1769 if ((err) || (req->newptr == NULL)) in lio_get_set_intr_coalesce() [all …]
|
| /freebsd-12.1/sys/dev/bnxt/ |
| H A D | bnxt_sysctl.c | 1000 if (rc || !req->newptr) in bnxt_rx_stall_sysctl() 1025 if (rc || !req->newptr) in bnxt_vlan_strip_sysctl() 1050 if (rc || !req->newptr) in bnxt_set_coal_rx_usecs() 1070 if (rc || !req->newptr) in bnxt_set_coal_rx_frames() 1090 if (rc || !req->newptr) in bnxt_set_coal_rx_usecs_irq() 1110 if (rc || !req->newptr) in bnxt_set_coal_rx_frames_irq() 1130 if (rc || !req->newptr) in bnxt_set_coal_tx_usecs() 1150 if (rc || !req->newptr) in bnxt_set_coal_tx_frames() 1170 if (rc || !req->newptr) in bnxt_set_coal_tx_usecs_irq() 1190 if (rc || !req->newptr) in bnxt_set_coal_tx_frames_irq() [all …]
|
| /freebsd-12.1/sys/dev/iicbus/ |
| H A D | lm75.c | 445 if (error != 0 || req->newptr == NULL) in lm75_temp_sysctl() 470 if (error != 0 || req->newptr == NULL) in lm75_faults_sysctl() 506 if (error != 0 || req->newptr == NULL) in lm75_mode_sysctl() 540 if (error != 0 || req->newptr == NULL) in lm75_pol_sysctl() 567 if (error != 0 || req->newptr == NULL) in lm75_shutdown_sysctl()
|
| H A D | ads111x.c | 271 if (err != 0 || req->newptr == NULL) in ads111x_sysctl_gainidx() 293 if (err != 0 || req->newptr == NULL) in ads111x_sysctl_rateidx() 336 if (err != 0 || req->newptr == NULL) in ads111x_sysctl_config() 355 if (err != 0 || req->newptr == NULL) in ads111x_sysctl_lothresh() 374 if (err != 0 || req->newptr == NULL) in ads111x_sysctl_hithresh()
|
| /freebsd-12.1/sys/net/ |
| H A D | if_mib.c | 119 if (error || !req->newptr) in sysctl_ifdata() 140 if (error == 0 && req->newptr != NULL) in sysctl_ifdata()
|