/freebsd/contrib/ntp/sntp/libevent/ |
H A D | epolltable-internal.h | 119 Bit 6: old events had EV_READ 120 Bit 7: old events had EV_WRITE 121 Bit 8: old events had EV_CLOSED 140 /* old= 0, write: 0, read: 0, close: 0 */ 142 /* old= 0, write: 0, read: 0, close:add */ 144 /* old= 0, write: 0, read: 0, close:del */ 146 /* old= 0, write: 0, read: 0, close:xxx */ 148 /* old= 0, write: 0, read:add, close: 0 */ 150 /* old= 0, write: 0, read:add, close:add */ 152 /* old= 0, write: 0, read:add, close:del */ [all …]
|
/freebsd/contrib/libevent/ |
H A D | epolltable-internal.h | 119 Bit 6: old events had EV_READ 120 Bit 7: old events had EV_WRITE 121 Bit 8: old events had EV_CLOSED 140 /* old= 0, write: 0, read: 0, close: 0 */ 142 /* old= 0, write: 0, read: 0, close:add */ 144 /* old= 0, write: 0, read: 0, close:del */ 146 /* old= 0, write: 0, read: 0, close:xxx */ 148 /* old= 0, write: 0, read:add, close: 0 */ 150 /* old= 0, write: 0, read:add, close:add */ 152 /* old= 0, write: 0, read:add, close:del */ [all …]
|
/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 | syscall.h | 15 /* 8 is old creat */ 26 /* 19 is old lseek */ 45 /* 38 is old stat */ 47 /* 40 is old lstat */ 53 /* 46 is old sigaction */ 55 /* 48 is old sigprocmask */ 59 /* 52 is old sigpending */ 69 /* 62 is old fstat */ 70 /* 63 is old getkerninfo */ 71 /* 64 is old getpagesize */ [all …]
|
H A D | _atomic_subword.h | 71 * than the ones we're not masking. old and val should already be preshifted to 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() 87 * only take one trip through here. We'll have to recalculate the 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 107 * *old == val on ll/sc architectures because the sc may fail due to in _atomic_fcmpset_masked_word() 112 *old = (*addr & ~mask) | *old; in _atomic_fcmpset_masked_word() [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}); 116 …print "In new1 but not old: $new1{$two}{two}\t$new1{$two}{three}\t$new1{$two}{number}\t$new1{$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}); 78 print "In new but not old: $new{$bib}{a2}\t$new{$bib}{bib}\t$new{$bib}{term}\t$new{$bib}{name}\n"; 86 foreach my $bib (sort(keys(%old))) { [all …]
|
/freebsd/usr.sbin/etcupdate/tests/ |
H A D | tests_test.sh | 62 OLD=$WORKDIR/old 73 rm -rf $OLD $NEW $TEST $CONFLICTS 74 mkdir -p $OLD/etc $NEW/etc $TEST/etc 77 # relations between the three threes (old, new, and test): old 78 # vs new, old vs test, and new vs test. Each of these 89 # Note that if the old and new files are identical (so first 94 # present in at least one of the old or new trees. Thus, none 100 mkdir -p $OLD/$i/$j/$k $NEW/$i/$j/$k \ 107 for i in $OLD $NEW $TEST; do 116 for i in $OLD $NEW; do [all …]
|
H A D | fbsdid_test.sh | 62 OLD=$WORKDIR/old 86 rm -rf $OLD $NEW $TEST $CONFLICTS 87 mkdir -p $OLD $NEW $TEST 91 store_id $OLD/remove 94 # old: Modify a file where the only local difference between 95 # the old and test files is a change in the FreeBSD ID string. 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 " 99 for i in $OLD $TEST; do [all …]
|
H A D | always_test.sh | 62 OLD=$WORKDIR/old 75 rm -rf $OLD $NEW $TEST $CONFLICTS 80 mkdir -p $OLD/$i/$j/$k $NEW/$i/$j/$k \ 96 mkfifo $OLD/first/difftype/second/fifo 101 ln -s "old link" $OLD/first/difflinks/second/link 106 echo "foo" > $OLD/first/difffiles/second/file 127 mkfifo $OLD/difftype/first/first/fifo 130 # /difftype/difftype/difftype: All three files (old, new, and 133 mkfifo $OLD/difftype/difftype/difftype/one 136 mkdir $OLD/difftype/difftype/difftype/two [all …]
|
H A D | ignore_test.sh | 62 OLD=$WORKDIR/old 72 rm -rf $OLD $NEW $TEST $CONFLICTS 73 mkdir -p $OLD $NEW $TEST 75 for i in $OLD $NEW $TEST; do 82 for i in $OLD $TEST; do 83 echo "old" > $i/tree/modify 86 for i in $OLD $TEST; do 87 echo "old" > $i/tree/remove 91 for i in $OLD $TEST; do 224 file /tree/remove "old" [all …]
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_syscall.h | 15 /* 8 is old creat */ 26 /* 19 is old freebsd32_lseek */ 45 /* 38 is old freebsd32_stat */ 47 /* 40 is old freebsd32_lstat */ 53 /* 46 is old freebsd32_sigaction */ 55 /* 48 is old sigprocmask */ 59 /* 52 is old sigpending */ 69 /* 62 is old freebsd32_fstat */ 71 /* 64 is old getpagesize */ 78 /* 71 is old freebsd32_mmap */ [all …]
|
/freebsd/sys/arm/arm/ |
H A D | stdatomic.c | 106 * Old __sync_* API. 110 /* Implementations for old GCC versions, lacking support for atomics. */ 195 reg_t val32, negmask, old; \ 207 "\tldrex %0, %6\n" /* Load old value. */ \ 208 "\tand %2, %5, %0\n" /* Remove the old value. */ \ 213 : "=&r" (old.v32), "=m" (*mem32), "=&r" (temp1), \ 216 return (get_##N(&old, mem)); \ 228 reg_t expected32, desired32, posmask, old; \ 243 "\tldrex %0, %8\n" /* Load old value. */ \ 244 "\tand %2, %6, %0\n" /* Isolate the old value. */ \ [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 116 * reverse order. Its first element must be all zero, the "old" and "new" 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() [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() 172 * If 'old' is on the ctx->strDone list, remove it. Update in evCancelRW() 175 if (old->prevDone == NULL && old->nextDone == NULL) { in evCancelRW() 177 * Either 'old' is the only item on the done list, or it's in evCancelRW() 181 if (ctx->strDone == old) { 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/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/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/contrib/libarchive/tar/test/ |
H A D | test_option_older_than.c | 23 assertMakeFile("old.txt", 0644, "old.txt"); in DEFINE_TEST() 24 assertMakeFile("a/b/old.txt", 0644, "old file in old directory"); in DEFINE_TEST() 25 assertEqualInt(0, stat("old.txt", &st)); in DEFINE_TEST() 31 assertMakeFile("a/b/new.txt", 0644, "new file in old directory"); in DEFINE_TEST() 50 assertFileExists("old.txt"); in DEFINE_TEST() 51 assertFileExists("a/b/old.txt"); in DEFINE_TEST() 63 assertFileExists("old.txt"); in DEFINE_TEST() 64 assertFileExists("a/b/old.txt"); in DEFINE_TEST()
|
/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 …]
|