Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 1079) sorted by relevance

12345678910>>...44

/freebsd-13.1/contrib/ipfilter/
H A Dip_fil_compat.c1421 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
1445 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
1469 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
1496 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
1511 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
1533 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
1549 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
1627 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
1641 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
1655 error = COPYIN(obj->ipfo_ptr, old, sizeof(*old));
[all …]
/freebsd-13.1/usr.bin/jot/tests/
H A Dregress.ed.out1 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-13.1/sys/sys/
H A Drefcount.h78 u_int old; in refcount_acquire() local
84 return (old); in refcount_acquire()
90 u_int old; in refcount_acquiren() local
98 return (old); in refcount_acquiren()
104 u_int old; in refcount_acquire_checked() local
123 u_int old; in refcount_acquire_if_gt() local
131 if (atomic_fcmpset_int(count, &old, old + 1)) in refcount_acquire_if_gt()
146 u_int old; in refcount_releasen() local
153 if (__predict_false(old < n || REFCOUNT_SATURATED(old))) { in refcount_releasen()
157 if (old > n) in refcount_releasen()
[all …]
H A D_atomic_subword.h83 wcomp = old; in _atomic_cmpset_masked_word()
94 ret = atomic_fcmpset_32(addr, &old, (old & ~mask) | val); in _atomic_cmpset_masked_word()
114 *old = (*addr & ~mask) | *old; in _atomic_fcmpset_masked_word()
115 return (atomic_fcmpset_32(addr, old, (*old & ~mask) | val)); in _atomic_fcmpset_masked_word()
140 wold = *old << shift; in atomic_fcmpset_8()
224 u_long bit, old; in atomic_testandset_acq_long() local
232 ret = atomic_fcmpset_acq_long(p, &old, old | bit); in atomic_testandset_acq_long()
242 u_long bit, old; in atomic_testandset_long() local
250 ret = atomic_fcmpset_long(p, &old, old | bit); in atomic_testandset_long()
260 u_long bit, old; in atomic_testandclear_long() local
[all …]
H A Dblockcount.h46 void _blockcount_wakeup(blockcount_t *bc, u_int old);
58 u_int old; in blockcount_acquire() local
60 old = atomic_fetchadd_int(&bc->__count, n); in blockcount_acquire()
61 KASSERT(old + n > old, ("%s: counter overflow %p", __func__, bc)); in blockcount_acquire()
70 u_int old; in blockcount_release() local
73 old = atomic_fetchadd_int(&bc->__count, -n); in blockcount_release()
74 KASSERT(old >= n, ("%s: counter underflow %p", __func__, bc)); in blockcount_release()
75 if (_BLOCKCOUNT_COUNT(old) == n && _BLOCKCOUNT_WAITERS(old)) in blockcount_release()
76 _blockcount_wakeup(bc, old); in blockcount_release()
/freebsd-13.1/tools/tools/iso/
H A Dcheck-iso3166.pl17 my %old = ();
35 $old{$two}{two} = $two;
36 $old{$two}{three} = $three;
37 $old{$two}{number} = $number;
38 $old{$two}{name} = $name;
102 …print "In old but not new1: $old{$two}{two}\t$old{$two}{three}\t$old{$two}{number}\t$old{$two}{nam…
106 print "In old but not new2: $old{$two}{two}\t$old{$two}{name}\n";
116 next if (defined $old{$two});
126 next if (defined $old{$two});
141 print "In old : $old{$two}{two}\t$old{$two}{three}\t$old{$two}{number}\t$old{$two}{name}\n";
[all …]
H A Dcheck-iso639.pl17 my %old = ();
35 $old{$bib}{a2} = $a2;
36 $old{$bib}{bib} = $bib;
37 $old{$bib}{term} = $term;
38 $old{$bib}{name} = $name;
67 foreach my $bib (sort(keys(%old))) {
69 print "In old but not new: $old{$bib}{a2}\t$old{$bib}{bib}\t$old{$bib}{term}\t$old{$bib}{name}\n";
78 next if (defined $old{$bib});
87 foreach my $bib (sort(keys(%old))) {
90 $old{$bib}{bib} eq $new{$bib}{bib} &&
[all …]
/freebsd-13.1/sys/dev/drm2/
H A Ddrm_lock.c193 old = *lock; in drm_lock_take()
202 } while (prev != old); in drm_lock_take()
242 old = *lock; in drm_lock_transfer()
245 } while (prev != old); in drm_lock_transfer()
275 old = *lock; in drm_lock_free()
278 } while (prev != old); in drm_lock_free()
280 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { in drm_lock_free()
314 old = s->lock->lock; in drm_notifier()
317 } while (prev != old); in drm_notifier()
356 unsigned int old, prev; in drm_idlelock_release() local
[all …]
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_update_shadow_word_inl.h18 old = LoadShadow(sp);
19 if (LIKELY(old.IsZero())) {
27 if (LIKELY(Shadow::Addr0AndSizeAreEqual(cur, old))) {
29 if (LIKELY(Shadow::TidsAreEqual(old, cur))) {
36 if (HappensBefore(old, thr)) {
37 if (old.IsRWWeakerOrEqual(kAccessIsWrite, kIsAtomic)) {
43 if (LIKELY(old.IsBothReadsOrAtomic(kAccessIsWrite, kIsAtomic)))
48 if (Shadow::TwoRangesIntersect(old, cur, kAccessSize)) {
49 if (Shadow::TidsAreEqual(old, cur))
51 if (old.IsBothReadsOrAtomic(kAccessIsWrite, kIsAtomic))
[all …]
/freebsd-13.1/sys/ufs/ufs/
H A Dufs_acl.c236 len = sizeof(*old); in ufs_get_oldacl()
287 struct oldacl *old; in ufs_getacl_posix1e() local
296 old = malloc(sizeof(*old), M_ACL, M_WAITOK | M_ZERO); in ufs_getacl_posix1e()
316 old->acl_cnt = 3; in ufs_getacl_posix1e()
337 old->acl_cnt = 0; in ufs_getacl_posix1e()
352 free(old, M_ACL); in ufs_getacl_posix1e()
494 struct oldacl *old; in ufs_setacl_posix1e() local
541 old = malloc(sizeof(*old), M_ACL, M_WAITOK | M_ZERO); in ufs_setacl_posix1e()
549 free(old, M_ACL); in ufs_setacl_posix1e()
570 old = malloc(sizeof(*old), M_ACL, M_WAITOK | M_ZERO); in ufs_setacl_posix1e()
[all …]
/freebsd-13.1/sys/i386/linux/
H A Dlinux_copyout.c105 int old; in futex_orl_slow0() local
108 old = *(int *)kva; in futex_orl_slow0()
109 while (!atomic_fcmpset_int((int *)kva, &old, old | st->oparg)) in futex_orl_slow0()
111 *st->oldval = old; in futex_orl_slow0()
131 int old; in futex_andl_slow0() local
134 old = *(int *)kva; in futex_andl_slow0()
135 while (!atomic_fcmpset_int((int *)kva, &old, old & st->oparg)) in futex_andl_slow0()
137 *st->oldval = old; in futex_andl_slow0()
157 int old; in futex_xorl_slow0() local
160 old = *(int *)kva; in futex_xorl_slow0()
[all …]
/freebsd-13.1/sys/mips/mips/
H A Dstdatomic.c161 reg_t val32, negmask, old; \
229 reg_t val32, posmask, old; \
266 reg_t val32, old; \
300 uint32_t old, temp; in do_compare_and_swap_4() local
313 return (old); in do_compare_and_swap_4()
337 uint32_t old, temp; \
348 return (old); \
372 uint64_t old, temp; in __sync_val_compare_and_swap_8() local
385 return (old); in __sync_val_compare_and_swap_8()
392 uint64_t old, temp; \
[all …]
/freebsd-13.1/sys/vm/
H A Dvm_unix.c94 vm_offset_t new, old, base; in kern_break() local
107 old = base + ctob(vm->vm_dsize); in kern_break()
129 new = old; in kern_break()
133 if (new > old) { in kern_break()
136 (new - old) > lmemlim) { in kern_break()
155 map->size + (new - old)); in kern_break()
158 old - base); in kern_break()
166 (new - old)); in kern_break()
169 old - base); in kern_break()
198 RACCT_DATA, old - base); in kern_break()
[all …]
/freebsd-13.1/lib/libc/isc/
H A Dev_streams.c159 evStream *old = id.opaque; in evCancelRW() local
170 if (old->prev != NULL) in evCancelRW()
171 old->prev->next = old->next; in evCancelRW()
174 if (old->next != NULL) in evCancelRW()
175 old->next->prev = old->prev; in evCancelRW()
181 if (old->prevDone == NULL && old->nextDone == NULL) { in evCancelRW()
193 old->prevDone->nextDone = old->nextDone; in evCancelRW()
197 old->nextDone->prevDone = old->prevDone; in evCancelRW()
203 if (old->file.opaque) in evCancelRW()
205 memput(old->iovOrig, sizeof (struct iovec) * old->iovOrigCount); in evCancelRW()
[all …]
/freebsd-13.1/sys/kern/
H A Dsysv_ipc.c162 new->cuid = old->cuid; in ipcperm_old2new()
163 new->cgid = old->cgid; in ipcperm_old2new()
164 new->uid = old->uid; in ipcperm_old2new()
165 new->gid = old->gid; in ipcperm_old2new()
166 new->mode = old->mode; in ipcperm_old2new()
167 new->seq = old->seq; in ipcperm_old2new()
168 new->key = old->key; in ipcperm_old2new()
178 old->uid = new->uid; in ipcperm_new2old()
179 old->gid = new->gid; in ipcperm_new2old()
181 old->seq = new->seq; in ipcperm_new2old()
[all …]
/freebsd-13.1/tests/sys/netinet/
H A Dip_reass_test.c201 struct ipstat old, new; in ATF_TC_BODY() local
238 get_ipstat(&old); in ATF_TC_BODY()
246 get_ipstat(&old); in ATF_TC_BODY()
252 get_ipstat(&old); in ATF_TC_BODY()
258 get_ipstat(&old); in ATF_TC_BODY()
281 struct ipstat old, new; in ATF_TC_BODY() local
306 get_ipstat(&old); in ATF_TC_BODY()
312 get_ipstat(&old); in ATF_TC_BODY()
331 struct ipstat old, new; in ATF_TC_BODY() local
358 get_ipstat(&old); in ATF_TC_BODY()
[all …]
/freebsd-13.1/sys/compat/linuxkpi/common/include/asm/
H A Datomic.h148 atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument
150 int ret = old; in atomic_cmpxchg()
155 if (ret != old) in atomic_cmpxchg()
177 #define cmpxchg(ptr, old, new) ({ \ argument
275 int old; in atomic_dec_if_positive() local
277 old = atomic_read(v); in atomic_dec_if_positive()
279 retval = old - 1; in atomic_dec_if_positive()
291 int c, old; \
295 c = old; \
301 int c, old; \
[all …]
/freebsd-13.1/contrib/tcsh/
H A Dtw.spell.c40 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-13.1/sys/arm/arm/
H A Dstdatomic.c198 reg_t val32, negmask, old; \
219 return (get_##N(&old, mem)); \
260 return (get_##N(&old, mem)); \
271 reg_t val32, posmask, old; \
309 reg_t val32, old; \
344 uint32_t old, temp; in __sync_lock_test_and_set_4_c() local
355 return (old); in __sync_lock_test_and_set_4_c()
362 uint32_t old, temp; in __sync_val_compare_and_swap_4_c() local
376 return (old); in __sync_val_compare_and_swap_4_c()
383 uint32_t old, temp1, temp2; \
[all …]
/freebsd-13.1/usr.sbin/etcupdate/tests/
H A Dfbsdid_test.sh63 OLD=$WORKDIR/old
101 cat >> $i/old <<EOF
103 an old file
106 cat >> $NEW/old <<EOF
118 another old file
140 this is the old file
302 C /old
338 U /old
348 noconflict /old
373 U /old
[all …]
/freebsd-13.1/tools/tools/nanobsd/
H A Dmtree-dedup.awk107 function merge_kvs(old, new)
111 if (k == "uid" && "uname" in old)
112 delete old["uname"]
113 if (k == "uname" && "uid" in old)
114 delete old["uid"];
116 if (k == "gid" && "gname" in old)
117 delete old["gname"]
118 if (k == "gname" && "gid" in old)
119 delete old["gid"];
121 old[k] = new[k];
/freebsd-13.1/usr.bin/bsdiff/bsdiff/
H A Dbsdiff.c60 if(old[i]!=new[i]) break; in matchlen()
120 u_char *old,*new; in main() local
153 if (((old=malloc(oldsize+1))==NULL) || in main()
155 (read(fd,old,oldsize)!=oldsize) || in main()
219 (old[scsc+lastoffset] == new[scsc])) in main()
226 (old[scan+lastoffset] == new[scan])) in main()
233 if(old[lastpos+i]==new[lastscan+i]) s++; in main()
242 if(old[pos-i]==new[scan-i]) s++; in main()
252 old[lastpos+lenf-overlap+i]) s++; in main()
254 old[pos-lenb+i]) s--; in main()
[all …]
/freebsd-13.1/sys/i386/include/xen/
H A Dsynch_bitops.h64 #define synch_cmpxchg(ptr, old, new) \ argument
66 (unsigned long)(old), \
71 unsigned long old, in __synch_cmpxchg() argument
80 "0"(old) in __synch_cmpxchg()
87 "0"(old) in __synch_cmpxchg()
95 "0"(old) in __synch_cmpxchg()
102 "0"(old) in __synch_cmpxchg()
110 "0"(old) in __synch_cmpxchg()
115 return old; in __synch_cmpxchg()
/freebsd-13.1/contrib/libcxxrt/
H A Dguard.cc120 guard_lock_t old; in __cxa_guard_acquire() local
133 old = __sync_val_compare_and_swap(LOCK_PART(guard_object), in __cxa_guard_acquire()
135 if (old == INITIAL) { in __cxa_guard_acquire()
151 old == INITIALISED) in __cxa_guard_acquire()
154 assert(old == LOCKED); in __cxa_guard_acquire()
182 guard_lock_t old; in __cxa_guard_release() local
184 old = LOCKED; in __cxa_guard_release()
186 old = INITIAL; in __cxa_guard_release()
189 old, INITIALISED); in __cxa_guard_release()
/freebsd-13.1/usr.bin/diff3/
H A Ddiff3.c103 struct range old; member
210 (*dd)[i].old.to = b; in readin()
215 (*dd)[i].old.from = (*dd)[i - 1].old.to; in readin()
319 d1[1].old.from = d1->old.from; in merge()
327 d2[1].old.from = d2->old.from; in merge()
334 dup = duplicate(&d1->old, &d2->old); in merge()
343 d3 = d1->old.to > d1->old.from ? d1 : d2; in merge()
505 de[j].old.from = diff->old.from; in edit()
506 de[j].old.to = diff->old.to; in edit()
522 prange(&de[n].old); in edscript()
[all …]

12345678910>>...44