/freebsd/tools/test/stress2/misc/ |
H A D | altbufferflushes.sh | 87 old=`sysctl vfs.altbufferflushes | awk '{print $NF}'` 95 [ $new -ne $old ] && echo "vfs.altbufferflushes changed from $old to $new."
|
H A D | overcommit2.sh | 38 old=`sysctl -n vm.overcommit` 39 [ $old -eq 1 ] && exit 44 trap "sysctl vm.overcommit=$old" EXIT INT
|
H A D | recursiveflushes.sh | 48 old=`sysctl vfs.recursiveflushes | awk '{print $NF}'` 68 [ $old != $new ] && echo "vfs.recursiveflushes changed from $old to $new"
|
/freebsd/sys/i386/include/ |
H A D | atomic.h | 848 #define atomic_cmpset_ptr(dst, old, new) \ argument 849 atomic_cmpset_int((volatile u_int *)(dst), (u_int)(old), (u_int)(new)) 850 #define atomic_cmpset_acq_ptr(dst, old, new) \ argument 851 atomic_cmpset_acq_int((volatile u_int *)(dst), (u_int)(old), \ 853 #define atomic_cmpset_rel_ptr(dst, old, new) \ argument 854 atomic_cmpset_rel_int((volatile u_int *)(dst), (u_int)(old), \ 856 #define atomic_fcmpset_ptr(dst, old, new) \ argument 858 #define atomic_fcmpset_acq_ptr(dst, old, new) \ argument 859 atomic_fcmpset_acq_int((volatile u_int *)(dst), (u_int *)(old), \ 861 #define atomic_fcmpset_rel_ptr(dst, old, new) \ argument [all …]
|
/freebsd/usr.bin/top/ |
H A D | utils.c | 177 percentages(int cnt, int *out, long *new, long *old, long *diffs) in percentages() argument 192 if ((change = *new - *old) < 0) in percentages() 196 ((unsigned long)*new-(unsigned long)*old); in percentages() 199 *old++ = *new++; in percentages()
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | pgp | 57 >0 byte 0x67 Reserved (old) 59 >0 byte 0x69 Signature (old) 62 >0 byte 0x6c Secret-Key (old) 63 >0 byte 0x6d Public-Key (old) 64 >0 byte 0x6e Secret-Subkey (old) 67 >0 byte 0x71 Marker (old) 68 >0 byte 0x72 Literal Data (old) 69 >0 byte 0x73 Trust (old) 70 >0 byte 0x74 User ID (old) 71 >0 byte 0x75 Public-Subkey (old) [all …]
|
/freebsd/lib/libc/locale/ |
H A D | setlocale.c | 227 char *old = current_categories[category]; in loadlocale() local 267 if (strcmp(new, old) == 0) in loadlocale() 268 return (old); in loadlocale() 271 (void)strcpy(old, new); in loadlocale() 273 return (old); in loadlocale()
|
/freebsd/sys/riscv/sifive/ |
H A D | sifive_uart.c | 291 uint32_t new, old, sig; in sfuart_bus_getsig() local 294 old = sc->sc_hwsig; in sfuart_bus_getsig() 295 sig = old; in sfuart_bus_getsig() 300 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in sfuart_bus_getsig() 308 uint32_t new, old; in sfuart_bus_setsig() local 311 old = sc->sc_hwsig; in sfuart_bus_setsig() 312 new = old; in sfuart_bus_setsig() 319 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in sfuart_bus_setsig()
|
/freebsd/contrib/tcsh/ |
H A D | tc.sig.c | 133 int *old; in pintr_disabled_restore() local 135 old = xold; in pintr_disabled_restore() 136 pintr_disabled = *old; in pintr_disabled_restore()
|
/freebsd/sys/contrib/libfdt/ |
H A D | fdt_rw.c | 407 static void fdt_packblocks_(const char *old, char *new, in fdt_packblocks_() argument 416 memmove(new + mem_rsv_off, old + fdt_off_mem_rsvmap(old), mem_rsv_size); in fdt_packblocks_() 419 memmove(new + struct_off, old + fdt_off_dt_struct(old), struct_size); in fdt_packblocks_() 423 memmove(new + strings_off, old + fdt_off_dt_strings(old), in fdt_packblocks_() 424 fdt_size_dt_strings(old)); in fdt_packblocks_() 426 fdt_set_size_dt_strings(new, fdt_size_dt_strings(old)); in fdt_packblocks_()
|
/freebsd/sys/dev/acpica/Osd/ |
H A D | OsdSynch.c | 610 uint32_t new, old; in acpi_acquire_global_lock() local 613 old = *lock; in acpi_acquire_global_lock() 614 new = (old & ~ACPI_GLOCK_PENDING) | ACPI_GLOCK_OWNED; in acpi_acquire_global_lock() 615 if ((old & ACPI_GLOCK_OWNED) != 0) in acpi_acquire_global_lock() 617 } while (atomic_cmpset_32(lock, old, new) == 0); in acpi_acquire_global_lock() 630 uint32_t new, old; in acpi_release_global_lock() local 633 old = *lock; in acpi_release_global_lock() 634 new = old & ~(ACPI_GLOCK_PENDING | ACPI_GLOCK_OWNED); in acpi_release_global_lock() 635 } while (atomic_cmpset_32(lock, old, new) == 0); in acpi_release_global_lock() 637 return ((old & ACPI_GLOCK_PENDING) != 0); in acpi_release_global_lock()
|
/freebsd/contrib/ntp/libntp/ |
H A D | iosignal.c | 441 sigset_t old; in wait_for_signal() local 443 if (sigprocmask(SIG_UNBLOCK, NULL, &old)) in wait_for_signal() 447 if (sigdelset(&old, SIGIO)) in wait_for_signal() 451 if (sigdelset(&old, SIGPOLL)) in wait_for_signal() 454 if (sigdelset(&old, SIGALRM)) in wait_for_signal() 457 if (sigsuspend(&old) && (errno != EINTR)) in wait_for_signal()
|
/freebsd/sys/kern/ |
H A D | sysv_shm.c | 1606 struct shmid_ds_old old; in freebsd7_shmctl() local 1621 if ((error = copyin(uap->buf, &old, sizeof(old)))) in freebsd7_shmctl() 1624 CP(old, buf, shm_segsz); in freebsd7_shmctl() 1625 CP(old, buf, shm_lpid); in freebsd7_shmctl() 1626 CP(old, buf, shm_cpid); in freebsd7_shmctl() 1628 CP(old, buf, shm_atime); in freebsd7_shmctl() 1629 CP(old, buf, shm_dtime); in freebsd7_shmctl() 1640 memset(&old, 0, sizeof(old)); in freebsd7_shmctl() 1646 CP(buf, old, shm_lpid); in freebsd7_shmctl() 1647 CP(buf, old, shm_cpid); in freebsd7_shmctl() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | evmap.c | 279 short res = 0, old = 0; in evmap_io_add_() local 301 old |= EV_READ; in evmap_io_add_() 303 old |= EV_WRITE; in evmap_io_add_() 305 old |= EV_CLOSED; in evmap_io_add_() 338 old, (ev->ev_events & EV_ET) | res, extra) == -1) in evmap_io_add_() 360 short res = 0, old = 0; in evmap_io_del_() local 379 old |= EV_READ; in evmap_io_del_() 381 old |= EV_WRITE; in evmap_io_del_() 383 old |= EV_CLOSED; in evmap_io_del_() 404 old, (ev->ev_events & EV_ET) | res, extra) == -1) { in evmap_io_del_() [all …]
|
/freebsd/contrib/file/src/ |
H A D | funcs.c | 709 locale_t old = uselocale(ms->c_lc_ctype); in file_regcomp() local 710 assert(old != NULL); in file_regcomp() 712 char old[1024]; in file_regcomp() local 713 strlcpy(old, setlocale(LC_CTYPE, NULL), sizeof(old)); in file_regcomp() 720 uselocale(old); in file_regcomp() 722 (void)setlocale(LC_CTYPE, old); in file_regcomp() 742 assert(old != NULL); in file_regexec() 744 char old[1024]; in file_regexec() 745 strlcpy(old, setlocale(LC_CTYPE, NULL), sizeof(old)); in file_regexec() 754 uselocale(old); in file_regexec() [all …]
|
/freebsd/contrib/libevent/ |
H A D | evmap.c | 279 short res = 0, old = 0; in evmap_io_add_() local 301 old |= EV_READ; in evmap_io_add_() 303 old |= EV_WRITE; in evmap_io_add_() 305 old |= EV_CLOSED; in evmap_io_add_() 338 old, (ev->ev_events & EV_ET) | res, extra) == -1) in evmap_io_add_() 360 short res = 0, old = 0; in evmap_io_del_() local 379 old |= EV_READ; in evmap_io_del_() 381 old |= EV_WRITE; in evmap_io_del_() 383 old |= EV_CLOSED; in evmap_io_del_() 404 old, (ev->ev_events & EV_ET) | res, extra) == -1) { in evmap_io_del_() [all …]
|
/freebsd/contrib/ntp/scripts/stats/ |
H A D | dupe.awk | 5 if (old != $0) 7 old = $0
|
/freebsd/crypto/openssl/doc/man1/ |
H A D | openssl-rehash.pod.in | 18 [B<-old>] 28 [B<-old>] 100 =item B<-old> 102 Use old-style hashing (MD5, as opposed to SHA-1) for generating 104 Note that current versions will not use the old style. 109 This is needed when keeping new and old-style links in the same directory. 113 Generate links for both old-style (MD5) and new-style (SHA1) hashing. 119 Print messages about old links removed and new links created.
|
/freebsd/contrib/unbound/util/ |
H A D | rbtree.c | 306 rbnode_type* old, rbnode_type* new) in change_parent_ptr() argument 310 log_assert(rbtree->root == old); in change_parent_ptr() 311 if(rbtree->root == old) rbtree->root = new; in change_parent_ptr() 314 log_assert(parent->left == old || parent->right == old in change_parent_ptr() 316 if(parent->left == old) parent->left = new; in change_parent_ptr() 317 if(parent->right == old) parent->right = new; in change_parent_ptr() 320 static void change_child_ptr(rbnode_type* child, rbnode_type* old, in change_child_ptr() argument 324 log_assert(child->parent == old || child->parent == new); in change_child_ptr() 325 if(child->parent == old) child->parent = new; in change_child_ptr()
|
/freebsd/sys/powerpc/powerpc/ |
H A D | copyinout.c | 117 int casueword32_remap(volatile uint32_t *addr, uint32_t old, uint32_t *oldvalp, 119 int casueword32_direct(volatile uint32_t *addr, uint32_t old, uint32_t *oldvalp, 121 int casueword_remap(volatile u_long *addr, u_long old, u_long *oldvalp, 123 int casueword_direct(volatile u_long *addr, u_long old, u_long *oldvalp, 561 REMAP(casueword32)(volatile uint32_t *addr, uint32_t old, uint32_t *oldvalp, in REMAP() 598 : "r" (p), "r" (old), "r" (new), "m" (*p) in REMAP() 609 REMAP(casueword)(volatile u_long *addr, u_long old, u_long *oldvalp, u_long new) in REMAP() 612 return (casueword32((volatile uint32_t *)addr, old, in REMAP() 617 REMAP(casueword)(volatile u_long *addr, u_long old, u_long *oldvalp, u_long new) in REMAP() 653 : "r" (p), "r" (old), "r" (new), "m" (*p) in REMAP()
|
/freebsd/usr.bin/grdc/ |
H A D | grdc.c | 38 static long old[6], next[6], new[6], mask; variable 199 if((a = (new[i]^old[i])&(s ? new : old)[i]) != 0) { in main() 210 old[i] = new[i]; in main() 257 mask |= (next[i]^old[i])&m; in set()
|
/freebsd/usr.bin/m4/ |
H A D | misc.c | 335 xrealloc(void *old, size_t n, const char *fmt, ...) in xrealloc() argument 337 char *p = realloc(old, n); in xrealloc() 340 free(old); in xrealloc() 355 xreallocarray(void *old, size_t s1, size_t s2, const char *fmt, ...) in xreallocarray() argument 357 void *p = reallocarray(old, s1, s2); in xreallocarray() 360 free(old); in xreallocarray()
|
/freebsd/sys/compat/linuxkpi/common/include/asm/ |
H A D | atomic-long.h | 89 atomic_long_cmpxchg(atomic_long_t *v, long old, long new) in atomic_long_cmpxchg() argument 91 long ret = old; in atomic_long_cmpxchg() 96 if (ret != old) in atomic_long_cmpxchg()
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | iidesc.c | 97 iidesc_t *old = find.iif_ret; in iidesc_add() local 100 bcopy(old, &tmp, sizeof (tmp)); in iidesc_add() 101 bcopy(new, old, sizeof (*old)); in iidesc_add()
|
/freebsd/stand/libsa/ |
H A D | zalloc_malloc.c | 180 size_t old; in Realloc() local 186 old = g->ga_Bytes - MALLOCALIGN; in Realloc() 187 if (old < size) in Realloc() 188 bcopy(ptr, res, old); in Realloc()
|