/freebsd/usr.bin/jot/tests/ |
H A D | regress.ed.out | 1 2s/old/new/ 2 7s/old/new/ 3 12s/old/new/ 4 17s/old/new/ 5 22s/old/new/ 6 27s/old/new/ 7 32s/old/new/ 8 37s/old/new/ 9 42s/old/new/ 10 47s/old/new/ [all …]
|
/freebsd/sys/sys/ |
H A D | refcount.h | 75 u_int old; in refcount_acquire() local 77 old = atomic_fetchadd_int(count, 1); in refcount_acquire() 78 if (__predict_false(REFCOUNT_SATURATED(old))) in refcount_acquire() 81 return (old); in refcount_acquire() 87 u_int old; in refcount_acquiren() local 91 old = atomic_fetchadd_int(count, n); in refcount_acquiren() 92 if (__predict_false(REFCOUNT_SATURATED(old))) in refcount_acquiren() 95 return (old); in refcount_acquiren() 101 u_int old; in refcount_acquire_checked() local 103 old = atomic_load_int(count); in refcount_acquire_checked() [all …]
|
H A D | _atomic_subword.h | 75 _atomic_cmpset_masked_word(uint32_t *addr, uint32_t old, uint32_t val, in _atomic_cmpset_masked_word() argument 81 wcomp = old; in _atomic_cmpset_masked_word() 91 old = (*addr & ~mask) | wcomp; in _atomic_cmpset_masked_word() 92 ret = atomic_fcmpset_32(addr, &old, (old & ~mask) | val); in _atomic_cmpset_masked_word() 93 } while (ret == 0 && (old & mask) == wcomp); in _atomic_cmpset_masked_word() 101 _atomic_fcmpset_masked_word(uint32_t *addr, uint32_t *old, uint32_t val, in _atomic_fcmpset_masked_word() argument 112 *old = (*addr & ~mask) | *old; in _atomic_fcmpset_masked_word() 113 return (atomic_fcmpset_32(addr, old, (*old & ~mask) | val)); in _atomic_fcmpset_masked_word() 119 atomic_cmpset_8(__volatile uint8_t *addr, uint8_t old, uint8_t val) in atomic_cmpset_8() argument 126 old << shift, val << shift, 0xff << shift)); in atomic_cmpset_8() [all …]
|
H A D | blockcount.h | 44 void _blockcount_wakeup(blockcount_t *bc, u_int old); 56 u_int old; in blockcount_acquire() local 58 old = atomic_fetchadd_int(&bc->__count, n); in blockcount_acquire() 59 KASSERT(old + n > old, ("%s: counter overflow %p", __func__, bc)); in blockcount_acquire() 68 u_int old; in blockcount_release() local 71 old = atomic_fetchadd_int(&bc->__count, -n); in blockcount_release() 72 KASSERT(old >= n, ("%s: counter underflow %p", __func__, bc)); in blockcount_release() 73 if (_BLOCKCOUNT_COUNT(old) == n && _BLOCKCOUNT_WAITERS(old)) in blockcount_release() 74 _blockcount_wakeup(bc, old); in blockcount_release()
|
/freebsd/tools/tools/iso/ |
H A D | check-iso3166.pl | 16 my %old = (); 34 $old{$two}{two} = $two; 35 $old{$two}{three} = $three; 36 $old{$two}{number} = $number; 37 $old{$two}{name} = $name; 99 foreach my $two (sort(keys(%old))) { 101 …print "In old but not new1: $old{$two}{two}\t$old{$two}{three}\t$old{$two}{number}\t$old{$two}{nam… 105 print "In old but not new2: $old{$two}{two}\t$old{$two}{name}\n"; 115 next if (defined $old{$two}); 125 next if (defined $old{$two}); [all …]
|
H A D | check-iso639.pl | 16 my %old = (); 34 $old{$bib}{a2} = $a2; 35 $old{$bib}{bib} = $bib; 36 $old{$bib}{term} = $term; 37 $old{$bib}{name} = $name; 66 foreach my $bib (sort(keys(%old))) { 68 print "In old but not new: $old{$bib}{a2}\t$old{$bib}{bib}\t$old{$bib}{term}\t$old{$bib}{name}\n"; 77 next if (defined $old{$bib}); 86 foreach my $bib (sort(keys(%old))) { 88 next if ($old{$bib}{a2} eq $new{$bib}{a2} && [all …]
|
/freebsd/sys/dev/drm2/ |
H A D | drm_lock.c | 186 unsigned int old, new, prev; in drm_lock_take() local 191 old = *lock; in drm_lock_take() 192 if (old & _DRM_LOCK_HELD) in drm_lock_take() 193 new = old | _DRM_LOCK_CONT; in drm_lock_take() 199 prev = cmpxchg(lock, old, new); in drm_lock_take() 200 } while (prev != old); in drm_lock_take() 203 if (_DRM_LOCKING_CONTEXT(old) == context) { in drm_lock_take() 204 if (old & _DRM_LOCK_HELD) { in drm_lock_take() 235 unsigned int old, new, prev; in drm_lock_transfer() local 240 old = *lock; in drm_lock_transfer() [all …]
|
/freebsd/usr.bin/diff3/ |
H A D | diff3.c | 101 struct range old; member 284 (*dd)[i].old.from = a; in readin() 285 (*dd)[i].old.to = b; in readin() 289 if ((*dd)[i].old.from < (*dd)[i - 1].old.to || in readin() 295 (*dd)[i].old.from = (*dd)[i].old.to = (*dd)[i - 1].old.to; in readin() 381 change(1, &d1->old, false); in merge() 396 change(2, &d2->old, false); in merge() 410 d1[1].old.from = d1->old.from; in merge() 418 d2[1].old.from = d2->old.from; in merge() 425 dup = duplicate(&d1->old, &d2->old); in merge() [all …]
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_acl.c | 228 ufs_get_oldacl(acl_type_t type, struct oldacl *old, struct vnode *vp, in ufs_get_oldacl() argument 234 len = sizeof(*old); in ufs_get_oldacl() 240 POSIX1E_ACL_ACCESS_EXTATTR_NAME, &len, (char *) old, in ufs_get_oldacl() 248 POSIX1E_ACL_DEFAULT_EXTATTR_NAME, &len, (char *) old, in ufs_get_oldacl() 258 if (len != sizeof(*old)) { in ufs_get_oldacl() 285 struct oldacl *old; in ufs_getacl_posix1e() local 294 old = malloc(sizeof(*old), M_ACL, M_WAITOK | M_ZERO); in ufs_getacl_posix1e() 299 error = ufs_get_oldacl(ap->a_type, old, ap->a_vp, ap->a_td); in ufs_getacl_posix1e() 314 old->acl_cnt = 3; in ufs_getacl_posix1e() 315 old->acl_entry[0].ae_tag = ACL_USER_OBJ; in ufs_getacl_posix1e() [all …]
|
/freebsd/sys/i386/linux/ |
H A D | linux_copyout.c | 101 int old; in futex_orl_slow0() local 104 old = *(int *)kva; in futex_orl_slow0() 105 while (!atomic_fcmpset_int((int *)kva, &old, old | st->oparg)) in futex_orl_slow0() 107 *st->oldval = old; in futex_orl_slow0() 127 int old; in futex_andl_slow0() local 130 old = *(int *)kva; in futex_andl_slow0() 131 while (!atomic_fcmpset_int((int *)kva, &old, old & st->oparg)) in futex_andl_slow0() 133 *st->oldval = old; in futex_andl_slow0() 153 int old; in futex_xorl_slow0() local 156 old = *(int *)kva; in futex_xorl_slow0() [all …]
|
/freebsd/sys/vm/ |
H A D | vm_unix.c | 89 vm_offset_t new, old, base; in kern_break() local 102 old = base + ctob(vm->vm_dsize); in kern_break() 108 if (new - base > datalim && new > old) { in kern_break() 124 new = old; in kern_break() 128 if (new > old) { in kern_break() 131 (new - old) > lmemlim) { in kern_break() 136 if (map->size + (new - old) > vmemlim) { in kern_break() 150 map->size + (new - old)); in kern_break() 153 old - base); in kern_break() 161 (new - old)); in kern_break() [all …]
|
/freebsd/lib/libc/isc/ |
H A D | ev_streams.c | 153 evStream *old = id.opaque; in evCancelRW() local 164 if (old->prev != NULL) in evCancelRW() 165 old->prev->next = old->next; in evCancelRW() 167 ctx->streams = old->next; in evCancelRW() 168 if (old->next != NULL) in evCancelRW() 169 old->next->prev = old->prev; in evCancelRW() 175 if (old->prevDone == NULL && old->nextDone == NULL) { in evCancelRW() 181 if (ctx->strDone == old) { in evCancelRW() 186 if (old->prevDone != NULL) in evCancelRW() 187 old->prevDone->nextDone = old->nextDone; in evCancelRW() [all …]
|
/freebsd/contrib/one-true-awk/testdir/ |
H A D | ctimes | 4 print " new old new/old" 22 old = time[1] 24 if (old > 0) { 25 printf "%8.2f %8.2f %8.3f %s\n", new, old, new/old, name 26 rat += new/old 30 totold += old 36 printf "avg new/old = %.3f\n", rat/nrat 37 printf "total new/old = %.3f\n", totnew/totold
|
H A D | sgi.ctimes | 4 print " new old new/old" 22 old = time[1] 24 if (old > 0) { 25 printf "%8.2f %8.2f %8.3f %s\n", new, old, new/old, name 26 rat += new/old 30 totold += old 36 printf "avg new/old = %.3f\n", rat/nrat 37 printf "total new/old = %.3f\n", totnew/totold
|
/freebsd/tests/sys/netinet/ |
H A D | ip_reass_test.c | 184 (uintmax_t)old.ips_ ## counter, (uintmax_t)new.ips_## counter); 198 struct ipstat old, new; in ATF_TC_BODY() local 235 get_ipstat(&old); in ATF_TC_BODY() 238 CHECK_IP_COUNTER(&old, &new, fragdropped); in ATF_TC_BODY() 243 get_ipstat(&old); in ATF_TC_BODY() 246 CHECK_IP_COUNTER(&old, &new, fragdropped); in ATF_TC_BODY() 249 get_ipstat(&old); in ATF_TC_BODY() 252 CHECK_IP_COUNTER(&old, &new, fragdropped); in ATF_TC_BODY() 255 get_ipstat(&old); in ATF_TC_BODY() 258 CHECK_IP_COUNTER(&old, &new, fragdropped); in ATF_TC_BODY() [all …]
|
/freebsd/sys/kern/ |
H A D | sysv_ipc.c | 162 ipcperm_old2new(struct ipc_perm_old *old, struct ipc_perm *new) in ipcperm_old2new() argument 165 new->cuid = old->cuid; in ipcperm_old2new() 166 new->cgid = old->cgid; in ipcperm_old2new() 167 new->uid = old->uid; in ipcperm_old2new() 168 new->gid = old->gid; in ipcperm_old2new() 169 new->mode = old->mode; in ipcperm_old2new() 170 new->seq = old->seq; in ipcperm_old2new() 171 new->key = old->key; in ipcperm_old2new() 175 ipcperm_new2old(struct ipc_perm *new, struct ipc_perm_old *old) in ipcperm_new2old() argument 179 old->cuid = new->cuid; in ipcperm_new2old() [all …]
|
/freebsd/sys/arm/arm/ |
H A D | stdatomic.c | 195 reg_t val32, negmask, old; \ 213 : "=&r" (old.v32), "=m" (*mem32), "=&r" (temp1), \ 216 return (get_##N(&old, mem)); \ 228 reg_t expected32, desired32, posmask, old; \ 253 : "=&r" (old), "=m" (*mem32), "=&r" (temp1), \ 257 return (get_##N(&old, mem)); \ 268 reg_t val32, posmask, old; \ 289 : "=&r" (old.v32), "=m" (*mem32), "=&r" (temp1), \ 293 return (get_##N(&old, mem)); \ 306 reg_t val32, old; \ [all …]
|
/freebsd/contrib/tcsh/ |
H A D | tw.spell.c | 40 const Char *old = oldname->s; in spell_me() local 48 while (*old == '/') { /* skip '/' */ in spell_me() 49 Strbuf_append1(&newname, *old++); in spell_me() 53 if (*old != '\0' && old[1] == '\0') in spell_me() 54 Strbuf_append1(&newname, *old++); in spell_me() 56 if (*old == '\0') { in spell_me() 67 for (; *old != '/' && *old != '\0'; old++)/* add current file name */ in spell_me() 68 Strbuf_append1(&guess, *old); in spell_me() 77 looking == TW_COMMAND && (foundslash || *old != '/') ? in spell_me()
|
/freebsd/sys/compat/linuxkpi/common/include/asm/ |
H A D | atomic.h | 146 atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument 148 int ret = old; in atomic_cmpxchg() 153 if (ret != old) in atomic_cmpxchg() 173 #define cmpxchg(ptr, old, new) ({ \ argument 180 } __ret = { .val = (old) }, __new = { .val = (new) }; \ 192 __ret.u8, __new.u8[0]) && __ret.val == (old)) \ 199 __ret.u16, __new.u16[0]) && __ret.val == (old)) \ 205 __ret.u32, __new.u32[0]) && __ret.val == (old)) \ 211 __ret.u64, __new.u64[0]) && __ret.val == (old)) \ 294 int old; in atomic_dec_if_positive() local [all …]
|
/freebsd/usr.sbin/etcupdate/tests/ |
H A D | fbsdid_test.sh | 62 OLD=$WORKDIR/old 96 store_id $OLD/old ": src/old,v 1.1 jhb Exp " 97 store_id $NEW/old ": head/old 12345 jhb " 98 store_id $TEST/old ": head/old 12000 jhb " 100 cat >> $i/old <<EOF 102 an old file 105 cat >> $NEW/old <<EOF 117 another old file 139 this is the old file 301 C /old [all …]
|
/freebsd/tools/tools/locale/tools/ |
H A D | finalize | 55 old=${OLD_DIR} 73 mkdir -p $old $new 74 cd $old 131 grep '^LOCALES+' ${old}/Makefile > ${TEMP} 136 (cd ${old} && md5 -r ${keep} | sort) > ${TEMP2} 140 cp ${old}/${original} ${new}/ 158 }' ${old}/Makefile 161 sed -i '' "/^SAME.*$line$/d" ${old}/Makefile 168 cp ${old}/${original}.src ${new}/ 175 cp ${old}/${original}.src ${new}/ [all …]
|
/freebsd/usr.bin/bsdiff/bsdiff/ |
H A D | bsdiff.c | 53 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) in matchlen() 58 if(old[i]!=new[i]) break; in matchlen() 63 static off_t search(off_t *I,u_char *old,off_t oldsize, in search() 69 x=matchlen(old+I[st],oldsize-I[st],new,newsize); in search() 70 y=matchlen(old+I[en],oldsize-I[en],new,newsize); in search() 82 if(memcmp(old+I[x],new,MIN(oldsize-I[x],newsize))<0) { in search() 83 return search(I,old,oldsize,new,newsize,x,en,pos); in search() 85 return search(I,old,oldsize,new,newsize,st,x,pos); in search() 118 u_char *old,*new; in main() 151 old in main() 52 matchlen(u_char * old,off_t oldsize,u_char * new,off_t newsize) matchlen() argument 62 search(off_t * I,u_char * old,off_t oldsize,u_char * new,off_t newsize,off_t st,off_t en,off_t * pos) search() argument 117 u_char *old,*new; main() local [all...] |
/freebsd/tools/tools/nanobsd/ |
H A D | mtree-dedup.awk | 106 function merge_kvs(old, new) 110 if (k == "uid" && "uname" in old) 111 delete old["uname"] 112 if (k == "uname" && "uid" in old) 113 delete old["uid"]; 115 if (k == "gid" && "gname" in old) 116 delete old["gname"] 117 if (k == "gname" && "gid" in old) 118 delete old["gid"]; 120 old[k] = new[k];
|
/freebsd/tools/ifnet/ |
H A D | convert_ifapi.sh | 73 old=`echo $line|sed -e 's/^[ ]*//'` 74 line=`echo $line| sed -e's/'$old'/'$new'/g'` 85 old=`echo $line|sed -e 's/^[ ]*//'` 88 line=`echo $line| sed -e's/'$old'/'$new'/g'` 101 old=`echo $line|sed -e 's/^[ ]*//'` 102 line=`echo $line| sed -e's/'$old'/'$new'/g'` 117 old=`echo $line|sed -e 's/^[ ]*//'` 118 line=`echo $line| sed -e's/'$old'/'$new'/g'` 133 old=`echo $line|sed -e 's/^[ ]*//'` 134 line=`echo $line| sed -e's/'$old'/'$new'/g'` [all …]
|
/freebsd/sys/riscv/include/ |
H A D | atomic.h | 272 uint32_t mask, old; in atomic_testandclear_32() local 276 : "=&r" (old), "+A" (*p) in atomic_testandclear_32() 280 return ((old & mask) != 0); in atomic_testandclear_32() 286 uint32_t mask, old; in atomic_testandset_32() local 290 : "=&r" (old), "+A" (*p) in atomic_testandset_32() 294 return ((old & mask) != 0); in atomic_testandset_32() 471 uint64_t mask, old; in atomic_testandclear_64() local 475 : "=&r" (old), "+A" (*p) in atomic_testandclear_64() 479 return ((old & mask) != 0); in atomic_testandclear_64() 485 uint64_t mask, old; in atomic_testandset_64() local [all …]
|