bin/csh/csh.c
1262
int new;
bin/csh/csh.c
1278
new = stb.st_mtime > time0.tv_sec;
bin/csh/csh.c
1281
(loginsh && !new))
bin/csh/csh.c
1284
(void)fprintf(cshout, "You have %smail.\n", new ? "new " : "");
bin/csh/csh.c
1286
(void)fprintf(cshout, "%s in %s.\n", new ? "New mail" : "Mail",
bin/csh/exp.c
571
struct wordent *new;
bin/csh/exp.c
573
new = (struct wordent *)xcalloc(1, sizeof *wdp);
bin/csh/exp.c
574
new->prev = wdp;
bin/csh/exp.c
575
new->next = hp;
bin/csh/exp.c
576
wdp->next = new;
bin/csh/exp.c
577
wdp = new;
bin/csh/file.c
347
tilde(Char *new, Char *old)
bin/csh/file.c
354
return (Strcpy(new, old));
bin/csh/file.c
360
(void)Strcpy(new, value(STRhome));
bin/csh/file.c
365
(void)Strcpy(new, str2short(pw->pw_dir));
bin/csh/file.c
367
(void)Strcat(new, o);
bin/csh/file.c
368
return (new);
bin/csh/lex.c
161
struct wordent *new;
bin/csh/lex.c
163
new = xmalloc(sizeof(*wdp));
bin/csh/lex.c
164
new->word = 0;
bin/csh/lex.c
165
new->prev = wdp;
bin/csh/lex.c
166
new->next = hp;
bin/csh/lex.c
167
wdp->next = new;
bin/csh/lex.c
168
wdp = new;
bin/csh/lex.c
229
struct wordent *new;
bin/csh/lex.c
231
new = xmalloc(sizeof(*wdp));
bin/csh/lex.c
232
new->prev = wdp;
bin/csh/lex.c
233
new->next = hp;
bin/csh/lex.c
234
wdp->next = new;
bin/csh/lex.c
235
wdp = new;
bin/csh/lex.c
880
struct wordent *new = xcalloc(1, sizeof *new);
bin/csh/lex.c
882
new->word = 0;
bin/csh/lex.c
883
new->prev = wdp;
bin/csh/lex.c
884
new->next = hp;
bin/csh/lex.c
885
wdp->next = new;
bin/csh/lex.c
886
wdp = new;
bin/ksh/emacs.c
1325
char *new, *op;
bin/ksh/emacs.c
1327
op = new = str_save(cp, area);
bin/ksh/emacs.c
1344
return new;
bin/ksh/eval.c
1367
char *new;
bin/ksh/eval.c
1373
new = (char *) alloc(l1 + l2 + l3 + 1, ATEMP);
bin/ksh/eval.c
1374
memcpy(new, start, l1);
bin/ksh/eval.c
1375
memcpy(new + l1, field_start, l2);
bin/ksh/eval.c
1376
memcpy(new + l1 + l2, brace_end, l3);
bin/ksh/eval.c
1377
new[l1 + l2 + l3] = '\0';
bin/ksh/eval.c
1378
alt_expand(wp, new, new + l1,
bin/ksh/eval.c
1379
new + l1 + l2 + l3, fdo);
bin/ksh/history.c
1111
unsigned char *new;
bin/ksh/history.c
1127
new = base + hsize;
bin/ksh/history.c
1128
if (*new != COMMAND) {
bin/ksh/history.c
1133
histload(hist_source, new, bytes);
bin/ksh/lex.c
1365
Lex_state *new = alloc(sizeof(Lex_state) * STATE_BSIZE, ATEMP);
bin/ksh/lex.c
1367
new[0].ls_info.base = old_end;
bin/ksh/lex.c
1368
si->base = &new[0];
bin/ksh/lex.c
1369
si->end = &new[STATE_BSIZE];
bin/ksh/lex.c
1370
return &new[1];
bin/ksh/main.c
159
char *new;
bin/ksh/main.c
162
confstr(_CS_PATH, new = alloc(len + 1, APERM), len + 1);
bin/ksh/main.c
163
def_path = new;
bin/ksh/var.c
1157
struct tbl *prev, *curr, *new;
bin/ksh/var.c
1177
new = curr;
bin/ksh/var.c
1179
new = (struct tbl *)alloc(sizeof(struct tbl) + namelen,
bin/ksh/var.c
1181
strlcpy(new->name, vp->name, namelen);
bin/ksh/var.c
1182
new->flag = vp->flag & ~(ALLOC|DEFINED|ISSET|SPECIAL);
bin/ksh/var.c
1183
new->type = vp->type;
bin/ksh/var.c
1184
new->areap = vp->areap;
bin/ksh/var.c
1185
new->u2.field = vp->u2.field;
bin/ksh/var.c
1186
new->index = val;
bin/ksh/var.c
1187
if (curr != new) { /* not reusing old array entry */
bin/ksh/var.c
1188
prev->u.array = new;
bin/ksh/var.c
1189
new->u.array = curr;
bin/ksh/var.c
1191
return new;
bin/ksh/vi.c
1393
struct edstate *new;
bin/ksh/vi.c
1395
new = (struct edstate *)alloc(sizeof(struct edstate), APERM);
bin/ksh/vi.c
1396
new->cbuf = alloc(old->cbufsize, APERM);
bin/ksh/vi.c
1397
memcpy(new->cbuf, old->cbuf, old->linelen);
bin/ksh/vi.c
1398
new->cbufsize = old->cbufsize;
bin/ksh/vi.c
1399
new->linelen = old->linelen;
bin/ksh/vi.c
1400
new->cursor = old->cursor;
bin/ksh/vi.c
1401
new->winleft = old->winleft;
bin/ksh/vi.c
1402
return new;
bin/ksh/vi.c
1406
restore_edstate(new, old)
bin/ksh/vi.c
1407
struct edstate *old, *new;
bin/ksh/vi.c
1409
memcpy(new->cbuf, old->cbuf, old->linelen);
bin/ksh/vi.c
1410
new->linelen = old->linelen;
bin/ksh/vi.c
1411
new->cursor = old->cursor;
bin/ksh/vi.c
1412
new->winleft = old->winleft;
bin/ksh/vi.c
151
static void restore_edstate ARGS((struct edstate *old, struct edstate *new));
bin/sh/cd.c
286
char *new;
bin/sh/cd.c
317
STARTSTACKSTR(new);
bin/sh/cd.c
321
STPUTC(*p++, new);
bin/sh/cd.c
323
STUNPUTC(new);
bin/sh/cd.c
327
while (new > stackblock() && (STUNPUTC(new), *new) != '/');
bin/sh/cd.c
329
STPUTC('/', new);
bin/sh/cd.c
331
STPUTC(*p++, new);
bin/sh/cd.c
334
if (new == stackblock())
bin/sh/cd.c
335
STPUTC('/', new);
bin/sh/cd.c
336
STACKSTRNUL(new);
bin/sh/eval.c
1691
set_dot_funcnest(int new)
bin/sh/eval.c
1695
if (new >= 0)
bin/sh/eval.c
1696
dot_funcnest = new;
bin/sh/exec.c
288
char **new;
bin/sh/exec.c
329
new = ckmalloc(i + ((char *)ap2 - (char *)argv));
bin/sh/exec.c
330
ap = newargs, ap2 = new;
bin/sh/exec.c
335
shellexec(new, envp, pathval(), 0);
bin/sh/exec.c
847
changepath(const char *new, int flags __unused, struct var *vp __unused)
bin/sh/exec.c
859
if (*old != *new) {
bin/sh/exec.c
861
if ((*old == '\0' && *new == ':')
bin/sh/exec.c
862
|| (*old == ':' && *new == '\0'))
bin/sh/exec.c
864
old = new; /* ignore subsequent differences */
bin/sh/exec.c
866
if (*new == '\0')
bin/sh/exec.c
868
if (*new == '%' && bltin < 0 && prefix("builtin", new + 1))
bin/sh/exec.c
870
if (*new == ':') {
bin/sh/exec.c
873
new++, old++;
bin/sh/output.c
690
xtrace_clone(int new)
bin/sh/output.c
696
new, (outx == out2 ? "out2: " : ""),
bin/sh/output.c
701
if (!new && outxtop == NULL && Xflag == 0) {
bin/sh/parser.c
2778
char *new;
bin/sh/parser.c
2791
new = (char *)realloc(buffer, newlen);
bin/sh/parser.c
2793
if (__predict_false(new == NULL)) {
bin/sh/parser.c
2801
buffer = new;
bin/sh/parser.c
2852
char *new;
bin/sh/parser.c
2865
new = (char *)realloc(buffer, newlen);
bin/sh/parser.c
2867
if (__predict_false(new == NULL)) {
bin/sh/parser.c
2875
buffer = new;
common/lib/libc/arch/m68k/atomic/atomic_init_m68k.c
108
_atomic_cas_32_a0(volatile uint32_t *ptr, uint32_t old, uint32_t new)
common/lib/libc/arch/m68k/atomic/atomic_init_m68k.c
111
return (void *)(*_atomic_cas_32_fn)(ptr, old, new);
common/lib/libc/arch/m68k/atomic/atomic_init_m68k.c
144
_atomic_cas_16(volatile uint16_t *ptr, uint16_t old, uint16_t new)
common/lib/libc/arch/m68k/atomic/atomic_init_m68k.c
146
return (*_atomic_cas_16_fn)(ptr, old, new);
common/lib/libc/arch/m68k/atomic/atomic_init_m68k.c
153
_atomic_cas_8(volatile uint8_t *ptr, uint8_t old, uint8_t new)
common/lib/libc/arch/m68k/atomic/atomic_init_m68k.c
155
return (*_atomic_cas_8_fn)(ptr, old, new);
common/lib/libc/atomic/atomic_add_16_cas.c
44
uint16_t old, new;
common/lib/libc/atomic/atomic_add_16_cas.c
48
new = old + val;
common/lib/libc/atomic/atomic_add_16_cas.c
49
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_add_16_cas.c
56
uint16_t old, new;
common/lib/libc/atomic/atomic_add_16_cas.c
60
new = old + val;
common/lib/libc/atomic/atomic_add_16_cas.c
61
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_add_16_cas.c
62
return new;
common/lib/libc/atomic/atomic_add_32_cas.c
46
uint32_t old, new;
common/lib/libc/atomic/atomic_add_32_cas.c
50
new = old + val;
common/lib/libc/atomic/atomic_add_32_cas.c
51
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_add_32_nv_cas.c
39
uint32_t old, new;
common/lib/libc/atomic/atomic_add_32_nv_cas.c
43
new = old + val;
common/lib/libc/atomic/atomic_add_32_nv_cas.c
44
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_add_32_nv_cas.c
46
return new;
common/lib/libc/atomic/atomic_add_64_cas.c
44
uint64_t old, new;
common/lib/libc/atomic/atomic_add_64_cas.c
48
new = old + val;
common/lib/libc/atomic/atomic_add_64_cas.c
49
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_add_64_nv_cas.c
41
uint64_t old, new;
common/lib/libc/atomic/atomic_add_64_nv_cas.c
45
new = old + val;
common/lib/libc/atomic/atomic_add_64_nv_cas.c
46
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_add_64_nv_cas.c
48
return new;
common/lib/libc/atomic/atomic_add_8_cas.c
44
uint8_t old, new;
common/lib/libc/atomic/atomic_add_8_cas.c
48
new = old + val;
common/lib/libc/atomic/atomic_add_8_cas.c
49
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_add_8_cas.c
56
uint8_t old, new;
common/lib/libc/atomic/atomic_add_8_cas.c
60
new = old + val;
common/lib/libc/atomic/atomic_add_8_cas.c
61
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_add_8_cas.c
62
return new;
common/lib/libc/atomic/atomic_and_16_cas.c
42
uint16_t old, new;
common/lib/libc/atomic/atomic_and_16_cas.c
46
new = old & val;
common/lib/libc/atomic/atomic_and_16_cas.c
47
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_and_16_nv_cas.c
41
uint16_t old, new;
common/lib/libc/atomic/atomic_and_16_nv_cas.c
45
new = old & val;
common/lib/libc/atomic/atomic_and_16_nv_cas.c
46
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_and_16_nv_cas.c
48
return new;
common/lib/libc/atomic/atomic_and_32_cas.c
46
uint32_t old, new;
common/lib/libc/atomic/atomic_and_32_cas.c
50
new = old & val;
common/lib/libc/atomic/atomic_and_32_cas.c
51
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_and_32_nv_cas.c
39
uint32_t old, new;
common/lib/libc/atomic/atomic_and_32_nv_cas.c
43
new = old & val;
common/lib/libc/atomic/atomic_and_32_nv_cas.c
44
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_and_32_nv_cas.c
46
return new;
common/lib/libc/atomic/atomic_and_64_cas.c
44
uint64_t old, new;
common/lib/libc/atomic/atomic_and_64_cas.c
48
new = old & val;
common/lib/libc/atomic/atomic_and_64_cas.c
49
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_and_64_nv_cas.c
41
uint64_t old, new;
common/lib/libc/atomic/atomic_and_64_nv_cas.c
45
new = old & val;
common/lib/libc/atomic/atomic_and_64_nv_cas.c
46
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_and_64_nv_cas.c
48
return new;
common/lib/libc/atomic/atomic_and_8_cas.c
42
uint8_t old, new;
common/lib/libc/atomic/atomic_and_8_cas.c
46
new = old & val;
common/lib/libc/atomic/atomic_and_8_cas.c
47
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_and_8_nv_cas.c
41
uint8_t old, new;
common/lib/libc/atomic/atomic_and_8_nv_cas.c
45
new = old & val;
common/lib/libc/atomic/atomic_and_8_nv_cas.c
46
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_and_8_nv_cas.c
48
return new;
common/lib/libc/atomic/atomic_cas_16_cas.c
52
int16_t sync_val_compare_and_swap_2(volatile int16_t *addr, int16_t old, int16_t new)
common/lib/libc/atomic/atomic_cas_16_cas.c
56
sync_val_compare_and_swap_2(volatile int16_t *addr, int16_t old, int16_t new)
common/lib/libc/atomic/atomic_cas_16_cas.c
59
const uint16_t newv = (uint16_t)new;
common/lib/libc/atomic/atomic_cas_8_cas.c
53
int8_t sync_val_compare_and_swap_1(volatile int8_t *addr, int8_t old, int8_t new)
common/lib/libc/atomic/atomic_cas_8_cas.c
57
sync_val_compare_and_swap_1(volatile int8_t *addr, int8_t old, int8_t new)
common/lib/libc/atomic/atomic_cas_8_cas.c
60
const uint8_t newv = (uint8_t)new;
common/lib/libc/atomic/atomic_cas_by_cas32.c
37
uint32_t _atomic_cas_32(volatile uint32_t *addr, uint32_t old, uint32_t new);
common/lib/libc/atomic/atomic_cas_by_cas32.c
38
uint16_t _atomic_cas_16(volatile uint16_t *addr, uint16_t old, uint16_t new);
common/lib/libc/atomic/atomic_cas_by_cas32.c
39
uint8_t _atomic_cas_8(volatile uint8_t *addr, uint8_t old, uint8_t new);
common/lib/libc/atomic/atomic_cas_by_cas32.c
46
_atomic_cas_16(volatile uint16_t *addr, uint16_t old, uint16_t new)
common/lib/libc/atomic/atomic_cas_by_cas32.c
54
const uint32_t new32_part = (uint32_t)new << shift;
common/lib/libc/atomic/atomic_cas_by_cas32.c
68
_atomic_cas_8(volatile uint8_t *addr, uint8_t old, uint8_t new)
common/lib/libc/atomic/atomic_cas_by_cas32.c
76
const uint32_t new32_part = (uint32_t)new << shift;
common/lib/libc/atomic/atomic_dec_32_cas.c
39
uint32_t old, new;
common/lib/libc/atomic/atomic_dec_32_cas.c
43
new = old - 1;
common/lib/libc/atomic/atomic_dec_32_cas.c
44
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_dec_32_nv_cas.c
39
uint32_t old, new;
common/lib/libc/atomic/atomic_dec_32_nv_cas.c
43
new = old - 1;
common/lib/libc/atomic/atomic_dec_32_nv_cas.c
44
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_dec_32_nv_cas.c
46
return new;
common/lib/libc/atomic/atomic_dec_64_cas.c
41
uint64_t old, new;
common/lib/libc/atomic/atomic_dec_64_cas.c
45
new = old - 1;
common/lib/libc/atomic/atomic_dec_64_cas.c
46
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_dec_64_nv_cas.c
41
uint64_t old, new;
common/lib/libc/atomic/atomic_dec_64_nv_cas.c
45
new = old - 1;
common/lib/libc/atomic/atomic_dec_64_nv_cas.c
46
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_dec_64_nv_cas.c
48
return new;
common/lib/libc/atomic/atomic_inc_32_cas.c
39
uint32_t old, new;
common/lib/libc/atomic/atomic_inc_32_cas.c
43
new = old + 1;
common/lib/libc/atomic/atomic_inc_32_cas.c
44
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_inc_32_nv_cas.c
39
uint32_t old, new;
common/lib/libc/atomic/atomic_inc_32_nv_cas.c
43
new = old + 1;
common/lib/libc/atomic/atomic_inc_32_nv_cas.c
44
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_inc_32_nv_cas.c
46
return new;
common/lib/libc/atomic/atomic_inc_64_cas.c
41
uint64_t old, new;
common/lib/libc/atomic/atomic_inc_64_cas.c
45
new = old + 1;
common/lib/libc/atomic/atomic_inc_64_cas.c
46
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_inc_64_nv_cas.c
41
uint64_t old, new;
common/lib/libc/atomic/atomic_inc_64_nv_cas.c
45
new = old + 1;
common/lib/libc/atomic/atomic_inc_64_nv_cas.c
46
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_inc_64_nv_cas.c
48
return new;
common/lib/libc/atomic/atomic_init_testset.c
104
_atomic_cas_up(volatile uint32_t *ptr, uint32_t old, uint32_t new)
common/lib/libc/atomic/atomic_init_testset.c
113
*ptr = new;
common/lib/libc/atomic/atomic_init_testset.c
122
_atomic_cas_64_up(volatile uint64_t *ptr, uint64_t old, uint64_t new)
common/lib/libc/atomic/atomic_init_testset.c
131
*ptr = new;
common/lib/libc/atomic/atomic_init_testset.c
140
_atomic_cas_16_up(volatile uint16_t *ptr, uint16_t old, uint16_t new)
common/lib/libc/atomic/atomic_init_testset.c
149
*ptr = new;
common/lib/libc/atomic/atomic_init_testset.c
158
_atomic_cas_8_up(volatile uint8_t *ptr, uint8_t old, uint8_t new)
common/lib/libc/atomic/atomic_init_testset.c
167
*ptr = new;
common/lib/libc/atomic/atomic_init_testset.c
175
_atomic_cas_mp(volatile uint32_t *ptr, uint32_t old, uint32_t new)
common/lib/libc/atomic/atomic_init_testset.c
184
*ptr = new;
common/lib/libc/atomic/atomic_init_testset.c
193
_atomic_cas_64_mp(volatile uint64_t *ptr, uint64_t old, uint64_t new)
common/lib/libc/atomic/atomic_init_testset.c
202
*ptr = new;
common/lib/libc/atomic/atomic_init_testset.c
211
_atomic_cas_16_mp(volatile uint16_t *ptr, uint16_t old, uint16_t new)
common/lib/libc/atomic/atomic_init_testset.c
220
*ptr = new;
common/lib/libc/atomic/atomic_init_testset.c
228
_atomic_cas_8_mp(volatile uint8_t *ptr, uint8_t old, uint8_t new)
common/lib/libc/atomic/atomic_init_testset.c
237
*ptr = new;
common/lib/libc/atomic/atomic_init_testset.c
245
_atomic_cas_32(volatile uint32_t *ptr, uint32_t old, uint32_t new)
common/lib/libc/atomic/atomic_init_testset.c
248
return (*_atomic_cas_fn)(ptr, old, new);
common/lib/libc/atomic/atomic_init_testset.c
255
_atomic_cas_64(volatile uint64_t *ptr, uint64_t old, uint64_t new)
common/lib/libc/atomic/atomic_init_testset.c
258
return (*_atomic_cas_64_fn)(ptr, old, new);
common/lib/libc/atomic/atomic_init_testset.c
263
_atomic_cas_16(volatile uint16_t *ptr, uint16_t old, uint16_t new)
common/lib/libc/atomic/atomic_init_testset.c
266
return (*_atomic_cas_16_fn)(ptr, old, new);
common/lib/libc/atomic/atomic_init_testset.c
272
_atomic_cas_8(volatile uint8_t *ptr, uint8_t old, uint8_t new)
common/lib/libc/atomic/atomic_init_testset.c
275
return (*_atomic_cas_8_fn)(ptr, old, new);
common/lib/libc/atomic/atomic_init_testset.c
349
int64_t sync_val_compare_and_swap_8(volatile int64_t *addr, int64_t old, int64_t new)
common/lib/libc/atomic/atomic_init_testset.c
353
sync_val_compare_and_swap_8(volatile int64_t *addr, int64_t old, int64_t new)
common/lib/libc/atomic/atomic_init_testset.c
356
const uint64_t newv = (uint64_t)new;
common/lib/libc/atomic/atomic_nand_16_cas.c
44
uint16_t old, new;
common/lib/libc/atomic/atomic_nand_16_cas.c
48
new = ~(old & val);
common/lib/libc/atomic/atomic_nand_16_cas.c
49
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_nand_16_cas.c
56
uint16_t old, new;
common/lib/libc/atomic/atomic_nand_16_cas.c
60
new = ~(old & val);
common/lib/libc/atomic/atomic_nand_16_cas.c
61
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_nand_16_cas.c
62
return new;
common/lib/libc/atomic/atomic_nand_32_cas.c
44
uint32_t old, new;
common/lib/libc/atomic/atomic_nand_32_cas.c
48
new = ~(old & val);
common/lib/libc/atomic/atomic_nand_32_cas.c
49
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_nand_32_cas.c
56
uint32_t old, new;
common/lib/libc/atomic/atomic_nand_32_cas.c
60
new = ~(old & val);
common/lib/libc/atomic/atomic_nand_32_cas.c
61
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_nand_32_cas.c
62
return new;
common/lib/libc/atomic/atomic_nand_64_cas.c
46
uint64_t old, new;
common/lib/libc/atomic/atomic_nand_64_cas.c
50
new = ~(old & val);
common/lib/libc/atomic/atomic_nand_64_cas.c
51
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_nand_64_cas.c
58
uint64_t old, new;
common/lib/libc/atomic/atomic_nand_64_cas.c
62
new = ~(old & val);
common/lib/libc/atomic/atomic_nand_64_cas.c
63
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_nand_64_cas.c
64
return new;
common/lib/libc/atomic/atomic_nand_8_cas.c
44
uint8_t old, new;
common/lib/libc/atomic/atomic_nand_8_cas.c
48
new = ~(old & val);
common/lib/libc/atomic/atomic_nand_8_cas.c
49
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_nand_8_cas.c
56
uint8_t old, new;
common/lib/libc/atomic/atomic_nand_8_cas.c
60
new = ~(old & val);
common/lib/libc/atomic/atomic_nand_8_cas.c
61
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_nand_8_cas.c
62
return new;
common/lib/libc/atomic/atomic_or_16_cas.c
44
uint16_t old, new;
common/lib/libc/atomic/atomic_or_16_cas.c
48
new = old | val;
common/lib/libc/atomic/atomic_or_16_cas.c
49
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_or_16_cas.c
56
uint16_t old, new;
common/lib/libc/atomic/atomic_or_16_cas.c
60
new = old | val;
common/lib/libc/atomic/atomic_or_16_cas.c
61
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_or_16_cas.c
62
return new;
common/lib/libc/atomic/atomic_or_32_cas.c
46
uint32_t old, new;
common/lib/libc/atomic/atomic_or_32_cas.c
50
new = old | val;
common/lib/libc/atomic/atomic_or_32_cas.c
51
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_or_32_nv_cas.c
39
uint32_t old, new;
common/lib/libc/atomic/atomic_or_32_nv_cas.c
43
new = old | val;
common/lib/libc/atomic/atomic_or_32_nv_cas.c
44
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_or_32_nv_cas.c
46
return new;
common/lib/libc/atomic/atomic_or_64_cas.c
44
uint64_t old, new;
common/lib/libc/atomic/atomic_or_64_cas.c
48
new = old | val;
common/lib/libc/atomic/atomic_or_64_cas.c
49
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_or_64_nv_cas.c
41
uint64_t old, new;
common/lib/libc/atomic/atomic_or_64_nv_cas.c
45
new = old | val;
common/lib/libc/atomic/atomic_or_64_nv_cas.c
46
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_or_64_nv_cas.c
48
return new;
common/lib/libc/atomic/atomic_or_8_cas.c
44
uint8_t old, new;
common/lib/libc/atomic/atomic_or_8_cas.c
48
new = old | val;
common/lib/libc/atomic/atomic_or_8_cas.c
49
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_or_8_cas.c
56
uint8_t old, new;
common/lib/libc/atomic/atomic_or_8_cas.c
60
new = old | val;
common/lib/libc/atomic/atomic_or_8_cas.c
61
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_or_8_cas.c
62
return new;
common/lib/libc/atomic/atomic_sub_16_cas.c
44
uint16_t old, new;
common/lib/libc/atomic/atomic_sub_16_cas.c
48
new = old - val;
common/lib/libc/atomic/atomic_sub_16_cas.c
49
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_sub_16_cas.c
56
uint16_t old, new;
common/lib/libc/atomic/atomic_sub_16_cas.c
60
new = old - val;
common/lib/libc/atomic/atomic_sub_16_cas.c
61
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_sub_16_cas.c
62
return new;
common/lib/libc/atomic/atomic_sub_32_cas.c
44
uint32_t old, new;
common/lib/libc/atomic/atomic_sub_32_cas.c
48
new = old - val;
common/lib/libc/atomic/atomic_sub_32_cas.c
49
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_sub_32_cas.c
56
uint32_t old, new;
common/lib/libc/atomic/atomic_sub_32_cas.c
60
new = old - val;
common/lib/libc/atomic/atomic_sub_32_cas.c
61
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_sub_32_cas.c
62
return new;
common/lib/libc/atomic/atomic_sub_64_cas.c
46
uint64_t old, new;
common/lib/libc/atomic/atomic_sub_64_cas.c
50
new = old - val;
common/lib/libc/atomic/atomic_sub_64_cas.c
51
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_sub_64_cas.c
58
uint64_t old, new;
common/lib/libc/atomic/atomic_sub_64_cas.c
62
new = old - val;
common/lib/libc/atomic/atomic_sub_64_cas.c
63
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_sub_64_cas.c
64
return new;
common/lib/libc/atomic/atomic_sub_8_cas.c
44
uint8_t old, new;
common/lib/libc/atomic/atomic_sub_8_cas.c
48
new = old - val;
common/lib/libc/atomic/atomic_sub_8_cas.c
49
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_sub_8_cas.c
56
uint8_t old, new;
common/lib/libc/atomic/atomic_sub_8_cas.c
60
new = old - val;
common/lib/libc/atomic/atomic_sub_8_cas.c
61
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_sub_8_cas.c
62
return new;
common/lib/libc/atomic/atomic_swap_16_cas.c
37
atomic_swap_16(volatile uint16_t *addr, uint16_t new)
common/lib/libc/atomic/atomic_swap_16_cas.c
41
atomic_swap_16(volatile uint16_t *addr, uint16_t new)
common/lib/libc/atomic/atomic_swap_16_cas.c
47
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_swap_32_cas.c
37
atomic_swap_32(volatile uint32_t *addr, uint32_t new)
common/lib/libc/atomic/atomic_swap_32_cas.c
43
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_swap_64_cas.c
39
atomic_swap_64(volatile uint64_t *addr, uint64_t new)
common/lib/libc/atomic/atomic_swap_64_cas.c
45
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_swap_8_cas.c
37
atomic_swap_8(volatile uint8_t *addr, uint8_t new)
common/lib/libc/atomic/atomic_swap_8_cas.c
41
atomic_swap_8(volatile uint8_t *addr, uint8_t new)
common/lib/libc/atomic/atomic_swap_8_cas.c
47
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_xor_16_cas.c
44
uint16_t old, new;
common/lib/libc/atomic/atomic_xor_16_cas.c
48
new = old ^ val;
common/lib/libc/atomic/atomic_xor_16_cas.c
49
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_xor_16_cas.c
56
uint16_t old, new;
common/lib/libc/atomic/atomic_xor_16_cas.c
60
new = old ^ val;
common/lib/libc/atomic/atomic_xor_16_cas.c
61
} while (atomic_cas_16(addr, old, new) != old);
common/lib/libc/atomic/atomic_xor_16_cas.c
62
return new;
common/lib/libc/atomic/atomic_xor_32_cas.c
44
uint32_t old, new;
common/lib/libc/atomic/atomic_xor_32_cas.c
48
new = old ^ val;
common/lib/libc/atomic/atomic_xor_32_cas.c
49
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_xor_32_cas.c
56
uint32_t old, new;
common/lib/libc/atomic/atomic_xor_32_cas.c
60
new = old ^ val;
common/lib/libc/atomic/atomic_xor_32_cas.c
61
} while (atomic_cas_32(addr, old, new) != old);
common/lib/libc/atomic/atomic_xor_32_cas.c
62
return new;
common/lib/libc/atomic/atomic_xor_64_cas.c
46
uint64_t old, new;
common/lib/libc/atomic/atomic_xor_64_cas.c
50
new = old ^ val;
common/lib/libc/atomic/atomic_xor_64_cas.c
51
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_xor_64_cas.c
58
uint64_t old, new;
common/lib/libc/atomic/atomic_xor_64_cas.c
62
new = old ^ val;
common/lib/libc/atomic/atomic_xor_64_cas.c
63
} while (atomic_cas_64(addr, old, new) != old);
common/lib/libc/atomic/atomic_xor_64_cas.c
64
return new;
common/lib/libc/atomic/atomic_xor_8_cas.c
44
uint8_t old, new;
common/lib/libc/atomic/atomic_xor_8_cas.c
48
new = old ^ val;
common/lib/libc/atomic/atomic_xor_8_cas.c
49
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_xor_8_cas.c
56
uint8_t old, new;
common/lib/libc/atomic/atomic_xor_8_cas.c
60
new = old ^ val;
common/lib/libc/atomic/atomic_xor_8_cas.c
61
} while (atomic_cas_8(addr, old, new) != old);
common/lib/libc/atomic/atomic_xor_8_cas.c
62
return new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1865
struct remoteconf *from, *new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1880
new = duprmconf_shallow(from);
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1881
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1887
new->name = racoon_strdup($2->v);
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1890
cur_rmconf = new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1898
struct remoteconf *new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1906
new = newrmconf();
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1907
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1912
new->name = racoon_strdup($2->v);
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1915
cur_rmconf = new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1922
struct remoteconf *from, *new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1931
new = duprmconf_shallow(from);
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1932
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1939
new->remote = $2;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1941
cur_rmconf = new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1946
struct remoteconf *new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1948
new = newrmconf();
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1949
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1954
new->remote = $2;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
1956
cur_rmconf = new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2360
struct etypes *new = racoon_malloc(sizeof(struct etypes));
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2361
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2366
new->next = NULL; new->type = $2;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2368
cur_rmconf->etypes = new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2375
p->next = new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2620
struct secprotospec *new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2622
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2623
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2628
new->encklen = 0; /*XXX*/
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2635
new->vendorid = VENDORID_UNKNOWN;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2637
return new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2655
struct secprotospec *new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2657
new = newspspec();
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2658
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2663
memcpy(new, spspec, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2666
new->gssid = racoon_strdup(spspec->gssid);
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2667
STRDUP_FATAL(new->gssid);
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2670
new->remote = racoon_malloc(sizeof(*new->remote));
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2671
if (new->remote == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2676
memcpy(new->remote, spspec->remote, sizeof(*new->remote));
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2679
return new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2688
struct secprotospec *p, *new, *last;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2690
for(p = src->spspec, last = NULL; p; p = p->next, last = new) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2691
new = dupspspec(p);
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2692
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2695
new->prev = last;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2696
new->next = NULL; /* not necessary but clean */
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2699
last->next = new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2701
dst->spspec = new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2824
struct isakmpsa *new;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2862
new = newisakmpsa();
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2863
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2867
new->prop_no = prop_no;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2868
new->trns_no = trns_no++;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2869
new->lifetime = lifetime;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2870
new->lifebyte = lifebyte;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2871
new->enctype = types[algclass_isakmp_enc];
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2872
new->encklen = encklen;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2873
new->authmethod = types[algclass_isakmp_ameth];
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2874
new->hashtype = types[algclass_isakmp_hash];
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2875
new->dh_group = types[algclass_isakmp_dh];
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2876
new->vendorid = vendorid;
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2878
if (new->authmethod == OAKLEY_ATTR_AUTH_METHOD_GSSAPI_KRB) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2880
if ((new->gssid = vmalloc(strlen(gssid))) == NULL) {
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2881
racoon_free(new);
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2885
memcpy(new->gssid->v, gssid, new->gssid->l);
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2893
new->gssid = gssapi_get_default_gss_id();
crypto/dist/ipsec-tools/src/racoon/cfparse.y
2897
insisakmpsa(new, rmconf);
crypto/dist/ipsec-tools/src/racoon/genlist.c
44
struct genlist *new = calloc(sizeof(struct genlist), 1);
crypto/dist/ipsec-tools/src/racoon/genlist.c
45
TAILQ_INIT(new);
crypto/dist/ipsec-tools/src/racoon/genlist.c
46
return new;
crypto/dist/ipsec-tools/src/racoon/handler.c
1067
struct recvdpkt *new = NULL;
crypto/dist/ipsec-tools/src/racoon/handler.c
1074
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/handler.c
1075
if (!new) {
crypto/dist/ipsec-tools/src/racoon/handler.c
1081
new->hash = eay_md5_one(rbuf);
crypto/dist/ipsec-tools/src/racoon/handler.c
1082
if (!new->hash) {
crypto/dist/ipsec-tools/src/racoon/handler.c
1085
del_recvdpkt(new);
crypto/dist/ipsec-tools/src/racoon/handler.c
1088
new->remote = dupsaddr(remote);
crypto/dist/ipsec-tools/src/racoon/handler.c
1089
if (new->remote == NULL) {
crypto/dist/ipsec-tools/src/racoon/handler.c
1092
del_recvdpkt(new);
crypto/dist/ipsec-tools/src/racoon/handler.c
1095
new->local = dupsaddr(local);
crypto/dist/ipsec-tools/src/racoon/handler.c
1096
if (new->local == NULL) {
crypto/dist/ipsec-tools/src/racoon/handler.c
1099
del_recvdpkt(new);
crypto/dist/ipsec-tools/src/racoon/handler.c
1102
new->sendbuf = vdup(sbuf);
crypto/dist/ipsec-tools/src/racoon/handler.c
1103
if (new->sendbuf == NULL) {
crypto/dist/ipsec-tools/src/racoon/handler.c
1106
del_recvdpkt(new);
crypto/dist/ipsec-tools/src/racoon/handler.c
1110
new->retry_counter = lcconf->retry_counter;
crypto/dist/ipsec-tools/src/racoon/handler.c
1111
sched_get_monotonic_time(&new->time_send);
crypto/dist/ipsec-tools/src/racoon/handler.c
1113
LIST_INSERT_HEAD(&rcptree, new, chain);
crypto/dist/ipsec-tools/src/racoon/handler.c
934
struct contacted *new;
crypto/dist/ipsec-tools/src/racoon/handler.c
937
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/handler.c
938
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/handler.c
941
new->remote = dupsaddr(remote);
crypto/dist/ipsec-tools/src/racoon/handler.c
942
if (new->remote == NULL) {
crypto/dist/ipsec-tools/src/racoon/handler.c
945
racoon_free(new);
crypto/dist/ipsec-tools/src/racoon/handler.c
949
LIST_INSERT_HEAD(&ctdtree, new, chain);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3703
vchar_t *new = NULL;
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3724
new = vmalloc(value->l - 1);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3725
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3727
memcpy(new->v, value->v, new->l);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3749
new = vrealloc(new, tlen + len);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3750
if (!new) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3754
memcpy(new->v + tlen, b, len);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3762
new = vmalloc(value->l - 1);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3763
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3768
memcpy(new->v, value->v, new->l);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3792
new = vmalloc(sysdep_sa_len(sa));
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3793
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3797
memcpy(new->v, sa, new->l);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3804
new = eay_hex2asn1dn(value->v + 1, - 1);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3807
new = eay_str2asn1dn(value->v, value->l - 1);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3809
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3815
unsigned char *ptr = (unsigned char *) new->v;
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3819
xn = d2i_X509_NAME(NULL, (void *)&ptr, new->l);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3835
*vpp = new;
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3922
vchar_t *new;
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3965
new = vmalloc(sizeof(struct ipsecdoi_id_b) + len1 + len2);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3966
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3972
memset(new->v, 0, new->l);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3975
((struct ipsecdoi_id_b *)new->v)->type = type;
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3982
((struct ipsecdoi_id_b *)new->v)->proto_id =
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3984
((struct ipsecdoi_id_b *)new->v)->port =
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3986
memcpy(new->v + sizeof(struct ipsecdoi_id_b), sa, len1);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3992
u_char *p = (unsigned char *) new->v +
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4005
return new;
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4012
vchar_t *new;
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4041
new = vmalloc(sizeof(struct ipsecdoi_id_b) + len1 + len2);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4042
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4048
memset(new->v, 0, new->l);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4050
((struct ipsecdoi_id_b *)new->v)->type = type;
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4057
((struct ipsecdoi_id_b *)new->v)->proto_id =
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4060
((struct ipsecdoi_id_b *)new->v)->port =
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4062
memcpy(new->v + sizeof(struct ipsecdoi_id_b),
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4065
memcpy(new->v + sizeof(struct ipsecdoi_id_b) + len1,
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
4068
return new;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1004
struct isakmp_data *new;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1013
new = (struct isakmp_data *)buffer->v;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1015
new->type = attr->type;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1016
new->lorv = htons(len);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1017
memcpy(new + 1, addr, len);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1028
struct isakmp_data *new;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1038
new = (struct isakmp_data *)buffer->v;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1040
new->type = attr->type;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1041
new->lorv = htons(len);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1044
memcpy(new + 1, netbuff, len);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1058
struct isakmp_data *new;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1073
new = (struct isakmp_data *)bufone->v;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1074
new->type = attr->type;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1075
new->lorv = htons(len);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1076
memcpy(new + 1, &addr[i], len);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1077
new += (len + sizeof(*attr));
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
742
vchar_t *new;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
744
new = vmalloc(s->l + append->l);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
745
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
751
memcpy(new->v, s->v, s->l);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
752
memcpy(new->v + s->l, append->v, append->l);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
755
return new;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
904
struct isakmp_data *new;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
911
new = (struct isakmp_data *)buffer->v;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
913
new->type = attr->type;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
914
new->lorv = htons(0);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
945
struct isakmp_data *new;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
953
new = (struct isakmp_data *)buffer->v;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
956
new->type = htons(type | ISAKMP_GEN_TV);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
957
new->lorv = htons(value);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
968
struct isakmp_data *new;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
979
new = (struct isakmp_data *)buffer->v;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
981
new->type = attr->type;
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
982
new->lorv = htons(len);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
983
data = (char *)(new + 1);
crypto/dist/ipsec-tools/src/racoon/isakmp_ident.c
1718
vchar_t *buf = NULL, *new = NULL;
crypto/dist/ipsec-tools/src/racoon/isakmp_ident.c
1827
new = oakley_do_encrypt(iph1, buf, iph1->ivm->ive, iph1->ivm->iv);
crypto/dist/ipsec-tools/src/racoon/isakmp_ident.c
1828
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/isakmp_ident.c
1833
buf = new;
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
2055
vchar_t *buf = NULL, *new = NULL;
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
2092
new = oakley_do_encrypt(iph2->ph1, buf, iph2->ivm->ive, iph2->ivm->iv);
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
2094
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
2099
buf = new;
crypto/dist/ipsec-tools/src/racoon/isakmp_unity.c
263
struct isakmp_data *new;
crypto/dist/ipsec-tools/src/racoon/isakmp_unity.c
277
new = (struct isakmp_data *)buffer->v;
crypto/dist/ipsec-tools/src/racoon/isakmp_unity.c
278
new->type = attr->type;
crypto/dist/ipsec-tools/src/racoon/isakmp_unity.c
279
new->lorv = htons(len);
crypto/dist/ipsec-tools/src/racoon/isakmp_unity.c
281
network = (struct unity_network *)(new + 1);
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1782
struct xauth_rmconf *new;
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1785
new = racoon_malloc(sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1786
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1792
memcpy(new, xauth_rmconf, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1795
new->login = vdup(xauth_rmconf->login);
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1796
if (new->login == NULL) {
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1803
new->pass = vdup(xauth_rmconf->pass);
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1804
if (new->pass == NULL) {
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1811
return new;
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1816
vfree(new->login);
crypto/dist/ipsec-tools/src/racoon/isakmp_xauth.c
1817
racoon_free(new);
crypto/dist/ipsec-tools/src/racoon/oakley.c
2897
vchar_t *buf = NULL, *new = NULL;
crypto/dist/ipsec-tools/src/racoon/oakley.c
2936
new = alg_oakley_encdef_decrypt(iph1->approval->enctype,
crypto/dist/ipsec-tools/src/racoon/oakley.c
2938
if (new == NULL || new->v == NULL || new->l == 0) {
crypto/dist/ipsec-tools/src/racoon/oakley.c
2954
plogdump(LLV_DEBUG, new->v, new->l);
crypto/dist/ipsec-tools/src/racoon/oakley.c
2958
padlen = new->v[new->l - 1] + 1;
crypto/dist/ipsec-tools/src/racoon/oakley.c
2960
padlen = new->v[new->l - 1];
crypto/dist/ipsec-tools/src/racoon/oakley.c
2965
if (padlen > new->l) {
crypto/dist/ipsec-tools/src/racoon/oakley.c
2968
padlen, new->l);
crypto/dist/ipsec-tools/src/racoon/oakley.c
2969
plogdump(LLV_ERROR, new->v, new->l);
crypto/dist/ipsec-tools/src/racoon/oakley.c
2972
new->l -= padlen;
crypto/dist/ipsec-tools/src/racoon/oakley.c
2979
len = sizeof(struct isakmp) + new->l;
crypto/dist/ipsec-tools/src/racoon/oakley.c
2987
memcpy(buf->v + sizeof(struct isakmp), new->v, new->l);
crypto/dist/ipsec-tools/src/racoon/oakley.c
3004
if (new != NULL)
crypto/dist/ipsec-tools/src/racoon/oakley.c
3005
vfree(new);
crypto/dist/ipsec-tools/src/racoon/oakley.c
3017
vchar_t *buf = 0, *new = 0;
crypto/dist/ipsec-tools/src/racoon/oakley.c
3068
new = alg_oakley_encdef_encrypt(iph1->approval->enctype,
crypto/dist/ipsec-tools/src/racoon/oakley.c
3070
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/oakley.c
3086
memcpy(ivp->v, (caddr_t)&new->v[new->l - blen], blen);
crypto/dist/ipsec-tools/src/racoon/oakley.c
3092
len = sizeof(struct isakmp) + new->l;
crypto/dist/ipsec-tools/src/racoon/oakley.c
3100
memcpy(buf->v + sizeof(struct isakmp), new->v, new->l);
crypto/dist/ipsec-tools/src/racoon/oakley.c
3112
if (new != NULL)
crypto/dist/ipsec-tools/src/racoon/oakley.c
3113
vfree(new);
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3668
struct secpolicy *new = NULL;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3705
new = newsp();
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3706
if (new == NULL) {
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3712
new->spidx.dir = xpl->sadb_x_policy_dir;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3713
new->id = xpl->sadb_x_policy_id;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3714
new->policy = xpl->sadb_x_policy_type;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3715
new->req = NULL;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3729
struct ipsecrequest **p_isr = &new->req;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3819
(*p_isr)->sp = new;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3851
&new->spidx);
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3860
&new->spidx);
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3868
new->spidx.sec_ctx.ctx_alg = ctx->sadb_x_ctx_alg;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3869
new->spidx.sec_ctx.ctx_doi = ctx->sadb_x_ctx_doi;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3870
new->spidx.sec_ctx.ctx_strlen = ctx->sadb_x_ctx_len;
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3871
memcpy(new->spidx.sec_ctx.ctx_str,ctx + 1,ctx->sadb_x_ctx_len);
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3877
new->local = dupsaddr(local);
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3878
new->remote = dupsaddr(remote);
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3881
inssp(new);
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3885
if (new != NULL) {
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3886
if (new->req != NULL)
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3887
racoon_free(new->req);
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3888
racoon_free(new);
crypto/dist/ipsec-tools/src/racoon/policy.c
292
struct secpolicy *new;
crypto/dist/ipsec-tools/src/racoon/policy.c
294
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/policy.c
295
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/policy.c
298
return new;
crypto/dist/ipsec-tools/src/racoon/policy.c
384
inssp(struct secpolicy *new)
crypto/dist/ipsec-tools/src/racoon/policy.c
390
if (new->spidx.priority < p->spidx.priority) {
crypto/dist/ipsec-tools/src/racoon/policy.c
391
TAILQ_INSERT_BEFORE(p, new, chain);
crypto/dist/ipsec-tools/src/racoon/policy.c
397
TAILQ_INSERT_TAIL(&sptree, new, chain);
crypto/dist/ipsec-tools/src/racoon/policy.c
429
struct ipsecrequest *new;
crypto/dist/ipsec-tools/src/racoon/policy.c
431
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/policy.c
432
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/policy.c
435
return new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
100
return new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
105
inssaprop(struct saprop **head, struct saprop *new)
crypto/dist/ipsec-tools/src/racoon/proposal.c
110
*head = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
116
p->next = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
123
inssaproto(struct saprop *pp, struct saproto *new)
crypto/dist/ipsec-tools/src/racoon/proposal.c
130
pp->head = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
132
p->next = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
139
inssaprotorev(struct saprop *pp, struct saproto *new)
crypto/dist/ipsec-tools/src/racoon/proposal.c
141
new->next = pp->head;
crypto/dist/ipsec-tools/src/racoon/proposal.c
142
pp->head = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
150
struct satrns *new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
152
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/proposal.c
153
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/proposal.c
156
return new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
161
inssatrns(struct saproto *pr, struct satrns *new)
crypto/dist/ipsec-tools/src/racoon/proposal.c
168
pr->head = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
170
tr->next = new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
82
struct saprop *new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
84
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/proposal.c
85
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/proposal.c
88
return new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
94
struct saproto *new;
crypto/dist/ipsec-tools/src/racoon/proposal.c
96
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/proposal.c
97
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
1063
struct idspec *new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
1065
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
1066
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
1068
new->idtype = IDTYPE_ADDRESS;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
1069
new->id = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
1070
return new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
479
struct remoteconf *new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
482
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
483
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
486
new->proposal = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
489
new->doitype = IPSEC_DOI;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
490
new->sittype = IPSECDOI_SIT_IDENTITY_ONLY;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
491
new->idvtype = IDTYPE_UNDEFINED;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
492
new->idvl_p = genlist_init();
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
493
new->nonce_size = DEFAULT_NONCE_SIZE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
494
new->passive = FALSE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
495
new->ike_frag = FALSE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
496
new->esp_frag = IP_MAXPACKET;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
497
new->ini_contact = TRUE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
498
new->mode_cfg = FALSE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
499
new->pcheck_level = PROP_CHECK_STRICT;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
500
new->verify_identifier = FALSE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
501
new->verify_cert = TRUE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
502
new->cacertfile = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
503
new->send_cert = TRUE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
504
new->send_cr = TRUE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
505
new->match_empty_cr = FALSE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
506
new->support_proxy = FALSE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
508
new->script[i] = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
509
new->gen_policy = FALSE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
510
new->nat_traversal = FALSE;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
511
new->rsa_private = genlist_init();
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
512
new->rsa_public = genlist_init();
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
513
new->idv = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
514
new->key = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
516
new->dpd = TRUE; /* Enable DPD support by default */
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
517
new->dpd_interval = 0; /* Disable DPD checks by default */
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
518
new->dpd_retry = 5;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
519
new->dpd_maxfails = 5;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
521
new->rekey = REKEY_ON;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
523
new->weak_phase1_check = 0;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
526
new->xauth = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
529
new->lifetime = oakley_get_defaultlifetime();
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
531
return new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
556
struct rsa_key *new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
558
new = rsa_key_dup((struct rsa_key *)entry);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
559
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
561
genlist_append(arg, new);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
571
struct remoteconf *new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
573
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
574
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
577
memcpy(new, rmconf, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
578
new->name = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
579
new->inherited_from = rmconf;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
581
new->proposal = NULL; /* will be filled by set_isakmp_proposal() */
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
586
new->remote = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
588
return new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
596
duprmconf_finish(struct remoteconf *new)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
601
if (new->inherited_from == NULL)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
604
rmconf = new->inherited_from;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
607
if (new->etypes != NULL && new->etypes == rmconf->etypes)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
608
new->etypes = dupetypes(new->etypes);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
609
if (new->idvl_p == rmconf->idvl_p) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
610
new->idvl_p = genlist_init();
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
611
genlist_foreach(rmconf->idvl_p, dupidvl, new->idvl_p);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
614
if (new->rsa_private == rmconf->rsa_private) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
615
new->rsa_private = genlist_init();
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
616
genlist_foreach(rmconf->rsa_private, duprsa, new->rsa_private);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
618
if (new->rsa_public == rmconf->rsa_public) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
619
new->rsa_public = genlist_init();
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
620
genlist_foreach(rmconf->rsa_public, duprsa, new->rsa_public);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
622
if (new->remote != NULL && new->remote == rmconf->remote) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
623
new->remote = racoon_malloc(sizeof(*new->remote));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
624
if (new->remote == NULL) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
629
memcpy(new->remote, rmconf->remote, sizeof(*new->remote));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
631
if (new->spspec != NULL && new->spspec == rmconf->spspec) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
632
dupspspec_list(new, rmconf);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
641
if (new->xauth != NULL && new->xauth == rmconf->xauth) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
642
new->xauth = xauth_rmconf_dup(new->xauth);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
643
if (new->xauth == NULL)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
649
if (new->mycertfile != NULL && new->mycertfile == rmconf->mycertfile) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
650
new->mycertfile = racoon_strdup(new->mycertfile);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
651
STRDUP_FATAL(new->mycertfile);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
653
if (new->myprivfile != NULL && new->myprivfile == rmconf->myprivfile) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
654
new->myprivfile = racoon_strdup(new->myprivfile);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
655
STRDUP_FATAL(new->myprivfile);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
657
if (new->peerscertfile != NULL && new->peerscertfile == rmconf->peerscertfile) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
658
new->peerscertfile = racoon_strdup(new->peerscertfile);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
659
STRDUP_FATAL(new->peerscertfile);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
661
if (new->cacertfile != NULL && new->cacertfile == rmconf->cacertfile) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
662
new->cacertfile = racoon_strdup(new->cacertfile);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
663
STRDUP_FATAL(new->cacertfile);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
665
if (new->idv != NULL && new->idv == rmconf->idv) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
666
new->idv = vdup(new->idv);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
667
STRDUP_FATAL(new->idv);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
669
if (new->key != NULL && new->key == rmconf->key) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
670
new->key = vdup(new->key);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
671
STRDUP_FATAL(new->key);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
673
if (new->mycert != NULL && new->mycert == rmconf->mycert) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
674
new->mycert = vdup(new->mycert);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
675
STRDUP_FATAL(new->mycert);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
677
if (new->peerscert != NULL && new->peerscert == rmconf->peerscert) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
678
new->peerscert = vdup(new->peerscert);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
679
STRDUP_FATAL(new->peerscert);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
681
if (new->cacert != NULL && new->cacert == rmconf->cacert) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
682
new->cacert = vdup(new->cacert);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
683
STRDUP_FATAL(new->cacert);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
686
if (new->script[i] != NULL && new->script[i] == rmconf->script[i]) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
687
new->script[i] = vdup(new->script[i]);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
688
STRDUP_FATAL(new->script[i]);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
774
struct etypes *new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
779
new = racoon_malloc(sizeof(struct etypes));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
780
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
783
new->type = orig->type;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
784
new->next = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
787
new->next=dupetypes(orig->next);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
789
return new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
804
insrmconf(struct remoteconf *new)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
806
if (new->name == NULL) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
807
new->name = racoon_strdup(saddr2str(new->remote));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
809
if (new->remote == NULL) {
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
810
new->remote = newsaddr(sizeof(struct sockaddr));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
811
new->remote->sa_family = AF_UNSPEC;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
814
TAILQ_INSERT_HEAD(&rmtree, new, chain);
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
883
struct isakmpsa *new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
885
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
886
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
893
new->vendorid = VENDORID_UNKNOWN;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
895
new->next = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
897
new->gssid = NULL;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
900
return new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
907
insisakmpsa(struct isakmpsa *new, struct remoteconf *rmconf)
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
912
rmconf->proposal = new;
crypto/dist/ipsec-tools/src/racoon/remoteconf.c
918
p->next = new;
crypto/dist/ipsec-tools/src/racoon/rsalist.c
101
new->rsa = d != NULL ? RSAPrivateKey_dup(key->rsa) : RSAPublicKey_dup(key->rsa);
crypto/dist/ipsec-tools/src/racoon/rsalist.c
102
if (new->rsa == NULL)
crypto/dist/ipsec-tools/src/racoon/rsalist.c
107
new->src = malloc(sizeof(*new->src));
crypto/dist/ipsec-tools/src/racoon/rsalist.c
108
if (new->src == NULL)
crypto/dist/ipsec-tools/src/racoon/rsalist.c
110
memcpy(new->src, key->src, sizeof(*new->src));
crypto/dist/ipsec-tools/src/racoon/rsalist.c
113
new->dst = malloc(sizeof(*new->dst));
crypto/dist/ipsec-tools/src/racoon/rsalist.c
114
if (new->dst == NULL)
crypto/dist/ipsec-tools/src/racoon/rsalist.c
116
memcpy(new->dst, key->dst, sizeof(*new->dst));
crypto/dist/ipsec-tools/src/racoon/rsalist.c
119
return new;
crypto/dist/ipsec-tools/src/racoon/rsalist.c
122
if (new->rsa != NULL)
crypto/dist/ipsec-tools/src/racoon/rsalist.c
123
RSA_free(new->rsa);
crypto/dist/ipsec-tools/src/racoon/rsalist.c
124
if (new->dst != NULL)
crypto/dist/ipsec-tools/src/racoon/rsalist.c
125
free(new->dst);
crypto/dist/ipsec-tools/src/racoon/rsalist.c
126
if (new->src != NULL)
crypto/dist/ipsec-tools/src/racoon/rsalist.c
127
free(new->src);
crypto/dist/ipsec-tools/src/racoon/rsalist.c
129
free(new);
crypto/dist/ipsec-tools/src/racoon/rsalist.c
92
struct rsa_key *new;
crypto/dist/ipsec-tools/src/racoon/rsalist.c
94
new = calloc(sizeof(struct rsa_key), 1);
crypto/dist/ipsec-tools/src/racoon/rsalist.c
95
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/sainfo.c
190
struct sainfo *new;
crypto/dist/ipsec-tools/src/racoon/sainfo.c
192
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/sainfo.c
193
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/sainfo.c
196
new->lifetime = IPSECDOI_ATTR_SA_LD_SEC_DEFAULT;
crypto/dist/ipsec-tools/src/racoon/sainfo.c
197
new->lifebyte = IPSECDOI_ATTR_SA_LD_KB_MAX;
crypto/dist/ipsec-tools/src/racoon/sainfo.c
199
return new;
crypto/dist/ipsec-tools/src/racoon/sainfo.c
253
inssainfo(struct sainfo *new)
crypto/dist/ipsec-tools/src/racoon/sainfo.c
258
LIST_INSERT_HEAD(&sitree, new, chain);
crypto/dist/ipsec-tools/src/racoon/sainfo.c
270
npri = prisainfo(new);
crypto/dist/ipsec-tools/src/racoon/sainfo.c
281
LIST_INSERT_BEFORE(s, new, chain);
crypto/dist/ipsec-tools/src/racoon/sainfo.c
288
LIST_INSERT_AFTER(s, new, chain);
crypto/dist/ipsec-tools/src/racoon/sainfo.c
324
struct sainfoalg *new;
crypto/dist/ipsec-tools/src/racoon/sainfo.c
326
new = racoon_calloc(1, sizeof(*new));
crypto/dist/ipsec-tools/src/racoon/sainfo.c
327
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/sainfo.c
330
return new;
crypto/dist/ipsec-tools/src/racoon/sainfo.c
345
inssainfoalg(struct sainfoalg **head, struct sainfoalg *new)
crypto/dist/ipsec-tools/src/racoon/sainfo.c
352
a->next = new;
crypto/dist/ipsec-tools/src/racoon/sainfo.c
354
*head = new;
crypto/dist/ipsec-tools/src/racoon/schedule.c
177
caddr_t new;
crypto/dist/ipsec-tools/src/racoon/schedule.c
196
new = racoon_malloc(*len);
crypto/dist/ipsec-tools/src/racoon/schedule.c
197
if (new == NULL)
crypto/dist/ipsec-tools/src/racoon/schedule.c
199
dst = (struct scheddump *)new;
crypto/dist/ipsec-tools/src/racoon/schedule.c
216
*buf = new;
crypto/dist/ipsec-tools/src/racoon/sockmisc.c
648
struct sockaddr *new;
crypto/dist/ipsec-tools/src/racoon/sockmisc.c
650
if ((new = racoon_calloc(1, len)) == NULL) {
crypto/dist/ipsec-tools/src/racoon/sockmisc.c
658
new->sa_family = AF_INET6;
crypto/dist/ipsec-tools/src/racoon/sockmisc.c
660
new->sa_family = AF_INET;
crypto/dist/ipsec-tools/src/racoon/sockmisc.c
663
new->sa_len = len;
crypto/dist/ipsec-tools/src/racoon/sockmisc.c
666
return new;
crypto/dist/ipsec-tools/src/racoon/str2val.c
53
caddr_t new;
crypto/dist/ipsec-tools/src/racoon/str2val.c
57
if ((new = racoon_malloc(len)) == 0) return(0);
crypto/dist/ipsec-tools/src/racoon/str2val.c
60
snprintf(&new[j], len - j, "%02x", (u_char)buf[i]);
crypto/dist/ipsec-tools/src/racoon/str2val.c
63
new[j++] = ' ';
crypto/dist/ipsec-tools/src/racoon/str2val.c
64
new[j] = '\0';
crypto/dist/ipsec-tools/src/racoon/str2val.c
67
new[j] = '\0';
crypto/dist/ipsec-tools/src/racoon/str2val.c
69
return(new);
crypto/dist/ipsec-tools/src/racoon/vmbuf.c
119
vchar_t *new;
crypto/dist/ipsec-tools/src/racoon/vmbuf.c
126
if ((new = vmalloc(src->l)) == NULL)
crypto/dist/ipsec-tools/src/racoon/vmbuf.c
129
memcpy(new->v, src->v, src->l);
crypto/dist/ipsec-tools/src/racoon/vmbuf.c
131
return new;
dist/pf/sbin/pfctl/pfctl_altq.c
1002
new->y = prev->d * prev->m + prev->y;
dist/pf/sbin/pfctl/pfctl_altq.c
1004
new->m = prev->m;
dist/pf/sbin/pfctl/pfctl_altq.c
1005
LIST_INSERT_AFTER(prev, new, _next);
dist/pf/sbin/pfctl/pfctl_altq.c
1007
return (new);
dist/pf/sbin/pfctl/pfctl_altq.c
961
struct segment *new, *prev, *s;
dist/pf/sbin/pfctl/pfctl_altq.c
974
if ((new = calloc(1, sizeof(struct segment))) == NULL)
dist/pf/sbin/pfctl/pfctl_altq.c
977
new->x = x;
dist/pf/sbin/pfctl/pfctl_altq.c
979
new->d = 0;
dist/pf/sbin/pfctl/pfctl_altq.c
981
new->d = HUGE_VAL;
dist/pf/sbin/pfctl/pfctl_altq.c
983
new->d = s->x - x;
dist/pf/sbin/pfctl/pfctl_altq.c
986
new->y = 0;
dist/pf/sbin/pfctl/pfctl_altq.c
987
new->m = 0;
dist/pf/sbin/pfctl/pfctl_altq.c
988
LIST_INSERT_HEAD(gsc, new, _next);
dist/pf/sbin/pfctl/pfctl_altq.c
997
new->y = prev->y;
dist/pf/sbin/pfctl/pfctl_altq.c
999
new->y = HUGE_VAL;
dist/pf/sbin/pfctl/pfctl_osfp.c
741
struct name_list new;
dist/pf/sbin/pfctl/pfctl_osfp.c
746
LIST_INIT(&new);
dist/pf/sbin/pfctl/pfctl_osfp.c
751
LIST_FOREACH(nmsearch, &new, nm_entry) {
dist/pf/sbin/pfctl/pfctl_osfp.c
762
LIST_INSERT_HEAD(&new, nm, nm_entry);
dist/pf/sbin/pfctl/pfctl_osfp.c
768
while ((nm = LIST_FIRST(&new)) != NULL) {
distrib/utils/more/linenum.c
164
struct linenum *new;
distrib/utils/more/linenum.c
186
new = freelist;
distrib/utils/more/linenum.c
194
new = spare;
distrib/utils/more/linenum.c
202
new->next = nextp;
distrib/utils/more/linenum.c
203
new->prev = prevp;
distrib/utils/more/linenum.c
204
new->pos = pos;
distrib/utils/more/linenum.c
205
new->line = line;
distrib/utils/more/linenum.c
207
nextp->prev = new;
distrib/utils/more/linenum.c
208
prevp->next = new;
distrib/utils/more/linenum.c
213
calcgap(new);
games/backgammon/backgammon/move.c
274
binsert(struct move *mm, struct BOARD *new)
games/backgammon/backgammon/move.c
280
checkq = qp = new;
games/backgammon/backgammon/move.c
284
result = bcomp(new, qp); /* compare to first element */
games/backgammon/backgammon/move.c
286
new->b_next = qp;
games/backgammon/backgammon/move.c
287
checkq = new;
games/backgammon/backgammon/move.c
291
mvcheck(mm, qp, new);
games/backgammon/backgammon/move.c
292
makefree(new);
games/backgammon/backgammon/move.c
296
result = bcomp(new, qp->b_next);
games/backgammon/backgammon/move.c
298
new->b_next = qp->b_next;
games/backgammon/backgammon/move.c
299
qp->b_next = new;
games/backgammon/backgammon/move.c
303
mvcheck(mm, qp->b_next, new);
games/backgammon/backgammon/move.c
304
makefree(new);
games/backgammon/backgammon/move.c
310
qp->b_next = new;
games/backgammon/backgammon/move.c
311
new->b_next = 0;
games/backgammon/backgammon/move.c
361
struct BOARD *new;
games/backgammon/backgammon/move.c
364
new = (struct BOARD *) calloc(1, sizeof(struct BOARD));
games/backgammon/backgammon/move.c
365
if (new == 0) {
games/backgammon/backgammon/move.c
370
new = freeq;
games/backgammon/backgammon/move.c
374
new->b_next = 0;
games/backgammon/backgammon/move.c
375
return (new);
games/backgammon/common_source/fancy.c
312
fixpos(int cur, int new, int r, int c, int inc)
games/backgammon/common_source/fancy.c
319
if (cur * new >= 0) {
games/backgammon/common_source/fancy.c
321
nv = abs(new);
games/backgammon/common_source/fancy.c
322
col = (cur + new > 0 ? 'r' : 'w');
games/backgammon/common_source/fancy.c
390
nv = abs(new);
games/backgammon/common_source/fancy.c
391
fixcol(r, c + 1, nv, new > 0 ? 'r' : 'w', inc);
games/backgammon/common_source/fancy.c
392
if (abs(cur) <= abs(new))
games/backgammon/common_source/fancy.c
394
fixcol(r + inc * new, c + 1, abs(cur + new), ' ', inc);
games/fortune/fortune/fortune.c
613
char *new;
games/fortune/fortune/fortune.c
615
new = copy(file, strlen(file) + 2);
games/fortune/fortune/fortune.c
616
return strcat(new, "-o");
games/fortune/fortune/fortune.c
818
char *new, *sp;
games/fortune/fortune/fortune.c
820
new = do_malloc(len + 1);
games/fortune/fortune/fortune.c
821
sp = new;
games/fortune/fortune/fortune.c
825
return new;
games/fortune/fortune/fortune.c
835
void *new;
games/fortune/fortune/fortune.c
837
if ((new = malloc(size)) == NULL)
games/fortune/fortune/fortune.c
839
return new;
games/hack/def.rm.h
110
unsigned new:1;
games/hack/hack.bones.c
164
levl[x][y].seen = levl[x][y].new = 0;
games/hack/hack.c
103
lev->new = 1;
games/hack/hack.pri.c
137
crm->new = 1;
games/hack/hack.pri.c
226
levl[x][y].new = 0; /* prevent pline-nscr erasing --- */
games/hack/hack.pri.c
306
if ((room = &levl[x][y])->new) {
games/hack/hack.pri.c
307
room->new = 0;
games/hack/hack.pri.c
342
if ((room = &levl[x][y])->new) {
games/hack/hack.pri.c
343
room->new = 0;
games/hack/hack.pri.c
423
room->new = room->seen = 1;
games/hack/hack.pri.c
524
room->new = 1;
games/hack/hack.pri.c
693
if ((room = &levl[x][y])->new) {
games/hack/hack.pri.c
694
room->new = 0;
games/hack/hack.read.c
444
lev->seen = lev->new = 1;
games/mille/init.c
172
int i, new;
games/mille/init.c
181
new = FALSE;
games/mille/init.c
192
new = TRUE;
games/mille/init.c
197
new = TRUE;
games/mille/init.c
200
new = TRUE;
games/mille/init.c
201
if (new) {
games/mille/init.c
217
if (!was_full || new) {
games/mille/init.c
236
if (was_full || new) {
games/phantasia/misc.c
32
double new; /* new level */
games/phantasia/misc.c
43
new = explevel(Player.p_experience);
games/phantasia/misc.c
44
inc = new - Player.p_level;
games/phantasia/misc.c
45
Player.p_level = new;
games/rogue/pack.c
154
object *obj, *new;
games/rogue/pack.c
199
new = alloc_object();
games/rogue/pack.c
200
*new = *obj;
games/rogue/pack.c
201
new->quantity = 1;
games/rogue/pack.c
202
obj = new;
games/sail/dr_2.c
254
int new, n;
games/sail/dr_2.c
262
new = score(f, t, temp, tempmax, rakeme);
games/sail/dr_2.c
263
if (new > *high && (!rakeme || rakeyou)) {
games/sail/dr_2.c
264
*high = new;
games/sail/dr_2.c
275
new = score(f, t, temp, tempmax, rakeme);
games/sail/dr_2.c
276
if (new > *high && (!rakeme ||
games/sail/dr_2.c
278
*high = new;
games/sail/dr_2.c
290
new = score(f, t, temp, tempmax, rakeme);
games/sail/dr_2.c
291
if (new > *high && (!rakeme ||
games/sail/dr_2.c
293
*high = new;
games/tetris/tetris.c
289
const struct shape *new = &shapes[curshape->rot];
games/tetris/tetris.c
291
if (fits_in(new, pos))
games/tetris/tetris.c
292
curshape = new;
lib/libbluetooth/bt_dev.c
402
struct bt_devfilter new, old;
lib/libbluetooth/bt_dev.c
412
memset(&new, 0, sizeof(new));
lib/libbluetooth/bt_dev.c
413
bt_devfilter_pkt_set(&new, HCI_EVENT_PKT);
lib/libbluetooth/bt_dev.c
414
bt_devfilter_evt_set(&new, HCI_EVENT_COMMAND_COMPL);
lib/libbluetooth/bt_dev.c
415
bt_devfilter_evt_set(&new, HCI_EVENT_COMMAND_STATUS);
lib/libbluetooth/bt_dev.c
418
bt_devfilter_evt_set(&new, req->event);
lib/libbluetooth/bt_dev.c
420
if (bt_devfilter(s, &new, &old) == -1)
lib/libbluetooth/bt_dev.c
436
bt_devfilter(int s, const struct bt_devfilter *new, struct bt_devfilter *old)
lib/libbluetooth/bt_dev.c
440
if (new == NULL && old == NULL) {
lib/libbluetooth/bt_dev.c
459
if (new != NULL) {
lib/libbluetooth/bt_dev.c
461
SO_HCI_PKT_FILTER, &new->packet_mask, len) == -1)
lib/libbluetooth/bt_dev.c
465
SO_HCI_EVT_FILTER, &new->event_mask, len) == -1)
lib/libc/arch/m68k/hardfloat/fpsetmask.c
40
_fpsetmask(fp_except new)
lib/libc/arch/m68k/hardfloat/fpsetmask.c
46
new_fpcr = (old_fpcr & ~FPCR_EXCP2) | __SHIFTIN(new, FPCR_EXCP2);
lib/libc/arch/m68k/hardfloat/fpsetround.c
40
_fpsetround(fp_rnd new)
lib/libc/arch/m68k/hardfloat/fpsetround.c
46
new_fpcr = (old_fpcr & ~FPCR_ROUND) | __SHIFTIN(new, FPCR_ROUND);
lib/libc/arch/m68k/hardfloat/fpsetsticky.c
40
_fpsetsticky(fp_except new)
lib/libc/arch/m68k/hardfloat/fpsetsticky.c
46
new_fpsr = (old_fpsr & ~FPSR_AEX) | __SHIFTIN(new, FPSR_AEX);
lib/libc/arch/mips/gen/fpsetmask.c
25
fp_except new;
lib/libc/arch/mips/gen/fpsetmask.c
29
new = old & ~(0x1f << 7);
lib/libc/arch/mips/gen/fpsetmask.c
30
new |= ((mask & 0x1f) << 7);
lib/libc/arch/mips/gen/fpsetmask.c
32
__asm(".set push; .set noat; ctc1 %0,$31; .set pop" : : "r" (new));
lib/libc/arch/mips/gen/fpsetround.c
25
fp_rnd new;
lib/libc/arch/mips/gen/fpsetround.c
29
new = old & ~0x03;
lib/libc/arch/mips/gen/fpsetround.c
30
new |= rnd_dir & 0x03;
lib/libc/arch/mips/gen/fpsetround.c
32
__asm(".set push; .set noat; ctc1 %0,$31; .set pop" : : "r" (new));
lib/libc/arch/mips/gen/fpsetsticky.c
25
fp_except new;
lib/libc/arch/mips/gen/fpsetsticky.c
29
new = old & ~(0x1f << 2);
lib/libc/arch/mips/gen/fpsetsticky.c
30
new |= (sticky & 0x1f) << 2;
lib/libc/arch/mips/gen/fpsetsticky.c
32
__asm(".set push; .set noat; ctc1 %0,$31; .set pop" : : "r" (new));
lib/libc/arch/powerpc/gen/fpsetmask.c
76
fp_except old, new;
lib/libc/arch/powerpc/gen/fpsetmask.c
82
new = ((uint32_t)mask << MASKSHFT) & MASKBITS;
lib/libc/arch/powerpc/gen/fpsetmask.c
83
ud.u_fpscr |= new;
lib/libc/arch/powerpc/gen/fpsetmask.c
88
(new ? PSL_FE_PREC : PSL_FE_DIS);
lib/libc/arch/sparc/gen/fpsetmask.c
25
fp_except new;
lib/libc/arch/sparc/gen/fpsetmask.c
29
new = old;
lib/libc/arch/sparc/gen/fpsetmask.c
30
new &= ~(0x1f << 23);
lib/libc/arch/sparc/gen/fpsetmask.c
31
new |= ((mask & 0x1f) << 23);
lib/libc/arch/sparc/gen/fpsetmask.c
33
__asm("ld %0,%%fsr" : : "m" (*&new));
lib/libc/arch/sparc/gen/fpsetround.c
25
fp_rnd new;
lib/libc/arch/sparc/gen/fpsetround.c
29
new = old;
lib/libc/arch/sparc/gen/fpsetround.c
30
new &= ~(0x03U << 30);
lib/libc/arch/sparc/gen/fpsetround.c
31
new |= ((rnd_dir & 0x03U) << 30);
lib/libc/arch/sparc/gen/fpsetround.c
33
__asm("ld %0,%%fsr" : : "m" (*&new));
lib/libc/arch/sparc/gen/fpsetsticky.c
25
fp_except new;
lib/libc/arch/sparc/gen/fpsetsticky.c
29
new = old;
lib/libc/arch/sparc/gen/fpsetsticky.c
30
new &= ~(0x1f << 5);
lib/libc/arch/sparc/gen/fpsetsticky.c
31
new |= ((sticky & 0x1f) << 5);
lib/libc/arch/sparc/gen/fpsetsticky.c
33
__asm("ld %0,%%fsr" : : "m" (*&new));
lib/libc/arch/sparc64/gen/fpsetmask.c
30
fp_except new;
lib/libc/arch/sparc64/gen/fpsetmask.c
34
new = old;
lib/libc/arch/sparc64/gen/fpsetmask.c
35
new &= ~(0x1f << 23);
lib/libc/arch/sparc64/gen/fpsetmask.c
36
new |= ((mask & 0x1f) << 23);
lib/libc/arch/sparc64/gen/fpsetmask.c
38
__asm("ld %0,%%fsr" : : "m" (*&new));
lib/libc/arch/sparc64/gen/fpsetround.c
30
fp_rnd new;
lib/libc/arch/sparc64/gen/fpsetround.c
38
new = old;
lib/libc/arch/sparc64/gen/fpsetround.c
39
new &= ~(0x03U << 30);
lib/libc/arch/sparc64/gen/fpsetround.c
40
new |= ((rnd_dir & 0x03U) << 30);
lib/libc/arch/sparc64/gen/fpsetround.c
42
__asm("ld %0,%%fsr" : : "m" (*&new));
lib/libc/arch/sparc64/gen/fpsetsticky.c
30
fp_except new;
lib/libc/arch/sparc64/gen/fpsetsticky.c
34
new = old;
lib/libc/arch/sparc64/gen/fpsetsticky.c
35
new &= ~(0x1f << 5);
lib/libc/arch/sparc64/gen/fpsetsticky.c
36
new |= ((sticky & 0x1f) << 5);
lib/libc/arch/sparc64/gen/fpsetsticky.c
38
__asm("ld %0,%%fsr" : : "m" (*&new));
lib/libc/db/mpool/mpool.c
368
goto new;
lib/libc/db/mpool/mpool.c
400
new: if ((bp = calloc(1, (size_t)(sizeof(BKT) + mp->pagesize))) == NULL)
lib/libc/gen/fts.c
1143
char *new;
lib/libc/gen/fts.c
1155
new = realloc(sp->fts_path, size);
lib/libc/gen/fts.c
1156
if (new == 0)
lib/libc/gen/fts.c
1158
sp->fts_path = new;
lib/libc/gen/stringlist.c
100
sl->sl_str = new;
lib/libc/gen/stringlist.c
93
char **new = sl->sl_str;
lib/libc/gen/stringlist.c
95
errno = reallocarr(&new, (sl->sl_max + _SL_CHUNKSIZE),
lib/libc/gen/stringlist.c
96
sizeof(*new));
lib/libc/gen/ualarm.c
59
struct itimerval new, old;
lib/libc/gen/ualarm.c
61
new.it_interval.tv_usec = reload % USPS;
lib/libc/gen/ualarm.c
62
new.it_interval.tv_sec = reload / USPS;
lib/libc/gen/ualarm.c
64
new.it_value.tv_usec = usecs % USPS;
lib/libc/gen/ualarm.c
65
new.it_value.tv_sec = usecs / USPS;
lib/libc/gen/ualarm.c
67
if (setitimer(ITIMER_REAL, &new, &old) == 0)
lib/libc/isc/ev_streams.c
105
evStream *new;
lib/libc/isc/ev_streams.c
108
OKNEW(new);
lib/libc/isc/ev_streams.c
109
new->func = func;
lib/libc/isc/ev_streams.c
110
new->uap = uap;
lib/libc/isc/ev_streams.c
111
new->fd = fd;
lib/libc/isc/ev_streams.c
112
new->flags = 0;
lib/libc/isc/ev_streams.c
113
if (evSelectFD(opaqueCtx, fd, EV_READ, readable, new, &new->file) < 0)
lib/libc/isc/ev_streams.c
115
if (copyvec(new, iov, iocnt) < 0)
lib/libc/isc/ev_streams.c
117
new->prevDone = NULL;
lib/libc/isc/ev_streams.c
118
new->nextDone = NULL;
lib/libc/isc/ev_streams.c
120
ctx->streams->prev = new;
lib/libc/isc/ev_streams.c
121
new->prev = NULL;
lib/libc/isc/ev_streams.c
122
new->next = ctx->streams;
lib/libc/isc/ev_streams.c
123
ctx->streams = new;
lib/libc/isc/ev_streams.c
125
id->opaque = new;
lib/libc/isc/ev_streams.c
129
FREE(new);
lib/libc/isc/ev_streams.c
71
evStream *new;
lib/libc/isc/ev_streams.c
74
OKNEW(new);
lib/libc/isc/ev_streams.c
75
new->func = func;
lib/libc/isc/ev_streams.c
76
new->uap = uap;
lib/libc/isc/ev_streams.c
77
new->fd = fd;
lib/libc/isc/ev_streams.c
78
new->flags = 0;
lib/libc/isc/ev_streams.c
79
if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0)
lib/libc/isc/ev_streams.c
81
if (copyvec(new, iov, iocnt) < 0)
lib/libc/isc/ev_streams.c
83
new->prevDone = NULL;
lib/libc/isc/ev_streams.c
84
new->nextDone = NULL;
lib/libc/isc/ev_streams.c
86
ctx->streams->prev = new;
lib/libc/isc/ev_streams.c
87
new->prev = NULL;
lib/libc/isc/ev_streams.c
88
new->next = ctx->streams;
lib/libc/isc/ev_streams.c
89
ctx->streams = new;
lib/libc/isc/ev_streams.c
91
id->opaque = new;
lib/libc/isc/ev_streams.c
95
FREE(new);
lib/libc/net/getaddrinfo.c
779
struct policyqueue *new;
lib/libc/net/getaddrinfo.c
781
if ((new = malloc(sizeof(*new))) == NULL) {
lib/libc/net/getaddrinfo.c
785
new->pc_policy = *pol;
lib/libc/net/getaddrinfo.c
786
TAILQ_INSERT_TAIL(head, new, pc_entry);
lib/libc/net/nsdispatch.c
299
ns_mod mod, *new;
lib/libc/net/nsdispatch.c
356
new = _nsvect_append(&mod, _nsmod, &_nsmodsize, sizeof(*_nsmod));
lib/libc/net/nsdispatch.c
357
if (new == NULL) {
lib/libc/net/nsdispatch.c
361
_nsmod = new;
lib/libc/net/nsdispatch.c
378
void *new;
lib/libc/net/nsdispatch.c
385
new = _nsvect_append(src, dbt->srclist, &dbt->srclistsize,
lib/libc/net/nsdispatch.c
387
if (new == NULL)
lib/libc/net/nsdispatch.c
389
dbt->srclist = new;
lib/libc/net/nsdispatch.c
455
void *new;
lib/libc/net/nsdispatch.c
470
new = _nsvect_append(dbt, _nsmap, &_nsmapsize, sizeof(*_nsmap));
lib/libc/net/nsdispatch.c
471
if (new == NULL)
lib/libc/net/nsdispatch.c
473
_nsmap = new;
lib/libc/rpc/rpc_generic.c
828
__rpc_fixup_addr(struct netbuf *new, const struct netbuf *svc)
lib/libc/rpc/rpc_generic.c
834
_DIAGASSERT(new != NULL);
lib/libc/rpc/rpc_generic.c
838
sa_new = (struct sockaddr *)new->buf;
lib/libc/rpc/rpc_generic.c
842
sin6_new = (struct sockaddr_in6 *)new->buf;
lib/libc/stdlib/malloc.c
402
struct pginfo **new, **old;
lib/libc/stdlib/malloc.c
434
new = MMAP(newlen);
lib/libc/stdlib/malloc.c
435
if (new == MAP_FAILED)
lib/libc/stdlib/malloc.c
439
memcpy(new, page_dir, oldlen);
lib/libc/stdlib/malloc.c
446
page_dir = new;
lib/libc/thread-stub/thread-stub.c
462
__libc_thr_setcancelstate_stub(int new, int *old)
lib/libc/thread-stub/thread-stub.c
465
(void)new;
lib/libc/time/zdump.c
852
bool new = !old;
lib/libc/time/zdump.c
853
if (! localtime_rz(tz, &t, &localtm[new]))
lib/libc/time/zdump.c
854
localtm[new].tm_sec = -1;
lib/libc/time/zdump.c
855
if (! my_gmtime_r(&t, &gmtm[new]))
lib/libc/time/zdump.c
856
gmtm[new].tm_sec = -1;
lib/libc/time/zdump.c
857
if (((localtm[old].tm_sec < 0) != (localtm[new].tm_sec < 0))
lib/libc/time/zdump.c
858
| ((gmtm[old].tm_sec < 0) != (gmtm[new].tm_sec < 0))) {
lib/libc/time/zdump.c
862
old = new;
lib/libc/yp/yplib.c
108
int new = 0;
lib/libc/yp/yplib.c
152
new = 1;
lib/libc/yp/yplib.c
201
if (new)
lib/libc/yp/yplib.c
219
if (new)
lib/libc/yp/yplib.c
227
if (_yplib_bindtries <= 0 && new == 0 &&
lib/libc/yp/yplib.c
273
if (new) {
lib/libcurses/screen.c
100
__NONL = new->NONL;
lib/libcurses/screen.c
101
__UPPERCASE = new->UPPERCASE;
lib/libcurses/screen.c
103
_cursesi_resetterm(new);
lib/libcurses/screen.c
105
curscr = new->curscr;
lib/libcurses/screen.c
106
clearok(curscr, new->clearok);
lib/libcurses/screen.c
107
stdscr = new->stdscr;
lib/libcurses/screen.c
108
__virtscr = new->__virtscr;
lib/libcurses/screen.c
110
_cursesi_reset_acs(new);
lib/libcurses/screen.c
112
_cursesi_reset_wacs(new);
lib/libcurses/screen.c
66
set_term(SCREEN *new)
lib/libcurses/screen.c
87
_cursesi_screen = new;
lib/libcurses/screen.c
89
__echoit = new->echoit;
lib/libcurses/screen.c
90
__pfast = new->pfast;
lib/libcurses/screen.c
91
__rawmode = new->rawmode;
lib/libcurses/screen.c
92
__noqch = new->noqch;
lib/libcurses/screen.c
93
COLS = new->COLS;
lib/libcurses/screen.c
94
LINES = new->LINES;
lib/libcurses/screen.c
95
ESCDELAY = new->ESCDELAY;
lib/libcurses/screen.c
96
TABSIZE = new->TABSIZE;
lib/libcurses/screen.c
97
COLORS = new->COLORS;
lib/libcurses/screen.c
98
COLOR_PAIRS = new->COLOR_PAIRS;
lib/libcurses/screen.c
99
__GT = new->GT;
lib/libedit/refresh.c
541
re_update_line(EditLine *el, wchar_t *old, wchar_t *new, int i)
lib/libedit/refresh.c
552
for (o = old, n = new; *o && (*o == *n); o++, n++)
lib/libedit/refresh.c
735
nfd - new, nsb - new, nse - new, nls - new, ne - new));
lib/libedit/refresh.c
742
re_printstr(el, "new- ne", new, ne);
lib/libedit/refresh.c
744
re_printstr(el, "new-nfd", new, nfd);
lib/libedit/refresh.c
808
(__F, "first diff insert at %td...\r\n", nfd - new));
lib/libedit/refresh.c
812
terminal_move_to_char(el, (int)(nfd - new));
lib/libedit/refresh.c
883
(int)((oe - old) - (ne - new)));
lib/libedit/refresh.c
925
(int)((oe - old) - (ne - new)));
lib/libedit/refresh.c
933
nfd - new));
lib/libedit/refresh.c
935
terminal_move_to_char(el, (int)(nfd - new));
lib/libedit/refresh.c
976
"second diff insert at %d...\r\n", (int)(nse - new)));
lib/libedit/refresh.c
977
terminal_move_to_char(el, (int)(nse - new));
lib/libedit/tty.c
901
wchar_t new[2], old[2];
lib/libedit/tty.c
905
new[1] = old[1] = '\0';
lib/libedit/tty.c
918
new[0] = (wchar_t)t_n[tp->nch];
lib/libedit/tty.c
920
if (new[0] == old[0] && !force)
lib/libedit/tty.c
925
keymacro_clear(el, map, new);
lib/libedit/tty.c
927
map[(unsigned char)new[0]] = tp->bind[el->el_map.type];
lib/libedit/tty.c
932
keymacro_clear(el, alt, new);
lib/libedit/tty.c
933
alt[(unsigned char)new[0]] =
lib/libform/field.c
748
FIELD *new;
lib/libform/field.c
754
if ((new = malloc(sizeof(*new))) == NULL) {
lib/libform/field.c
759
memcpy(new, prototype, sizeof(*new));
lib/libform/field.c
761
new->nbuf = nbuf + 1;
lib/libform/field.c
762
new->rows = rows;
lib/libform/field.c
763
new->cols = cols;
lib/libform/field.c
764
new->form_row = frow;
lib/libform/field.c
765
new->form_col = fcol;
lib/libform/field.c
766
new->nrows = nrows;
lib/libform/field.c
767
new->link = new;
lib/libform/field.c
768
return new;
lib/libform/field.c
777
FIELD *new;
lib/libform/field.c
781
if ((new = _formi_create_field(&_formi_default_field, rows, cols,
lib/libform/field.c
785
if ((new->buffers = calloc(nbuf + 1, sizeof(*new->buffers))) == NULL) {
lib/libform/field.c
786
free(new);
lib/libform/field.c
792
if ((new->buffers[i].string =
lib/libform/field.c
793
malloc(sizeof(*new->buffers[i].string))) == NULL) {
lib/libform/field.c
796
new->buffers[i].string[0] = '\0';
lib/libform/field.c
797
new->buffers[i].length = 0;
lib/libform/field.c
798
new->buffers[i].allocated = 1;
lib/libform/field.c
801
if ((new->alines = malloc(sizeof(*new->alines))) == NULL) {
lib/libform/field.c
805
new->alines->prev = NULL;
lib/libform/field.c
806
new->alines->next = NULL;
lib/libform/field.c
807
new->alines->allocated = 0;
lib/libform/field.c
808
new->alines->length = 0;
lib/libform/field.c
809
new->alines->expanded = 0;
lib/libform/field.c
810
new->alines->string = NULL;
lib/libform/field.c
811
new->alines->hard_ret = FALSE;
lib/libform/field.c
812
new->alines->tabs = NULL;
lib/libform/field.c
813
new->start_line = new->alines;
lib/libform/field.c
814
new->cur_line = new->alines;
lib/libform/field.c
816
return new;
lib/libform/field.c
819
free(new->buffers[i].string);
lib/libform/field.c
821
free(new->buffers);
lib/libform/field.c
822
free(new);
lib/libform/field.c
832
FIELD *new;
lib/libform/field.c
839
if ((new = _formi_create_field(field, (int) field->rows,
lib/libform/field.c
846
buf_len = (field->nbuf + 1) * row_len * sizeof(*new->buffers);
lib/libform/field.c
849
if ((new->buffers = malloc(buf_len)) == NULL) {
lib/libform/field.c
850
free(new);
lib/libform/field.c
855
memcpy(new->buffers, field->buffers, buf_len);
lib/libform/field.c
857
return new;
lib/libform/field.c
867
FIELD *new;
lib/libform/field.c
872
if ((new = _formi_create_field(field, (int) field->rows,
lib/libform/field.c
878
new->link = field->link;
lib/libform/field.c
879
field->link = new;
lib/libform/field.c
883
return new;
lib/libform/field_types.c
100
new->link = NULL;
lib/libform/field_types.c
101
new->make_args = NULL;
lib/libform/field_types.c
102
new->copy_args = NULL;
lib/libform/field_types.c
103
new->free_args = NULL;
lib/libform/field_types.c
104
new->field_check = NULL;
lib/libform/field_types.c
105
new->char_check = NULL;
lib/libform/field_types.c
106
new->next_choice = NULL;
lib/libform/field_types.c
107
new->prev_choice = NULL;
lib/libform/field_types.c
109
return new;
lib/libform/field_types.c
172
FIELDTYPE *new;
lib/libform/field_types.c
177
if ((new = _formi_create_fieldtype()) != NULL) {
lib/libform/field_types.c
178
new->field_check = field_check;
lib/libform/field_types.c
179
new->char_check = char_check;
lib/libform/field_types.c
182
return new;
lib/libform/field_types.c
252
FIELDTYPE *new;
lib/libform/field_types.c
257
if ((new = _formi_create_fieldtype()) == NULL)
lib/libform/field_types.c
260
new->flags = _TYPE_IS_LINKED;
lib/libform/field_types.c
261
new->flags |= ((type1->flags & _TYPE_HAS_ARGS)
lib/libform/field_types.c
263
if ((new->link = malloc(sizeof(*new->link))) == NULL) {
lib/libform/field_types.c
264
free(new);
lib/libform/field_types.c
268
new->link->prev = type1;
lib/libform/field_types.c
269
new->link->next = type2;
lib/libform/field_types.c
273
return new;
lib/libform/field_types.c
93
FIELDTYPE *new;
lib/libform/field_types.c
95
if ((new = malloc(sizeof(*new))) == NULL)
lib/libform/field_types.c
98
new->flags = _TYPE_NO_FLAGS;
lib/libform/field_types.c
99
new->refcount = 0;
lib/libform/form.c
488
FORM *new;
lib/libform/form.c
490
if ((new = malloc(sizeof(*new))) == NULL)
lib/libform/form.c
495
memcpy(new, &_formi_default_form, sizeof(*new));
lib/libform/form.c
497
if (new->win == NULL)
lib/libform/form.c
498
new->scrwin = stdscr; /* something for curses to write to */
lib/libform/form.c
501
if (set_form_fields(new, fields) < 0) {
lib/libform/form.c
502
free(new); /* field attach failed, back out */
lib/libform/form.c
507
return new;
lib/libform/internals.c
1750
char *new, old_c;
lib/libform/internals.c
1826
if ((new = realloc(row->string,
lib/libform/internals.c
1830
row->string = new;
lib/libform/internals.c
219
_FORMI_FIELD_LINES *new;
lib/libform/internals.c
222
if ((new = malloc(sizeof(*new))) == NULL) {
lib/libform/internals.c
226
memcpy(new, row, sizeof(*new));
lib/libform/internals.c
229
new->next = NULL;
lib/libform/internals.c
230
new->prev = NULL;
lib/libform/internals.c
231
new->tabs = NULL;
lib/libform/internals.c
233
if ((new->string = malloc((size_t)new->allocated)) == NULL) {
lib/libform/internals.c
234
free(new);
lib/libform/internals.c
238
memcpy(new->string, row->string, (size_t) row->length + 1);
lib/libform/internals.c
242
if ((new->tabs = malloc(sizeof(*new->tabs))) == NULL) {
lib/libform/internals.c
243
free(new->string);
lib/libform/internals.c
244
free(new);
lib/libform/internals.c
248
memcpy(new->tabs, row->tabs, sizeof(*new->tabs));
lib/libform/internals.c
249
new->tabs->back = NULL;
lib/libform/internals.c
250
new->tabs->fwd = NULL;
lib/libform/internals.c
253
newt = new->tabs;
lib/libform/internals.c
258
tp = new->tabs;
lib/libform/internals.c
265
free(new->string);
lib/libform/internals.c
266
free(new);
lib/libform/internals.c
278
return new;
lib/libform/type_alnum.c
136
if ((new = malloc(sizeof(*new) * (end - start + 1))) == NULL)
lib/libform/type_alnum.c
140
strncpy(new, &buf[start], (size_t) (end - start - 1));
lib/libform/type_alnum.c
141
new[end] = '\0';
lib/libform/type_alnum.c
143
new[0]= '\0';
lib/libform/type_alnum.c
145
set_field_buffer(field, 0, new);
lib/libform/type_alnum.c
146
free(new);
lib/libform/type_alnum.c
55
alnum_args *new;
lib/libform/type_alnum.c
57
new = malloc(sizeof(*new));
lib/libform/type_alnum.c
59
if (new != NULL)
lib/libform/type_alnum.c
60
new->width = va_arg(*args, int);
lib/libform/type_alnum.c
62
return (void *)new;
lib/libform/type_alnum.c
71
alnum_args *new;
lib/libform/type_alnum.c
73
new = malloc(sizeof(*new));
lib/libform/type_alnum.c
75
if (new != NULL)
lib/libform/type_alnum.c
76
new->width = ((alnum_args *) (void *)args)->width;
lib/libform/type_alnum.c
78
return (void *)new;
lib/libform/type_alnum.c
98
char *buf, *new;
lib/libform/type_alpha.c
100
char *buf, *new;
lib/libform/type_alpha.c
139
if ((new = malloc(sizeof(*new) * (end - start + 1))) == NULL)
lib/libform/type_alpha.c
143
strncpy(new, &buf[start], (size_t) (end - start - 1));
lib/libform/type_alpha.c
144
new[end] = '\0';
lib/libform/type_alpha.c
146
new[0] = '\0';
lib/libform/type_alpha.c
149
set_field_buffer(field, 0, new);
lib/libform/type_alpha.c
150
free(new);
lib/libform/type_alpha.c
57
alpha_args *new;
lib/libform/type_alpha.c
59
new = malloc(sizeof(*new));
lib/libform/type_alpha.c
61
if (new != NULL)
lib/libform/type_alpha.c
62
new->width = va_arg(*args, int);
lib/libform/type_alpha.c
64
return (void *) new;
lib/libform/type_alpha.c
73
alpha_args *new;
lib/libform/type_alpha.c
75
new = malloc(sizeof(*new));
lib/libform/type_alpha.c
77
if (new != NULL)
lib/libform/type_alpha.c
78
new->width = ((alpha_args *) (void *) args)->width;
lib/libform/type_alpha.c
80
return (void *) new;
lib/libform/type_enum.c
102
choices = new->choices;
lib/libform/type_enum.c
103
new->num_choices = 0;
lib/libform/type_enum.c
106
new->num_choices, new->choices[new->num_choices]);
lib/libform/type_enum.c
107
new->num_choices++;
lib/libform/type_enum.c
111
new->num_choices);
lib/libform/type_enum.c
113
return (void *) new;
lib/libform/type_enum.c
122
enum_args *new;
lib/libform/type_enum.c
124
new = malloc(sizeof(*new));
lib/libform/type_enum.c
126
if (new != NULL)
lib/libform/type_enum.c
127
memcpy(new, args, sizeof(*new));
lib/libform/type_enum.c
129
return (void *) new;
lib/libform/type_enum.c
87
enum_args *new;
lib/libform/type_enum.c
90
new = malloc(sizeof(*new));
lib/libform/type_enum.c
91
if (new == NULL)
lib/libform/type_enum.c
94
new->choices = va_arg(*args, char **);
lib/libform/type_enum.c
95
new->ignore_case = (va_arg(*args, int)) ? TRUE : FALSE;
lib/libform/type_enum.c
96
new->exact = (va_arg(*args, int)) ? TRUE : FALSE;
lib/libform/type_enum.c
99
new->ignore_case, new->exact);
lib/libform/type_integer.c
59
integer_args *new;
lib/libform/type_integer.c
61
new = malloc(sizeof(*new));
lib/libform/type_integer.c
63
if (new != NULL) {
lib/libform/type_integer.c
64
new->precision = va_arg(*args, unsigned);
lib/libform/type_integer.c
65
new->min = va_arg(*args, long);
lib/libform/type_integer.c
66
new->max = va_arg(*args, long);
lib/libform/type_integer.c
69
return (void *) new;
lib/libform/type_integer.c
78
integer_args *new;
lib/libform/type_integer.c
80
new = malloc(sizeof(*new));
lib/libform/type_integer.c
82
if (new != NULL)
lib/libform/type_integer.c
83
memcpy(new, args, sizeof(*new));
lib/libform/type_integer.c
85
return (void *) new;
lib/libform/type_numeric.c
59
numeric_args *new;
lib/libform/type_numeric.c
61
new = malloc(sizeof(*new));
lib/libform/type_numeric.c
63
if (new != NULL) {
lib/libform/type_numeric.c
64
new->precision = va_arg(*args, unsigned);
lib/libform/type_numeric.c
65
new->min = va_arg(*args, double);
lib/libform/type_numeric.c
66
new->max = va_arg(*args, double);
lib/libform/type_numeric.c
69
return (void *) new;
lib/libform/type_numeric.c
78
numeric_args *new;
lib/libform/type_numeric.c
80
new = malloc(sizeof(*new));
lib/libform/type_numeric.c
82
if (new != NULL)
lib/libform/type_numeric.c
83
memcpy(new, args, sizeof(*args));
lib/libform/type_numeric.c
85
return (void *) new;
lib/libform/type_regex.c
58
regex_args *new;
lib/libform/type_regex.c
61
new = malloc(sizeof(*new));
lib/libform/type_regex.c
63
if (new != NULL) {
lib/libform/type_regex.c
64
new->references = 1;
lib/libform/type_regex.c
66
if ((regcomp(&new->compiled, expression,
lib/libform/type_regex.c
68
free(new);
lib/libform/type_regex.c
73
return (void *) new;
lib/libpthread/arch/i386/pthread_md.h
70
_atomic_cas_ptr(volatile void *ptr, void *old, void *new)
lib/libpthread/arch/i386/pthread_md.h
77
: "r" (new), "m" (*cast), "0" (old));
lib/libpthread/arch/i386/pthread_md.h
83
_atomic_cas_ptr_ni(volatile void *ptr, void *old, void *new)
lib/libpthread/arch/i386/pthread_md.h
90
: "r" (new), "m" (*cast), "0" (old));
lib/libpthread/arch/x86_64/pthread_md.h
73
_atomic_cas_ptr(volatile void *ptr, void *old, void *new)
lib/libpthread/arch/x86_64/pthread_md.h
80
: "r" (new), "m" (*cast), "0" (old));
lib/libpthread/arch/x86_64/pthread_md.h
86
_atomic_cas_ptr_ni(volatile void *ptr, void *old, void *new)
lib/libpthread/arch/x86_64/pthread_md.h
93
: "r" (new), "m" (*cast), "0" (old));
lib/libpthread/pthread.c
1008
new = (old & ~PT_CANCEL_ASYNC) | flags;
lib/libpthread/pthread.c
1014
&self->pt_cancel, &old, new,
lib/libpthread/pthread.c
874
unsigned old, new;
lib/libpthread/pthread.c
891
new = old | PT_CANCEL_PENDING;
lib/libpthread/pthread.c
894
new |= PT_CANCEL_CANCELLED;
lib/libpthread/pthread.c
898
&thread->pt_cancel, &old, new,
lib/libpthread/pthread.c
912
unsigned flags, old, new;
lib/libpthread/pthread.c
933
new = (old & ~PT_CANCEL_DISABLED) | flags;
lib/libpthread/pthread.c
946
new &= ~PT_CANCEL_CANCELLED;
lib/libpthread/pthread.c
947
new |= PT_CANCEL_PENDING;
lib/libpthread/pthread.c
951
new |= PT_CANCEL_CANCELLED;
lib/libpthread/pthread.c
957
&self->pt_cancel, &old, new,
lib/libpthread/pthread.c
990
unsigned flags, old, new;
lib/libpthread/pthread_mutex.c
394
void *val, *new, *next;
lib/libpthread/pthread_mutex.c
413
new = (void *)((uintptr_t)self | (uintptr_t)val);
lib/libpthread/pthread_mutex.c
414
next = atomic_cas_ptr(&ptm->ptm_owner, val, new);
lib/libpthread/pthread_rwlock.c
446
uintptr_t owner, decr, new, next;
lib/libpthread/pthread_rwlock.c
485
new = (owner - decr);
lib/libpthread/pthread_rwlock.c
486
if ((new & (RW_THREAD | RW_HAS_WAITERS)) != RW_HAS_WAITERS) {
lib/libpthread/pthread_rwlock.c
487
next = rw_cas(ptr, owner, new);
lib/libpthread/pthread_rwlock.c
516
new = (uintptr_t)thread | RW_WRITE_LOCKED;
lib/libpthread/pthread_rwlock.c
519
new |= RW_HAS_WAITERS | RW_WRITE_WANTED;
lib/libpthread/pthread_rwlock.c
521
new |= RW_HAS_WAITERS;
lib/libpthread/pthread_rwlock.c
527
(void)atomic_swap_ptr(&ptr->ptr_owner, (void *)new);
lib/libpthread/pthread_rwlock.c
537
new = 0;
lib/libpthread/pthread_rwlock.c
547
new += RW_READ_INCR;
lib/libpthread/pthread_rwlock.c
556
(void)atomic_swap_ptr(&ptr->ptr_owner, (void *)new);
lib/librumphijack/hijack.c
2454
const void *new, size_t newlen)
lib/librumphijack/hijack.c
2469
return op___sysctl(name, namelen, old, oldlenp, new, newlen);
lib/libskey/skeysubr.c
467
const char *skey_set_algorithm(const char *new)
lib/libskey/skeysubr.c
472
if (strcmp(new, skey_algorithm_table[i].name) == 0) {
lib/libskey/skeysubr.c
474
return(new);
libexec/ftpd/ftpd.c
3375
static char new[MAXPATHLEN];
libexec/ftpd/ftpd.c
3390
(void)snprintf(new, sizeof(new) - 1, "%s.%d", local, count);
libexec/ftpd/ftpd.c
3391
if (stat(new, &st) < 0)
libexec/ftpd/ftpd.c
3392
return (new);
libexec/ftpd/ftpd.c
3717
char *new;
libexec/ftpd/ftpd.c
3734
new = crypt(password, orig); /* encrypt given password */
libexec/ftpd/ftpd.c
3735
if (strcmp(new, orig) != 0) /* compare */
libexec/ftpd/ftpd.c
3747
char *new = strdup(s);
libexec/ftpd/ftpd.c
3749
if (new == NULL)
libexec/ftpd/ftpd.c
3752
return (new);
libexec/identd/identd.c
683
struct sockaddr_storage new[2];
libexec/identd/identd.c
786
(void)memcpy(&new[0], &kp[i].ki_dst, kp[i].ki_dst.sa_len);
libexec/identd/identd.c
787
(void)memcpy(&new[1], &kp[i].ki_src, kp[i].ki_src.sa_len);
libexec/identd/identd.c
789
rc = sysctl_getuid(new, sizeof(new), uid);
sbin/dump/optr.c
341
struct fstab *new;
sbin/dump/optr.c
343
new = xmalloc(sizeof (*fs));
sbin/dump/optr.c
344
new->fs_file = xstrdup(fs->fs_file);
sbin/dump/optr.c
345
new->fs_type = xstrdup(fs->fs_type);
sbin/dump/optr.c
346
new->fs_spec = xmalloc(FILENAME_MAX);
sbin/dump/optr.c
347
if (getfsspecname(new->fs_spec, FILENAME_MAX, fs->fs_spec) == NULL) {
sbin/dump/optr.c
348
free(new);
sbin/dump/optr.c
351
new->fs_passno = fs->fs_passno;
sbin/dump/optr.c
352
new->fs_freq = fs->fs_freq;
sbin/dump/optr.c
353
return new;
sbin/fsck_ext2fs/pass1.c
337
struct dups *new;
sbin/fsck_ext2fs/pass1.c
368
new = malloc(sizeof(struct dups));
sbin/fsck_ext2fs/pass1.c
369
if (new == NULL) {
sbin/fsck_ext2fs/pass1.c
375
new->dup = blkno;
sbin/fsck_ext2fs/pass1.c
377
duplist = muldup = new;
sbin/fsck_ext2fs/pass1.c
378
new->next = 0;
sbin/fsck_ext2fs/pass1.c
380
new->next = muldup->next;
sbin/fsck_ext2fs/pass1.c
381
muldup->next = new;
sbin/fsck_ext2fs/pass1.c
387
muldup = new;
sbin/fsck_ffs/pass1.c
507
struct dups *new;
sbin/fsck_ffs/pass1.c
548
new = (struct dups *)malloc(sizeof(struct dups));
sbin/fsck_ffs/pass1.c
549
if (new == NULL) {
sbin/fsck_ffs/pass1.c
559
new->dup = blkno;
sbin/fsck_ffs/pass1.c
561
duplist = muldup = new;
sbin/fsck_ffs/pass1.c
562
new->next = 0;
sbin/fsck_ffs/pass1.c
564
new->next = muldup->next;
sbin/fsck_ffs/pass1.c
565
muldup->next = new;
sbin/fsck_ffs/pass1.c
571
muldup = new;
sbin/fsck_lfs/pass1.c
356
struct dups *new;
sbin/fsck_lfs/pass1.c
398
new = emalloc(sizeof(struct dups));
sbin/fsck_lfs/pass1.c
399
new->dup = blkno;
sbin/fsck_lfs/pass1.c
401
duplist = muldup = new;
sbin/fsck_lfs/pass1.c
402
new->next = 0;
sbin/fsck_lfs/pass1.c
404
new->next = muldup->next;
sbin/fsck_lfs/pass1.c
405
muldup->next = new;
sbin/fsck_lfs/pass1.c
411
muldup = new;
sbin/init/init.c
1388
utmpx_set_runlevel(char old, char new)
sbin/init/init.c
1401
(void)snprintf(ut.ut_line, sizeof(ut.ut_line), RUNLVL_MSG, new);
sbin/init/init.c
1405
ut.ut_exit.e_termination = new;
sbin/rcorder/rcorder.c
276
int new;
sbin/rcorder/rcorder.c
278
entry = Hash_CreateEntry(provide_hash, s, &new);
sbin/rcorder/rcorder.c
279
if (new)
sbin/rcorder/rcorder.c
297
int new;
sbin/rcorder/rcorder.c
299
entry = Hash_CreateEntry(provide_hash, s, &new);
sbin/rcorder/rcorder.c
344
else if (new == 0) {
sbin/rcorder/rcorder.c
484
int new;
sbin/rcorder/rcorder.c
489
entry = Hash_CreateEntry(provide_hash, buffer, &new);
sbin/rcorder/rcorder.c
490
} while (new == 0);
sbin/rcorder/rcorder.c
530
int new;
sbin/rcorder/rcorder.c
537
entry = Hash_CreateEntry(provide_hash, bl_list->s, &new);
sbin/rcorder/rcorder.c
538
if (new == 1)
sbin/restore/utilities.c
202
linkit(char *existing, char *new, int type)
sbin/restore/utilities.c
206
if (!Nflag && symlink(existing, new) < 0) {
sbin/restore/utilities.c
209
new, existing, strerror(errno));
sbin/restore/utilities.c
213
if (!Nflag && link(existing, new) < 0) {
sbin/restore/utilities.c
216
new, existing, strerror(errno));
sbin/restore/utilities.c
224
type == SYMLINK ? "symbolic" : "hard", new, existing);
sbin/route/route.c
1785
int byte = 0, state = VIRGIN, new = 0;
sbin/route/route.c
1791
new = *addr - '0';
sbin/route/route.c
1793
new = *addr - 'a' + 10;
sbin/route/route.c
1795
new = *addr - 'A' + 10;
sbin/route/route.c
1805
state = GOTONE; byte = new; continue;
sbin/route/route.c
1807
state = GOTTWO; byte = new + (byte << 4); continue;
sbin/routed/if.c
1303
static struct rt_spare new;
sbin/routed/if.c
1321
new.rts_ifp = ifp;
sbin/routed/if.c
1322
new.rts_gate = ifp->int_addr;
sbin/routed/if.c
1323
new.rts_router = ifp->int_addr;
sbin/routed/if.c
1324
new.rts_metric = ifp->int_metric;
sbin/routed/if.c
1326
RS_NET_SYN, &new);
sbin/routed/if.c
1350
static struct rt_spare new;
sbin/routed/if.c
1369
new.rts_ifp = ifp;
sbin/routed/if.c
1370
new.rts_router = ifp->int_addr;
sbin/routed/if.c
1371
new.rts_gate = ifp->int_addr;
sbin/routed/if.c
1372
new.rts_metric = ifp->int_metric;
sbin/routed/if.c
1373
new.rts_time = now.tv_sec;
sbin/routed/if.c
1400
&new, 0);
sbin/routed/if.c
1408
rtadd(dst, ifp->int_mask, RS_IF, &new);
sbin/routed/input.c
150
struct rt_spare new;
sbin/routed/input.c
753
new.rts_gate = gate;
sbin/routed/input.c
754
new.rts_router = FROM_NADDR;
sbin/routed/input.c
755
new.rts_metric = n->n_metric;
sbin/routed/input.c
756
new.rts_tag = n->n_tag;
sbin/routed/input.c
757
new.rts_time = now.tv_sec;
sbin/routed/input.c
758
new.rts_ifp = aifp;
sbin/routed/input.c
759
new.rts_de_ag = i;
sbin/routed/input.c
762
input_route(dst, mask, &new, n);
sbin/routed/input.c
780
struct rt_spare *new,
sbin/routed/input.c
810
if (new->rts_metric == HOPCNT_INFINITY)
sbin/routed/input.c
822
rtadd(dst, mask, 0, new);
sbin/routed/input.c
847
if (rts->rts_router == new->rts_router)
sbin/routed/input.c
866
if (new->rts_de_ag > rts->rts_de_ag
sbin/routed/input.c
874
&& new->rts_metric == HOPCNT_INFINITY)
sbin/routed/input.c
875
new->rts_time = rts->rts_time;
sbin/routed/input.c
881
rtchange(rt, rt->rt_state, new, 0);
sbin/routed/input.c
884
if (new->rts_metric > rts->rts_metric)
sbin/routed/input.c
892
if (rts->rts_gate == new->rts_gate
sbin/routed/input.c
893
&& rts->rts_metric == new->rts_metric
sbin/routed/input.c
894
&& rts->rts_tag == new->rts_tag) {
sbin/routed/input.c
895
trace_upslot(rt, rts, new);
sbin/routed/input.c
896
*rts = *new;
sbin/routed/input.c
901
if (new->rts_metric == HOPCNT_INFINITY) {
sbin/routed/input.c
924
if (new->rts_metric >= rts->rts_metric)
sbin/routed/input.c
928
trace_upslot(rt, rts, new);
sbin/routed/input.c
929
*rts = *new;
sbin/routed/parms.c
863
check_parms(struct parm *new)
sbin/routed/parms.c
870
if (new->parm_int_state & IS_NO_ADV_IN)
sbin/routed/parms.c
871
new->parm_int_state |= IS_NO_SOL_OUT;
sbin/routed/parms.c
872
if (new->parm_int_state & IS_NO_SOL_OUT)
sbin/routed/parms.c
873
new->parm_int_state |= IS_NO_ADV_IN;
sbin/routed/parms.c
876
if (new->parm_auth[i].type != RIP_AUTH_NONE)
sbin/routed/parms.c
885
if (strcmp(new->parm_name, parmp->parm_name))
sbin/routed/parms.c
888
new->parm_net, new->parm_mask)
sbin/routed/parms.c
889
&& !on_net_h(new->parm_net,
sbin/routed/parms.c
900
if ((0 != (new->parm_int_state & GROUP_IS_SOL_OUT)
sbin/routed/parms.c
902
&& 0 != ((new->parm_int_state ^ parmp->parm_int_state)
sbin/routed/parms.c
904
|| (0 != (new->parm_int_state & GROUP_IS_ADV_OUT)
sbin/routed/parms.c
906
&& 0 != ((new->parm_int_state ^ parmp->parm_int_state)
sbin/routed/parms.c
908
|| (new->parm_rdisc_pref != 0
sbin/routed/parms.c
910
&& new->parm_rdisc_pref != parmp->parm_rdisc_pref)
sbin/routed/parms.c
911
|| (new->parm_rdisc_int != 0
sbin/routed/parms.c
913
&& new->parm_rdisc_int != parmp->parm_rdisc_int)) {
sbin/routed/parms.c
919
if (new->parm_d_metric != 0
sbin/routed/parms.c
921
&& new->parm_d_metric != parmp->parm_d_metric) {
sbin/routed/parms.c
926
if (new->parm_adj_inmetric != 0
sbin/routed/parms.c
928
&& new->parm_adj_inmetric != parmp->parm_adj_inmetric) {
sbin/routed/parms.c
933
if (new->parm_adj_outmetric != 0
sbin/routed/parms.c
935
&& new->parm_adj_outmetric != parmp->parm_adj_outmetric) {
sbin/routed/parms.c
945
memcpy(parmp, new, sizeof(*parmp));
sbin/routed/rdisc.c
461
struct rt_spare new;
sbin/routed/rdisc.c
522
new = rt->rt_spares[0];
sbin/routed/rdisc.c
523
new.rts_metric = HOPCNT_INFINITY;
sbin/routed/rdisc.c
524
new.rts_time = now.tv_sec - GARBAGE_TIME;
sbin/routed/rdisc.c
526
&new, 0);
sbin/routed/rdisc.c
547
memset(&new, 0, sizeof(new));
sbin/routed/rdisc.c
548
new.rts_ifp = new_drp->dr_ifp;
sbin/routed/rdisc.c
549
new.rts_gate = new_drp->dr_gate;
sbin/routed/rdisc.c
550
new.rts_router = new_drp->dr_gate;
sbin/routed/rdisc.c
551
new.rts_metric = HOPCNT_INFINITY-1;
sbin/routed/rdisc.c
552
new.rts_time = now.tv_sec;
sbin/routed/rdisc.c
554
rtchange(rt, rt->rt_state | RS_RDISC, &new, 0);
sbin/routed/rdisc.c
556
rtadd(RIP_DEFAULT, 0, RS_RDISC, &new);
sbin/routed/table.c
1721
struct rt_spare *new)
sbin/routed/table.c
1748
rt->rt_spares[0] = *new;
sbin/routed/table.c
1775
struct rt_spare *new,
sbin/routed/table.c
1778
if (rt->rt_metric != new->rts_metric) {
sbin/routed/table.c
1783
if (new->rts_metric == HOPCNT_INFINITY) {
sbin/routed/table.c
1785
if (new->rts_time >= now.tv_sec - EXPIRE_TIME)
sbin/routed/table.c
1786
new->rts_time = now.tv_sec - EXPIRE_TIME;
sbin/routed/table.c
1792
if (rt->rt_gate != new->rts_gate) {
sbin/routed/table.c
1802
if (!AGE_RT(state, new->rts_ifp))
sbin/routed/table.c
1803
new->rts_time = now.tv_sec;
sbin/routed/table.c
1806
trace_change(rt, state, new,
sbin/routed/table.c
1810
rt->rt_spares[0] = *new;
sbin/routed/table.c
1910
struct rt_spare new;
sbin/routed/table.c
1913
new = rt->rt_spares[0];
sbin/routed/table.c
1914
new.rts_metric = HOPCNT_INFINITY;
sbin/routed/table.c
1915
rtchange(rt, rt->rt_state & ~(RS_IF | RS_LOCAL | RS_STATIC), &new, 0);
sbin/routed/table.c
1980
struct rt_spare new = rt->rt_spares[0];
sbin/routed/table.c
1981
new.rts_ifp = ifp1;
sbin/routed/table.c
1983
&new, 0);
sbin/routed/table.c
2101
struct rt_spare new = RT->rt_spares[0];
sbin/routed/table.c
2102
new.rts_metric = HOPCNT_INFINITY;
sbin/routed/table.c
2103
rtchange(RT, RT->rt_state, &new, 0);
sbin/routed/table.c
833
struct rt_spare new;
sbin/routed/table.c
838
memset(&new, 0, sizeof(new));
sbin/routed/table.c
839
new.rts_ifp = ifp;
sbin/routed/table.c
840
new.rts_gate = k->k_gate;
sbin/routed/table.c
841
new.rts_router = (ifp != 0) ? ifp->int_addr : loopaddr;
sbin/routed/table.c
842
new.rts_metric = k->k_metric;
sbin/routed/table.c
843
new.rts_time = now.tv_sec;
sbin/routed/table.c
848
rtchange(rt, rt->rt_state | RS_STATIC, &new, 0);
sbin/routed/table.c
850
rtadd(k->k_dst, k->k_mask, RS_STATIC, &new);
sbin/routed/trace.c
672
struct rt_spare *new)
sbin/routed/trace.c
677
if (rts->rts_gate == new->rts_gate
sbin/routed/trace.c
678
&& rts->rts_router == new->rts_router
sbin/routed/trace.c
679
&& rts->rts_metric == new->rts_metric
sbin/routed/trace.c
680
&& rts->rts_tag == new->rts_tag
sbin/routed/trace.c
681
&& rts->rts_de_ag == new->rts_de_ag)
sbin/routed/trace.c
685
if (new->rts_gate == 0) {
sbin/routed/trace.c
691
|| AGE_RT(rt->rt_state,new->rts_ifp)));
sbin/routed/trace.c
698
rts->rts_gate != new->rts_gate,
sbin/routed/trace.c
699
rts->rts_tag != new->rts_tag,
sbin/routed/trace.c
704
(new->rts_gate != rts->rts_gate
sbin/routed/trace.c
705
? naddr_ntoa(new->rts_gate) : ""));
sbin/routed/trace.c
706
print_rts(new,
sbin/routed/trace.c
707
-(new->rts_metric == rts->rts_metric),
sbin/routed/trace.c
708
-(new->rts_ifp == rts->rts_ifp),
sbin/routed/trace.c
710
rts->rts_tag != new->rts_tag,
sbin/routed/trace.c
711
(new->rts_time != rts->rts_time
sbin/routed/trace.c
713
|| AGE_RT(rt->rt_state, new->rts_ifp))));
sbin/routed/trace.c
718
rtname(rt->rt_dst, rt->rt_mask, new->rts_gate));
sbin/routed/trace.c
719
print_rts(new, 0,0,0,0,
sbin/routed/trace.c
721
|| AGE_RT(rt->rt_state,new->rts_ifp)));
sbin/routed/trace.c
784
struct rt_spare *new,
sbin/routed/trace.c
790
if (rt->rt_metric == new->rts_metric
sbin/routed/trace.c
791
&& rt->rt_gate == new->rts_gate
sbin/routed/trace.c
792
&& rt->rt_router == new->rts_router
sbin/routed/trace.c
794
&& rt->rt_tag == new->rts_tag
sbin/routed/trace.c
795
&& rt->rt_de_ag == new->rts_de_ag)
sbin/routed/trace.c
808
(rt->rt_gate != new->rts_gate
sbin/routed/trace.c
809
? naddr_ntoa(new->rts_gate) : ""));
sbin/routed/trace.c
810
print_rts(new,
sbin/routed/trace.c
811
-(new->rts_metric == rt->rt_metric),
sbin/routed/trace.c
812
-(new->rts_ifp == rt->rt_ifp),
sbin/routed/trace.c
814
rt->rt_tag != new->rts_tag,
sbin/routed/trace.c
815
(rt->rt_time != new->rts_time
sbin/routed/trace.c
816
&& AGE_RT(rt->rt_state,new->rts_ifp)));
sbin/tunefs/tunefs.c
248
#define CHANGEVAL(old, new, type, suffix) do \
sbin/tunefs/tunefs.c
249
if ((uint32_t)(new) != (uint32_t)-1) { \
sbin/tunefs/tunefs.c
250
if ((new) == (old)) \
sbin/tunefs/tunefs.c
255
(type), (old), (suffix), (new), (suffix)); \
sbin/tunefs/tunefs.c
256
(old) = (new); \
share/examples/refuse/ian/libfetch/http.c
1022
if (new)
share/examples/refuse/ian/libfetch/http.c
1023
free(new);
share/examples/refuse/ian/libfetch/http.c
1028
new = fetchMakeURL(url->scheme, url->host, url->port, p,
share/examples/refuse/ian/libfetch/http.c
1031
new = fetchParseURL(p);
share/examples/refuse/ian/libfetch/http.c
1032
if (new == NULL) {
share/examples/refuse/ian/libfetch/http.c
1037
if (!*new->user && !*new->pwd) {
share/examples/refuse/ian/libfetch/http.c
1038
strcpy(new->user, url->user);
share/examples/refuse/ian/libfetch/http.c
1039
strcpy(new->pwd, url->pwd);
share/examples/refuse/ian/libfetch/http.c
1041
new->offset = url->offset;
share/examples/refuse/ian/libfetch/http.c
1042
new->length = url->length;
share/examples/refuse/ian/libfetch/http.c
1092
if (!new) {
share/examples/refuse/ian/libfetch/http.c
1098
url = new;
share/examples/refuse/ian/libfetch/http.c
807
struct url *url, *new;
share/examples/refuse/ian/libfetch/http.c
836
new = NULL;
sys/altq/altq_red.c
911
red_t *new;
sys/altq/altq_red.c
920
new = red_alloc(fc->red_weight,
sys/altq/altq_red.c
926
if (new == NULL) {
sys/altq/altq_red.c
940
rqp->rq_red = new;
sys/altq/altq_rio.c
632
rio_t *new;
sys/altq/altq_rio.c
642
new = rio_alloc(fc->rio_weight, &fc->q_params[0],
sys/altq/altq_rio.c
644
if (new == NULL) {
sys/altq/altq_rio.c
657
rqp->rq_rio = new;
sys/arch/amd64/amd64/machdep.c
428
x86_64_switch_context(struct pcb *new)
sys/arch/amd64/amd64/machdep.c
430
HYPERVISOR_stack_switch(GSEL(GDATA_SEL, SEL_KPL), new->pcb_rsp0);
sys/arch/amd64/amd64/machdep.c
432
set_iopl.iopl = new->pcb_iopl;
sys/arch/amiga/amiga/cc.c
489
struct mem_node *mn, *new;
sys/arch/amiga/amiga/cc.c
527
new = mn;
sys/arch/amiga/amiga/cc.c
528
new->size -= size + sizeof(struct mem_node);
sys/arch/amiga/amiga/cc.c
529
mn = (struct mem_node *)(MNODES_MEM(new) + new->size);
sys/arch/amiga/amiga/cc.c
536
TAILQ_INSERT_AFTER(&chip_list, new, mn, link);
sys/arch/amiga/dev/view.c
192
view_t *new, *old;
sys/arch/amiga/dev/view.c
211
new = grf_alloc_view(NULL, &ns, vs->depth);
sys/arch/amiga/dev/view.c
212
if (new == NULL)
sys/arch/amiga/dev/view.c
216
vu->view = new;
sys/arch/amiga/dev/view.c
217
vu->size.x = new->display.x;
sys/arch/amiga/dev/view.c
218
vu->size.y = new->display.y;
sys/arch/amiga/dev/view.c
219
vu->size.width = new->display.width;
sys/arch/amiga/dev/view.c
220
vu->size.height = new->display.height;
sys/arch/amiga/dev/view.c
221
vu->size.depth = new->bitmap->depth;
sys/arch/arc/stand/boot/bootinfo.c
60
bi_add(void *new, int type, size_t size)
sys/arch/arc/stand/boot/bootinfo.c
70
memcpy(bi_next, new, size);
sys/arch/arm/amlogic/meson_sdhc.c
148
const uint32_t new = set | (old & ~clr);
sys/arch/arm/amlogic/meson_sdhc.c
149
if (old != new)
sys/arch/arm/amlogic/meson_sdhc.c
150
SDHC_WRITE(sc, reg, new);
sys/arch/arm/at91/at91aic.c
185
splx(int new)
sys/arch/arm/at91/at91aic.c
192
if (old != new) {
sys/arch/arm/at91/at91aic.c
193
set_curcpl(new);
sys/arch/arm/at91/at91aic.c
194
at91_set_intrmask(aic_imask[new]);
sys/arch/arm/ep93xx/ep93xx_intr.c
199
splx(int new)
sys/arch/arm/ep93xx/ep93xx_intr.c
204
set_curcpl(new);
sys/arch/arm/ep93xx/ep93xx_intr.c
205
if (new != hardware_spl_level) {
sys/arch/arm/ep93xx/ep93xx_intr.c
206
hardware_spl_level = new;
sys/arch/arm/ep93xx/ep93xx_intr.c
207
ep93xx_set_intrmask(vic1_imask[new], vic2_imask[new]);
sys/arch/arm/footbridge/footbridge_irqhandler.c
174
splx(int new)
sys/arch/arm/footbridge/footbridge_irqhandler.c
176
footbridge_splx(new);
sys/arch/arm/gemini/gemini_gpio.c
274
uint32_t old, new;
sys/arch/arm/gemini/gemini_gpio.c
277
new = old;
sys/arch/arm/gemini/gemini_gpio.c
279
case GPIO_PIN_INPUT: new &= ~mask; break;
sys/arch/arm/gemini/gemini_gpio.c
280
case GPIO_PIN_OUTPUT: new |= mask; break;
sys/arch/arm/gemini/gemini_gpio.c
283
if (old != new)
sys/arch/arm/gemini/gemini_gpio.c
284
GPIO_WRITE(gpio, GEMINI_GPIO_PINDIR, new);
sys/arch/arm/gemini/if_gmc.c
447
uint32_t new, mask;
sys/arch/arm/gemini/if_gmc.c
508
new = DMAVR_RXDMA_ENABLE | DMAVR_TXDMA_ENABLE
sys/arch/arm/gemini/if_gmc.c
514
new |= sc->sc_dmavr & ~mask;
sys/arch/arm/gemini/if_gmc.c
515
if (sc->sc_dmavr != new) {
sys/arch/arm/gemini/if_gmc.c
516
sc->sc_dmavr = new;
sys/arch/arm/gemini/if_gmc.c
527
new = CONFIG0_MAXLEN(CONFIG0_MAXLEN_1536) | CONFIG0_R_LATCHED_MMII;
sys/arch/arm/gemini/if_gmc.c
528
new |= (sc->sc_gmac_config[0] & ~mask);
sys/arch/arm/gemini/if_gmc.c
529
if (sc->sc_gmac_config[0] != new) {
sys/arch/arm/gemini/if_gmc.c
530
sc->sc_gmac_config[0] = new;
sys/arch/arm/imx/imx31_gpio.c
242
uint32_t old, new;
sys/arch/arm/imx/imx31_gpio.c
246
new = old | mask;
sys/arch/arm/imx/imx31_gpio.c
248
new = old & ~mask;
sys/arch/arm/imx/imx31_gpio.c
250
if (old != new)
sys/arch/arm/imx/imx31_gpio.c
251
GPIO_WRITE(gpio, GPIO_DR, new);
sys/arch/arm/imx/imx31_gpio.c
259
uint32_t old, new;
sys/arch/arm/imx/imx31_gpio.c
262
new = old;
sys/arch/arm/imx/imx31_gpio.c
264
case GPIO_PIN_INPUT: new |= mask; break;
sys/arch/arm/imx/imx31_gpio.c
265
case GPIO_PIN_OUTPUT: new &= ~mask; break;
sys/arch/arm/imx/imx31_gpio.c
268
if (old != new)
sys/arch/arm/imx/imx31_gpio.c
269
GPIO_WRITE(gpio, GPIO_DIR, new);
sys/arch/arm/imx/imxgpio.c
245
uint32_t new;
sys/arch/arm/imx/imxgpio.c
251
new = old | mask;
sys/arch/arm/imx/imxgpio.c
253
new = old & ~mask;
sys/arch/arm/imx/imxgpio.c
255
if (old != new)
sys/arch/arm/imx/imxgpio.c
256
GPIO_WRITE(gpio, GPIO_DR, new);
sys/arch/arm/imx/imxgpio.c
267
uint32_t new;
sys/arch/arm/imx/imxgpio.c
272
new = old;
sys/arch/arm/imx/imxgpio.c
275
new &= ~mask;
sys/arch/arm/imx/imxgpio.c
278
new |= mask;
sys/arch/arm/imx/imxgpio.c
284
if (old != new)
sys/arch/arm/imx/imxgpio.c
285
GPIO_WRITE(gpio, GPIO_DIR, new);
sys/arch/arm/ixp12x0/ixp12x0_intr.c
256
splx(int new)
sys/arch/arm/ixp12x0/ixp12x0_intr.c
261
set_curcpl(new);
sys/arch/arm/ixp12x0/ixp12x0_intr.c
262
if (new != hardware_spl_level) {
sys/arch/arm/ixp12x0/ixp12x0_intr.c
263
hardware_spl_level = new;
sys/arch/arm/ixp12x0/ixp12x0_intr.c
264
ixp12x0_set_intrmask(imask[new], pci_imask[new]);
sys/arch/arm/marvell/mvsocgpp.c
372
uint32_t old, new, mask = MVSOCGPP_GPIOPIN(pin);
sys/arch/arm/marvell/mvsocgpp.c
378
new = old | mask;
sys/arch/arm/marvell/mvsocgpp.c
380
new = old & ~mask;
sys/arch/arm/marvell/mvsocgpp.c
381
if (new != old)
sys/arch/arm/marvell/mvsocgpp.c
382
MVSOCGPP_WRITE(sc, MVSOCGPP_GPIODO(pin), new);
sys/arch/arm/marvell/mvsocgpp.c
390
uint32_t old, new, mask = MVSOCGPP_GPIOPIN(pin);
sys/arch/arm/marvell/mvsocgpp.c
397
new = old | mask;
sys/arch/arm/marvell/mvsocgpp.c
401
new = old & ~mask;
sys/arch/arm/marvell/mvsocgpp.c
407
if (new != old)
sys/arch/arm/marvell/mvsocgpp.c
408
MVSOCGPP_WRITE(sc, MVSOCGPP_GPIODOEC(pin), new);
sys/arch/arm/marvell/mvsocgpp.c
413
new = old | mask;
sys/arch/arm/marvell/mvsocgpp.c
415
new = old & ~mask;
sys/arch/arm/marvell/mvsocgpp.c
416
if (new != old)
sys/arch/arm/marvell/mvsocgpp.c
417
MVSOCGPP_WRITE(sc, MVSOCGPP_GPIOBE(pin), new);
sys/arch/arm/marvell/mvsocgpp.c
421
new = old | mask;
sys/arch/arm/marvell/mvsocgpp.c
423
new = old & ~mask;
sys/arch/arm/marvell/mvsocgpp.c
424
if (new != old)
sys/arch/arm/marvell/mvsocgpp.c
425
MVSOCGPP_WRITE(sc, MVSOCGPP_GPIODIP(pin), new);
sys/arch/arm/nvidia/tegra_var.h
88
const uint32_t new = set_mask | (old & ~clr_mask);
sys/arch/arm/nvidia/tegra_var.h
89
if (old != new) {
sys/arch/arm/nvidia/tegra_var.h
90
bus_space_write_4(bst, bsh, o, new);
sys/arch/arm/s3c2xx0/s3c2xx0_intr.h
117
s3c2xx0_setipl(int new)
sys/arch/arm/s3c2xx0/s3c2xx0_intr.h
119
set_curcpl(new);
sys/arch/arm/s3c2xx0/s3c2xx0_intr.h
129
s3c2xx0_splx(int new)
sys/arch/arm/s3c2xx0/s3c2xx0_intr.h
134
s3c2xx0_setipl(new);
sys/arch/arm/s3c2xx0/s3c2xx0_intr.h
174
#define splx(new) s3c2xx0_splx(new)
sys/arch/arm/sunxi/sun50i_a64_acodec.c
217
u_int old, new;
sys/arch/arm/sunxi/sun50i_a64_acodec.c
220
new = set | (old & ~clr);
sys/arch/arm/sunxi/sun50i_a64_acodec.c
221
a64_acodec_pr_write(sc, addr, new);
sys/arch/arm/sunxi/sun8i_h3_codec.c
206
u_int old, new;
sys/arch/arm/sunxi/sun8i_h3_codec.c
209
new = set | (old & ~clr);
sys/arch/arm/sunxi/sun8i_h3_codec.c
210
h3_codec_pr_write(csc, addr, new);
sys/arch/arm/sunxi/sun8i_v3s_codec.c
193
u_int old, new;
sys/arch/arm/sunxi/sun8i_v3s_codec.c
196
new = set | (old & ~clr);
sys/arch/arm/sunxi/sun8i_v3s_codec.c
197
v3s_codec_pr_write(csc, addr, new);
sys/arch/arm/xscale/becc_icu.c
220
splx(int new)
sys/arch/arm/xscale/becc_icu.c
222
becc_splx(new);
sys/arch/arm/xscale/becc_intr.h
109
#define splx(new) becc_splx(new)
sys/arch/arm/xscale/becc_intr.h
74
becc_splx(int new)
sys/arch/arm/xscale/becc_intr.h
79
set_curcpl(new);
sys/arch/arm/xscale/becc_intr.h
87
hwpend = becc_ipending & ~new;
sys/arch/arm/xscale/i80321_icu.c
201
splx(int new)
sys/arch/arm/xscale/i80321_icu.c
203
i80321_splx(new);
sys/arch/arm/xscale/i80321_intr.h
122
#define splx(new) i80321_splx(new)
sys/arch/arm/xscale/i80321_intr.h
68
i80321_splx(int new)
sys/arch/arm/xscale/i80321_intr.h
75
set_curcpl(new);
sys/arch/arm/xscale/i80321_intr.h
77
hwpend = (i80321_ipending & ICU_INT_HWMASK) & ~i80321_imask[new];
sys/arch/arm/xscale/ixp425_intr.c
259
splx(int new)
sys/arch/arm/xscale/ixp425_intr.c
261
ixp425_splx(new);
sys/arch/arm/xscale/ixp425_intr.h
113
#define splx(new) ixp425_splx(new)
sys/arch/arm/xscale/pxa2x0_intr.h
123
#define splx(new) pxa2x0_splx(new)
sys/arch/arm/xscale/pxa2x0_intr.h
68
pxa2x0_setipl(int new)
sys/arch/arm/xscale/pxa2x0_intr.h
70
set_curcpl(new);
sys/arch/arm/xscale/pxa2x0_intr.h
71
intr_mask = pxa2x0_imask[new];
sys/arch/arm/xscale/pxa2x0_intr.h
77
pxa2x0_splx(int new)
sys/arch/arm/xscale/pxa2x0_intr.h
82
pxa2x0_setipl(new);
sys/arch/atari/atari/stalloc.c
132
new = mn;
sys/arch/atari/atari/stalloc.c
133
new->size -= size + sizeof(*mn);
sys/arch/atari/atari/stalloc.c
134
mn = (struct mem_node *)(MNODES_MEM(new) + new->size);
sys/arch/atari/atari/stalloc.c
141
TAILQ_INSERT_AFTER(&st_list, new, mn, link);
sys/arch/atari/atari/stalloc.c
83
struct mem_node *mn, *new, *bfit;
sys/arch/atari/dev/view.c
198
view_t *new, *old;
sys/arch/atari/dev/view.c
225
new = grf_alloc_view(dmode, &ns, vs->depth);
sys/arch/atari/dev/view.c
226
if (new == NULL)
sys/arch/atari/dev/view.c
230
vu->view = new;
sys/arch/atari/dev/view.c
231
vu->size.x = new->display.x;
sys/arch/atari/dev/view.c
232
vu->size.y = new->display.y;
sys/arch/atari/dev/view.c
233
vu->size.width = new->display.width;
sys/arch/atari/dev/view.c
234
vu->size.height = new->display.height;
sys/arch/atari/dev/view.c
235
vu->size.depth = new->bitmap->depth;
sys/arch/atari/vme/et4000.c
257
u_char orig, new, saved;
sys/arch/atari/vme/et4000.c
274
new = bus_space_read_1(*iot, *ioh, ACT_ADDRESS_R);
sys/arch/atari/vme/et4000.c
276
if (new != (orig ^ 0x10)) {
sys/arch/atari/vme/et4000.c
279
new, (orig ^ 0x10));
sys/arch/atari/vme/et4000.c
289
new = bus_space_read_1(*iot, *ioh, vgabase + 0x05);
sys/arch/atari/vme/et4000.c
291
if (new != (orig ^ 0x0f)) {
sys/arch/atari/vme/et4000.c
294
new, (orig ^ 0x0f));
sys/arch/cobalt/stand/boot/bootinfo.c
62
void bi_add(void *new, int type, int size)
sys/arch/cobalt/stand/boot/bootinfo.c
73
bi = new;
sys/arch/cobalt/stand/boot/bootinfo.c
76
memcpy(bi_next, new, size);
sys/arch/dreamcast/dev/g2/g2rtc.c
125
uint32_t new, old;
sys/arch/dreamcast/dev/g2/g2rtc.c
130
new = g2rtc_read(sc->sc_bt, sc->sc_bh);
sys/arch/dreamcast/dev/g2/g2rtc.c
131
if (new != old)
sys/arch/dreamcast/dev/g2/g2rtc.c
135
old = new;
sys/arch/dreamcast/dev/g2/g2rtc.c
140
tv->tv_sec = new - G2RTC_OFFSET;
sys/arch/emips/ebus/ace_ebus.c
2222
struct bufq_state *new;
sys/arch/emips/ebus/ace_ebus.c
2232
error = bufq_alloc(&new, dks->dks_name,
sys/arch/emips/ebus/ace_ebus.c
2239
bufq_move(new, old);
sys/arch/emips/ebus/ace_ebus.c
2240
ace->sc_q = new;
sys/arch/emips/ebus/flash_ebus.c
2139
struct bufq_state *new;
sys/arch/emips/ebus/flash_ebus.c
2149
error = bufq_alloc(&new, dks->dks_name,
sys/arch/emips/ebus/flash_ebus.c
2156
bufq_move(new, old);
sys/arch/emips/ebus/flash_ebus.c
2157
sc->sc_q = new;
sys/arch/emips/stand/common/bootinfo.c
57
void bi_add(void *new, int type, int size)
sys/arch/emips/stand/common/bootinfo.c
64
bi = new;
sys/arch/emips/stand/common/bootinfo.c
67
memcpy(bi_next, new, size);
sys/arch/epoc32/stand/e32boot/include/netbsd.h
64
ELF(TInt size) { Buffer = new TUint8[size]; };
sys/arch/evbarm/ifpga/ifpga_intr.c
196
splx(int new)
sys/arch/evbarm/ifpga/ifpga_intr.c
199
ifpga_splx(new);
sys/arch/evbarm/ifpga/ifpga_intr.h
114
#define splx(new) ifpga_splx(new)
sys/arch/evbarm/ifpga/ifpga_intr.h
66
ifpga_splx(int new)
sys/arch/evbarm/ifpga/ifpga_intr.h
75
set_curcpl(new);
sys/arch/evbarm/ifpga/ifpga_intr.h
77
hwpend = (ifpga_ipending & IFPGA_INTR_HWMASK) & ~new;
sys/arch/evbarm/iq80310/iq80310_intr.c
256
int new, oldirqstate;
sys/arch/evbarm/iq80310/iq80310_intr.c
261
new = ci->ci_cpl;
sys/arch/evbarm/iq80310/iq80310_intr.c
266
if ((iq80310_ipending & ~new) & SI_TO_IRQBIT(si)) { \
sys/arch/evbarm/iq80310/iq80310_intr.c
272
ci->ci_cpl = new; \
sys/arch/evbarm/iq80310/iq80310_intr.c
294
splx(int new)
sys/arch/evbarm/iq80310/iq80310_intr.c
297
return (iq80310_splx(new));
sys/arch/evbarm/iq80310/iq80310_intr.h
101
if ((iq80310_ipending & ~IRQ_BITS) & ~new)
sys/arch/evbarm/iq80310/iq80310_intr.h
115
if ((new & IRQ_BITS) == 0 && (iq80310_ipending & IRQ_BITS))
sys/arch/evbarm/iq80310/iq80310_intr.h
90
iq80310_splx(int new)
sys/arch/evbarm/iq80310/iq80310_intr.h
97
set_curcpl(new);
sys/arch/evbarm/stand/boot2440/main.c
520
bi_add(void *new, int type, int size)
sys/arch/evbarm/stand/boot2440/main.c
527
bi = new;
sys/arch/evbarm/stand/boot2440/main.c
530
memcpy(bi_next, new, size);
sys/arch/evbarm/stand/boot2440/main.c
85
static void bi_add(void *new, int type, int size);
sys/arch/hpc/stand/hpcboot/sh3/sh_arch.h
128
_dev = new SH4dev;
sys/arch/hpc/stand/hpcboot/sh3/sh_arch.h
88
_dev = new SH3dev; \
sys/arch/i386/pci/piixpcib.c
248
int new;
sys/arch/i386/pci/piixpcib.c
265
"=b" (new),
sys/arch/i386/pci/piixpcib.c
274
*state = new & 1;
sys/arch/i386/pnpbios/pnpbios.c
1068
struct pnpresources *new, *last;
sys/arch/i386/pnpbios/pnpbios.c
1085
new = malloc(sizeof(*new),
sys/arch/i386/pnpbios/pnpbios.c
1089
new, 1);
sys/arch/i386/pnpbios/pnpbios.c
1093
free(new, M_DEVBUF);
sys/arch/i386/pnpbios/pnpbios.c
1096
last->dependent_link = new;
sys/arch/i386/pnpbios/pnpbios.c
1097
last = new;
sys/arch/i386/stand/lib/pcio.c
75
int new;
sys/arch/i386/stand/lib/pcio.c
77
while ((new = biosgetsystime()) < tgt) {
sys/arch/i386/stand/lib/pcio.c
78
if (new < prev) /* XXX timer wrapped */
sys/arch/i386/stand/lib/pcio.c
80
prev = new;
sys/arch/ia64/include/pcb.h
72
int swapctx(struct pcb *old, struct pcb *new) __returns_twice;
sys/arch/m68k/fpsp/fpsp.h
93
* handler exit code will reload the new frame and discard the old.
sys/arch/mips/adm5120/dev/if_admsw.c
1229
int old, new, val;
sys/arch/mips/adm5120/dev/if_admsw.c
1250
new = old & ~((PHY_CNTL2_AUTONEG | PHY_CNTL2_100M | PHY_CNTL2_FDX)
sys/arch/mips/adm5120/dev/if_admsw.c
1252
new |= (val << port);
sys/arch/mips/adm5120/dev/if_admsw.c
1254
if (new != old)
sys/arch/mips/adm5120/dev/if_admsw.c
1255
REG_WRITE(PHY_CNTL2_REG, new);
sys/arch/mips/mips/mips_fixup.c
682
_atomic_cas_uint(volatile u_int *ptr, u_int old, u_int new)
sys/arch/mips/mips/mips_fixup.c
685
return (*mips_locore_atomicvec.lav_atomic_cas_uint)(ptr, old, new);
sys/arch/mips/mips/mips_fixup.c
689
_atomic_cas_ulong(volatile u_long *ptr, u_long old, u_long new)
sys/arch/mips/mips/mips_fixup.c
692
return (*mips_locore_atomicvec.lav_atomic_cas_ulong)(ptr, old, new);
sys/arch/mips/mips/mips_fixup.c
714
__ucas_32(volatile uint32_t *ptr, uint32_t old, uint32_t new, uint32_t *retp)
sys/arch/mips/mips/mips_fixup.c
717
return (*mips_locore_atomicvec.lav_ucas_32)(ptr, old, new, retp);
sys/arch/mips/mips/mips_fixup.c
724
__ucas_64(volatile uint64_t *ptr, uint64_t old, uint64_t new, uint64_t *retp)
sys/arch/mips/mips/mips_fixup.c
727
return (*mips_locore_atomicvec.lav_ucas_64)(ptr, old, new, retp);
sys/arch/mips/rmi/rmixl_gpio.c
105
uint32_t old, new;
sys/arch/mips/rmi/rmixl_gpio.c
111
new = old | mask;
sys/arch/mips/rmi/rmixl_gpio.c
113
new = old & ~mask;
sys/arch/mips/rmi/rmixl_gpio.c
115
if (old != new)
sys/arch/mips/rmi/rmixl_gpio.c
116
GPIO_WRITE(gpio, RMIXL_GPIO_OUTPUT, new);
sys/arch/mips/rmi/rmixl_gpio.c
124
uint32_t old, new;
sys/arch/mips/rmi/rmixl_gpio.c
128
new = old;
sys/arch/mips/rmi/rmixl_gpio.c
130
case GPIO_PIN_INPUT: new &= ~mask; break;
sys/arch/mips/rmi/rmixl_gpio.c
131
case GPIO_PIN_OUTPUT: new |= mask; break;
sys/arch/mips/rmi/rmixl_gpio.c
134
if (old != new)
sys/arch/mips/rmi/rmixl_gpio.c
135
GPIO_WRITE(gpio, RMIXL_GPIO_IO_DIR, new);
sys/arch/mipsco/stand/common/bootinfo.c
58
void bi_add(new, type, size)
sys/arch/mipsco/stand/common/bootinfo.c
59
void *new;
sys/arch/mipsco/stand/common/bootinfo.c
67
bi = new;
sys/arch/mipsco/stand/common/bootinfo.c
70
memcpy(bi_next, new, size);
sys/arch/mmeye/stand/boot/bootinfo.c
62
void bi_add(void *new, int type, int size)
sys/arch/mmeye/stand/boot/bootinfo.c
73
bi = new;
sys/arch/mmeye/stand/boot/bootinfo.c
76
memcpy(bi_next, new, size);
sys/arch/mvme68k/dev/lpt_pcc.c
215
u_char new;
sys/arch/mvme68k/dev/lpt_pcc.c
223
new = status & ~sc->sc_laststatus;
sys/arch/mvme68k/dev/lpt_pcc.c
226
if (new & LPS_SELECT)
sys/arch/mvme68k/dev/lpt_pcc.c
229
else if (new & LPS_PAPER_EMPTY)
sys/arch/mvme68k/dev/lpt_pcc.c
232
else if (new & LPS_FAULT)
sys/arch/newsmips/stand/boot/bootinfo.c
58
bi_add(void *new, int type, int size)
sys/arch/newsmips/stand/boot/bootinfo.c
65
bi = new;
sys/arch/newsmips/stand/boot/bootinfo.c
68
memcpy(bi_next, new, size);
sys/arch/playstation2/playstation2/interrupt.c
174
u_int32_t mask, new;
sys/arch/playstation2/playstation2/interrupt.c
180
new = __icu_mask[i];
sys/arch/playstation2/playstation2/interrupt.c
181
new &= mask;
sys/arch/playstation2/playstation2/interrupt.c
182
new |= (holder[i].mask & ~mask);
sys/arch/playstation2/playstation2/interrupt.c
183
__icu_mask[i] = new;
sys/arch/pmax/stand/common/bootinfo.c
57
void bi_add(void *new, int type, int size)
sys/arch/pmax/stand/common/bootinfo.c
64
bi = new;
sys/arch/pmax/stand/common/bootinfo.c
67
memcpy(bi_next, new, size);
sys/arch/powerpc/powerpc/trap.c
694
_ucas_32(volatile uint32_t *uptr, uint32_t old, uint32_t new, uint32_t *ret)
sys/arch/powerpc/powerpc/trap.c
709
do_ucas_32((void *)p, old, new, ret);
sys/arch/riscv/starfive/jh71x0_usb.c
100
const uint32_t new = (old & ~clr) | set;
sys/arch/riscv/starfive/jh71x0_usb.c
101
if (old != new) {
sys/arch/riscv/starfive/jh71x0_usb.c
102
syscon_write_4(sc->sc_syscon, off, new);
sys/arch/sandpoint/stand/altboot/main.c
418
bi_add(void *new, int type, int size)
sys/arch/sandpoint/stand/altboot/main.c
425
bi = new;
sys/arch/sandpoint/stand/altboot/main.c
428
memcpy(bi_next, new, size);
sys/arch/sandpoint/stand/altboot/pci.c
228
unsigned new;
sys/arch/sandpoint/stand/altboot/pci.c
231
new = (maxbus += 1);
sys/arch/sandpoint/stand/altboot/pci.c
232
val = (0xff << 16) | (new << 8) | bus;
sys/arch/sandpoint/stand/altboot/pci.c
254
_buswalk(new, deviceinit, data);
sys/arch/sgimips/dev/scn.c
1241
dcd_int(struct scn_softc *sc, struct tty *tp, u_char new)
sys/arch/sgimips/dev/scn.c
1252
new,
sys/arch/sgimips/dev/scn.c
1258
if (!(*tp->t_linesw->l_modem) (tp, new == 0? 1: 0)) {
sys/arch/sgimips/stand/common/bootinfo.c
60
bi_add(void *new, int type, size_t size)
sys/arch/sgimips/stand/common/bootinfo.c
70
memcpy(bi_next, new, size);
sys/arch/shark/ofw/ofw.c
1595
vaddr_t new;
sys/arch/shark/ofw/ofw.c
1600
new = (*ppvf)->start;
sys/arch/shark/ofw/ofw.c
1603
new = ((*ppvf)->start + (align - 1)) & ~(align - 1);
sys/arch/shark/ofw/ofw.c
1604
lead = new - (*ppvf)->start;
sys/arch/shark/ofw/ofw.c
1614
(*ppvf)->start = new + size;
sys/arch/shark/ofw/ofw.c
1619
+ (*ppvf)->size) - (new + size);
sys/arch/shark/ofw/ofw.c
1628
pNew->start = new + size;
sys/arch/shark/ofw/ofw.c
1632
return new;
sys/arch/shark/ofw/ofw.c
1810
pv_addr_t new;
sys/arch/shark/ofw/ofw.c
1824
new.pv_va = (vaddr_t)*ppLeftover;
sys/arch/shark/ofw/ofw.c
1840
ofw_claimpages(&virt_freeptr, &new, claim_size);
sys/arch/shark/ofw/ofw.c
1842
pLeft = (PLEFTOVER)(new.pv_va + size);
sys/arch/shark/ofw/ofw.c
1849
return (void *)(new.pv_va);
sys/arch/shark/shark/scr.c
3392
Callout *new;
sys/arch/shark/shark/scr.c
3400
new = &scrClkCalloutArray[lc];
sys/arch/shark/shark/scr.c
3401
c->c_next = new;
sys/arch/shark/shark/scr.c
3402
c = new;
sys/arch/shark/shark/scr.c
3711
register Callout *new, *p, *t;
sys/arch/shark/shark/scr.c
3727
new = scrClkCallFree;
sys/arch/shark/shark/scr.c
3728
scrClkCallFree = new->c_next;
sys/arch/shark/shark/scr.c
3729
new->c_sc = sc;
sys/arch/shark/shark/scr.c
3730
new->c_arg = arg;
sys/arch/shark/shark/scr.c
3731
new->c_func = ftn;
sys/arch/shark/shark/scr.c
3750
new->c_time = count;
sys/arch/shark/shark/scr.c
3757
p->c_next = new;
sys/arch/shark/shark/scr.c
3758
new->c_next = t;
sys/arch/sparc/sparc/syscall.c
107
int new = *code & (SYSCALL_G7RFLAG|SYSCALL_G2RFLAG|SYSCALL_G5RFLAG);
sys/arch/sparc/sparc/syscall.c
109
if (new) {
sys/arch/sparc/sparc/syscall.c
111
if (__predict_true((new & SYSCALL_G5RFLAG) == SYSCALL_G5RFLAG))
sys/arch/sparc/sparc/syscall.c
113
else if (new & SYSCALL_G2RFLAG)
sys/arch/sparc/sparc/syscall.c
120
return new;
sys/arch/sparc/sparc/syscall.c
218
int error, new;
sys/arch/sparc/sparc/syscall.c
242
new = handle_new(tf, &code);
sys/arch/sparc/sparc/syscall.c
259
if (!new) {
sys/arch/sparc/stand/boot/bootinfo.c
69
bi_add(void *new, int type, size_t size)
sys/arch/sparc/stand/boot/bootinfo.c
76
bi = new;
sys/arch/sparc/stand/boot/bootinfo.c
79
memcpy(bi_next, new, size);
sys/arch/sparc/stand/ofwboot/bootinfo.c
76
bi_add(void *new, int type, size_t size)
sys/arch/sparc/stand/ofwboot/bootinfo.c
83
bi = new;
sys/arch/sparc/stand/ofwboot/bootinfo.c
86
sparc64_memcpy(bi_next, new, size);
sys/arch/sparc64/dev/bq4802_ebus.c
105
uint8_t ctrl, new;
sys/arch/sparc64/dev/bq4802_ebus.c
135
new = ctrl & ~(BQ4802_CTRL_DSE | BQ4802_CTRL_UTI);
sys/arch/sparc64/dev/bq4802_ebus.c
136
new = new | BQ4802_CTRL_24;
sys/arch/sparc64/dev/bq4802_ebus.c
137
if (new != ctrl)
sys/arch/sparc64/dev/ffb.c
1208
int new = *data8;
sys/arch/sparc64/dev/ffb.c
1209
alpha = new + old;
sys/arch/sparc64/dev/ffb.c
1211
old = new;
sys/arch/sparc64/sparc64/syscall.c
125
int new = *code & (SYSCALL_G7RFLAG|SYSCALL_G2RFLAG|SYSCALL_G5RFLAG);
sys/arch/sparc64/sparc64/syscall.c
127
if (new) {
sys/arch/sparc64/sparc64/syscall.c
129
if (__predict_true((new & SYSCALL_G5RFLAG) == SYSCALL_G5RFLAG))
sys/arch/sparc64/sparc64/syscall.c
131
else if (new & SYSCALL_G7RFLAG)
sys/arch/sparc64/sparc64/syscall.c
138
return new;
sys/arch/sparc64/sparc64/syscall.c
284
int error, new;
sys/arch/sparc64/sparc64/syscall.c
301
new = handle_old(tf, &code);
sys/arch/sparc64/sparc64/syscall.c
332
if (!new)
sys/arch/sun2/sun2/promlib.c
148
#define PROMLIB_FUNC(type, new, proto, old, args, ret) \
sys/arch/sun2/sun2/promlib.c
149
type new proto \
sys/arch/x86/x86/sys_machdep.c
435
void *new;
sys/arch/x86/x86/sys_machdep.c
446
new = kmem_alloc(IOMAPSIZE, KM_SLEEP);
sys/arch/x86/x86/sys_machdep.c
447
error = copyin(ua.iomap, new, IOMAPSIZE);
sys/arch/x86/x86/sys_machdep.c
449
kmem_free(new, IOMAPSIZE);
sys/arch/x86/x86/sys_machdep.c
453
pcb->pcb_iomap = new;
sys/compat/freebsd/freebsd_syscallargs.h
426
syscallarg(void *) new;
sys/compat/freebsd/freebsd_sysctl.c
136
new = SCARG(uap, new);
sys/compat/freebsd/freebsd_sysctl.c
138
if (new == NULL || newlen < 1 ||
sys/compat/freebsd/freebsd_sysctl.c
156
if ((error = copyinstr(new, locnew, newlen + 1, NULL))) {
sys/compat/freebsd/freebsd_sysctl.c
161
ktrmibio(-1, UIO_WRITE, new, newlen + 1, error);
sys/compat/freebsd/freebsd_sysctl.c
162
sysctl_lock(new != NULL);
sys/compat/freebsd/freebsd_sysctl.c
95
void *new, *old;
sys/dev/acpi/acpica/acpi_func.h
57
uint32_t new, old, val;
sys/dev/acpi/acpica/acpi_func.h
61
new = ((old & ~GL_BIT_MASK) | GL_BIT_OWNED) |
sys/dev/acpi/acpica/acpi_func.h
63
val = atomic_cas_32(lock, old, new);
sys/dev/acpi/acpica/acpi_func.h
67
return ((new < GL_BIT_MASK) ? GL_ACQUIRED : GL_BUSY);
sys/dev/acpi/acpica/acpi_func.h
73
uint32_t new, old, val;
sys/dev/acpi/acpica/acpi_func.h
78
new = old & ~GL_BIT_MASK;
sys/dev/acpi/acpica/acpi_func.h
79
val = atomic_cas_32(lock, old, new);
sys/dev/bluetooth/bthidev.c
927
bthidev_linkmode(void *arg, int new)
sys/dev/bluetooth/bthidev.c
934
if ((mode & L2CAP_LM_AUTH) && !(new & L2CAP_LM_AUTH))
sys/dev/bluetooth/bthidev.c
936
else if ((mode & L2CAP_LM_ENCRYPT) && !(new & L2CAP_LM_ENCRYPT))
sys/dev/bluetooth/bthidev.c
938
else if ((mode & L2CAP_LM_SECURE) && !(new & L2CAP_LM_SECURE))
sys/dev/bluetooth/btmagic.c
1051
btmagic_linkmode(void *arg, int new)
sys/dev/bluetooth/btmagic.c
1058
if (ISSET(mode, L2CAP_LM_AUTH) && !ISSET(new, L2CAP_LM_AUTH))
sys/dev/bluetooth/btmagic.c
1060
else if (ISSET(mode, L2CAP_LM_ENCRYPT) && !ISSET(new, L2CAP_LM_ENCRYPT))
sys/dev/bluetooth/btmagic.c
1062
else if (ISSET(mode, L2CAP_LM_SECURE) && !ISSET(new, L2CAP_LM_SECURE))
sys/dev/bluetooth/btmagic.c
836
int new;
sys/dev/bluetooth/btmagic.c
839
new = delta * resolution / 1300;
sys/dev/bluetooth/btmagic.c
840
*remainder = delta - new * 1300 / resolution;
sys/dev/bluetooth/btmagic.c
841
return new;
sys/dev/bluetooth/btsco.c
503
btsco_sco_linkmode(void *arg, int new)
sys/dev/dksubr.c
724
struct bufq_state *new;
sys/dev/dksubr.c
731
error = bufq_alloc(&new, dks->dks_name,
sys/dev/dksubr.c
739
bufq_move(new, old);
sys/dev/dksubr.c
740
dksc->sc_bufq = new;
sys/dev/i2c/adt7462.c
1367
uint8_t reg, val, old, new;
sys/dev/i2c/adt7462.c
1391
new = 12; /* Default Trange */
sys/dev/i2c/adt7462.c
1394
new = i;
sys/dev/i2c/adt7462.c
1395
new <<= ADT7462_HTR_RNGE_SHFT;
sys/dev/i2c/adt7462.c
1396
new |= (val & ADT7462_HTR_HYST_MASK);
sys/dev/i2c/adt7462.c
1397
if (adt7462_write_reg(sc->sc_tag, sc->sc_address, reg, new) != 0) {
sys/dev/i2c/as3722.c
360
uint8_t old, new;
sys/dev/i2c/as3722.c
367
new = set | (old & ~clr);
sys/dev/i2c/as3722.c
369
return as3722_write(sc, reg, new, flags);
sys/dev/ic/hd44780_subr.c
242
struct hlcd_screen *hdscr = v, *new;
sys/dev/ic/hd44780_subr.c
244
new = *cookiep = malloc(sizeof(struct hlcd_screen),
sys/dev/ic/hd44780_subr.c
246
new->hlcd_sc = hdscr->hlcd_sc;
sys/dev/ic/hd44780_subr.c
247
new->image = malloc(PAGE_SIZE, M_DEVBUF, M_WAITOK);
sys/dev/ic/hd44780_subr.c
248
memset(new->image, ' ', PAGE_SIZE);
sys/dev/ic/lpt.c
232
u_char new;
sys/dev/ic/lpt.c
235
new = status & ~sc->sc_laststatus;
sys/dev/ic/lpt.c
239
if (new & LPS_SELECT)
sys/dev/ic/lpt.c
242
else if (new & LPS_NOPAPER)
sys/dev/ic/lpt.c
245
else if (new & LPS_NERR)
sys/dev/ic/ncr5380sbc.c
643
goto new;
sys/dev/ic/ncr5380sbc.c
653
new:
sys/dev/ic/ncr53c9x.c
1927
new:
sys/dev/ic/ncr53c9x.c
1938
goto new;
sys/dev/ic/sunscpal.c
765
goto new;
sys/dev/ic/sunscpal.c
771
new:
sys/dev/ieee1394/sbp.c
1392
int new = 0;
sys/dev/ieee1394/sbp.c
1416
new = 1;
sys/dev/ieee1394/sbp.c
1423
if (new) {
sys/dev/ieee1394/sbp.c
734
int new = 0;
sys/dev/ieee1394/sbp.c
758
new = 1;
sys/dev/ieee1394/sbp.c
775
if (new == 0)
sys/dev/isa/if_ec.c
762
u_int8_t new;
sys/dev/isa/if_ec.c
769
new = ELINK2_CR_XSEL;
sys/dev/isa/if_ec.c
773
new = 0;
sys/dev/isa/if_ec.c
780
bus_space_write_1(esc->sc_asict, esc->sc_asich, ELINK2_CR, new);
sys/dev/marvell/gtethreg.h
50
#define ETH__INS(new, bit) ((new) << (bit))
sys/dev/marvell/gtethreg.h
51
#define ETH__LLINS(new, bit) ((uint64_t)(new) << (bit))
sys/dev/marvell/gtreg.h
47
#define GT__INS(new, bit) ((new) << (bit))
sys/dev/mii/makphy.c
350
uint16_t bmcr, new;
sys/dev/mii/makphy.c
360
new = bmcr | BMCR_PDOWN;
sys/dev/mii/makphy.c
362
new = bmcr & ~BMCR_PDOWN;
sys/dev/mii/makphy.c
363
if (bmcr != new)
sys/dev/mii/makphy.c
367
new |= BMCR_RESET;
sys/dev/mii/makphy.c
368
PHY_WRITE(sc, MII_BMCR, new);
sys/dev/mii/smscphy.c
130
uint16_t bmcr, new;
sys/dev/mii/smscphy.c
134
new = bmcr & ~BMCR_PDOWN;
sys/dev/mii/smscphy.c
136
new = bmcr | BMCR_PDOWN;
sys/dev/mii/smscphy.c
137
if (bmcr != new)
sys/dev/mii/smscphy.c
138
PHY_WRITE(sc, MII_BMCR, new);
sys/dev/mvme/lpt_pcctwo.c
241
u_int8_t new;
sys/dev/mvme/lpt_pcctwo.c
251
new = status & ~sc->sc_laststatus;
sys/dev/mvme/lpt_pcctwo.c
254
if (new & PCCTWO_PRT_IN_SR_SEL)
sys/dev/mvme/lpt_pcctwo.c
257
else if (new & PCCTWO_PRT_IN_SR_PE)
sys/dev/mvme/lpt_pcctwo.c
260
else if (new & PCCTWO_PRT_IN_SR_FLT)
sys/dev/pci/cxgb/cxgb_offload.c
1020
u8 new, u32 flags)
sys/dev/pci/cxgb/cxgb_offload.c
1212
cxgb_redirect(struct rtentry *old, struct rtentry *new)
sys/dev/pci/cxgb/cxgb_offload.c
1223
newdev = new->rt_ifp;
sys/dev/pci/cxgb/cxgb_offload.c
1240
e = t3_l2t_get(tdev, new, ((struct port_info *)new->rt_ifp->if_softc)->port_id);
sys/dev/pci/cxgb/cxgb_offload.c
1253
update_tcb = te->client->redirect(te->ctx, old, new,
sys/dev/pci/cxgb/cxgb_offload.h
253
void cxgb_redirect(struct rtentry *old, struct rtentry *new);
sys/dev/pci/cxgb/cxgb_offload.h
82
struct rtentry *new,
sys/dev/pci/pci_resource.c
185
struct pci_resource_range *new, *range, *prev;
sys/dev/pci/pci_resource.c
233
new = kmem_zalloc(sizeof(*new), KM_SLEEP);
sys/dev/pci/pci_resource.c
234
new->start = start;
sys/dev/pci/pci_resource.c
235
new->end = end;
sys/dev/pci/pci_resource.c
238
if (new->start < range->start)
sys/dev/pci/pci_resource.c
240
KASSERT(new->start > range->end);
sys/dev/pci/pci_resource.c
244
SIMPLEQ_INSERT_AFTER(&arena->list, prev, new, entry);
sys/dev/pci/pci_resource.c
246
SIMPLEQ_INSERT_HEAD(&arena->list, new, entry);
sys/dev/raidframe/rf_geniq.c
49
unsigned new;
sys/dev/raidframe/rf_geniq.c
54
new = (poly & 1) ? high : 0;
sys/dev/raidframe/rf_geniq.c
59
new = new | ((bit ^ high) << i);
sys/dev/raidframe/rf_geniq.c
61
new = new | (bit << i);
sys/dev/raidframe/rf_geniq.c
63
return new;
sys/dev/raidframe/rf_pq.c
251
RF_PhysDiskAddr_t *old, *new;
sys/dev/raidframe/rf_pq.c
263
new = (RF_PhysDiskAddr_t *) node->params[2 * (d + 1 + i)].p;
sys/dev/raidframe/rf_pq.c
265
RF_ASSERT(new->numSector == old->numSector);
sys/dev/raidframe/rf_pq.c
266
RF_ASSERT(new->raidAddress == old->raidAddress);
sys/dev/raidframe/rf_pq.c
269
coeff = rf_RaidAddressToStripeUnitID(&(raidPtr->Layout), new->raidAddress);
sys/dev/raidframe/rf_pq.c
314
RF_PhysDiskAddr_t *old, *new;
sys/dev/raidframe/rf_pq.c
325
new = (RF_PhysDiskAddr_t *) node->params[2 * (d + 1 + i)].p;
sys/dev/raidframe/rf_pq.c
327
RF_ASSERT(new->numSector == old->numSector);
sys/dev/raidframe/rf_pq.c
328
RF_ASSERT(new->raidAddress == old->raidAddress);
sys/dev/raidframe/rf_pq.c
331
coeff = rf_RaidAddressToStripeUnitID(&(raidPtr->Layout), new->raidAddress);
sys/dev/raidframe/rf_pq.c
649
unsigned long a, d, new;
sys/dev/raidframe/rf_pq.c
664
new = INSERT(a2, 1) | a1;
sys/dev/raidframe/rf_pq.c
669
new = new | INSERT(a1, 2) | INSERT(a2, 3);
sys/dev/raidframe/rf_pq.c
674
new = new | INSERT(a1, 4) | INSERT(a2, 5);
sys/dev/raidframe/rf_pq.c
679
new = new | INSERT(a1, 5) | INSERT(a2, 6);
sys/dev/raidframe/rf_pq.c
685
new = new | INSERT(a1, 7) | INSERT(a2, 8);
sys/dev/raidframe/rf_pq.c
690
new = new | INSERT(a1, 9) | INSERT(a2, 10);
sys/dev/raidframe/rf_pq.c
695
new = new | INSERT(a1, 11) | INSERT(a2, 12);
sys/dev/raidframe/rf_pq.c
697
d ^= new;
sys/dev/raidframe/rf_pq.c
722
unsigned long a, d, new;
sys/dev/raidframe/rf_pq.c
727
r = a1 = a2 = new = d = a = 0; /* XXX for now... */
sys/dev/raidframe/rf_pq.c
746
new = INSERT(a2, 1) | a1;
sys/dev/raidframe/rf_pq.c
751
new = new | INSERT(a1, 2) | INSERT(a2, 3);
sys/dev/raidframe/rf_pq.c
756
new = new | INSERT(a1, 4) | INSERT(a2, 5);
sys/dev/raidframe/rf_pq.c
761
new = new | INSERT(a1, 5) | INSERT(a2, 6);
sys/dev/raidframe/rf_pq.c
767
new = new | INSERT(a1, 7) | INSERT(a2, 8);
sys/dev/raidframe/rf_pq.c
772
new = new | INSERT(a1, 9) | INSERT(a2, 10);
sys/dev/raidframe/rf_pq.c
777
new = new | INSERT(a1, 11) | INSERT(a2, 12);
sys/dev/raidframe/rf_pq.c
779
d ^= new;
sys/dev/raidframe/rf_pq.c
862
unsigned long a, new;
sys/dev/raidframe/rf_pq.c
875
new = INSERT(a2, 1) | a1;
sys/dev/raidframe/rf_pq.c
881
new = new | INSERT(a1,i) | INSERT(a2,j)
sys/dev/raidframe/rf_pq.c
891
*abuf++ = new;
sys/dev/std/ieee1212.c
749
u_int32_t *t, entry, new;
sys/dev/std/ieee1212.c
789
new = P1212_DIRENT_GET_VALUE(entry);
sys/dev/std/ieee1212.c
792
if ((com->text[i] = p1212_parse_text_desc(&t[i+new])) == NULL) {
sys/dev/tprof/tprof.c
167
tprof_buf_t *new;
sys/dev/tprof/tprof.c
170
new = kmem_alloc(TPROF_BUF_BYTESIZE(size), KM_SLEEP);
sys/dev/tprof/tprof.c
171
new->b_used = 0;
sys/dev/tprof/tprof.c
172
new->b_size = size;
sys/dev/tprof/tprof.c
173
new->b_overflow = 0;
sys/dev/tprof/tprof.c
174
return new;
sys/dev/tprof/tprof.c
185
tprof_buf_switch(tprof_cpu_t *c, tprof_buf_t *new)
sys/dev/tprof/tprof.c
190
c->c_buf = new;
sys/dev/tprof/tprof.c
198
tprof_buf_t *new;
sys/dev/tprof/tprof.c
200
new = tprof_buf_alloc();
sys/dev/tprof/tprof.c
201
return tprof_buf_switch(c, new);
sys/dev/tprof/tprof.c
379
tprof_buf_t *new;
sys/dev/tprof/tprof.c
382
new = tprof_buf_alloc();
sys/dev/tprof/tprof.c
383
old = tprof_buf_switch(c, new);
sys/dev/usb/ehci.c
1372
int new;
sys/dev/usb/ehci.c
1373
new = EHCI_STS_INTRS(EOREAD4(sc, EHCI_USBSTS));
sys/dev/usb/ehci.c
1374
if (new != last) {
sys/dev/usb/ehci.c
1375
DPRINTF("intrs=0x%04jx", new, 0, 0, 0);
sys/dev/usb/ehci.c
1376
last = new;
sys/dev/usb/ohci.c
1816
int new;
sys/dev/usb/ohci.c
1817
new = OREAD4(sc, OHCI_INTERRUPT_STATUS);
sys/dev/usb/ohci.c
1818
if (new != last) {
sys/dev/usb/ohci.c
1819
DPRINTFN(10, "intrs=0x%04jx", new, 0, 0, 0);
sys/dev/usb/ohci.c
1820
last = new;
sys/dev/usb/ulpt.c
544
u_char new;
sys/dev/usb/ulpt.c
547
new = status & ~sc->sc_laststatus;
sys/dev/usb/ulpt.c
550
if (new & LPS_SELECT)
sys/dev/usb/ulpt.c
552
if (new & LPS_NOPAPER)
sys/dev/usb/ulpt.c
554
if (new & LPS_NERR)
sys/dev/wscons/wsmux.c
170
void *new;
sys/dev/wscons/wsmux.c
172
new = realloc(wsmuxdevs, (n + 1) * sizeof(*wsmuxdevs),
sys/dev/wscons/wsmux.c
174
wsmuxdevs = new;
sys/dist/pf/net/pf.c
1399
pf_cksum_fixup(u_int16_t cksum, u_int16_t old, u_int16_t new, u_int8_t udp)
sys/dist/pf/net/pf.c
1405
l = cksum + old - new;
sys/fs/efs/efs_subr.c
62
efs_sb_checksum(struct efs_sb *esb, int new)
sys/fs/efs/efs_subr.c
74
cksum = (cksum << 1) | (new && cksum < 0);
sys/fs/ntfs/ntfs_compr.c
101
int new;
sys/fs/ntfs/ntfs_compr.c
104
new = ntfs_uncompblock(uup + i * NTFS_COMPBLOCK_SIZE, cup + off);
sys/fs/ntfs/ntfs_compr.c
105
if (new == 0)
sys/fs/ntfs/ntfs_compr.c
107
off += new;
sys/kern/kern_ksyms.c
459
int new;
sys/kern/kern_ksyms.c
460
for (new = 0; new < n; new++) {
sys/kern/kern_ksyms.c
461
uint32_t orig = nsym[new].st_size - 1;
sys/kern/kern_ksyms.c
464
nmap[orig] = new + 1;
sys/kern/kern_ksyms.c
467
nsym[new].st_size = size;
sys/kern/kern_module.c
883
module_t *(*new)[], *(*old)[];
sys/kern/kern_module.c
890
new = kmem_zalloc(areq * sizeof(module_t *), KM_SLEEP);
sys/kern/kern_module.c
892
(*new)[i] = (*old)[i];
sys/kern/kern_module.c
893
mod->mod_required = new;
sys/kern/subr_asan.c
606
kasan__ucas_32(volatile uint32_t *uaddr, uint32_t old, uint32_t new,
sys/kern/subr_asan.c
611
return _ucas_32(uaddr, old, new, ret);
sys/kern/subr_asan.c
618
kasan__ucas_32_mp(volatile uint32_t *uaddr, uint32_t old, uint32_t new,
sys/kern/subr_asan.c
623
return _ucas_32_mp(uaddr, old, new, ret);
sys/kern/subr_asan.c
631
kasan__ucas_64(volatile uint64_t *uaddr, uint64_t old, uint64_t new,
sys/kern/subr_asan.c
636
return _ucas_64(uaddr, old, new, ret);
sys/kern/subr_asan.c
643
kasan__ucas_64_mp(volatile uint64_t *uaddr, uint64_t old, uint64_t new,
sys/kern/subr_asan.c
648
return _ucas_64_mp(uaddr, old, new, ret);
sys/kern/subr_asan.c
816
tret kasan_atomic_cas_##name(volatile targ1 *ptr, targ2 exp, targ2 new) \
sys/kern/subr_asan.c
820
return atomic_cas_##name(ptr, exp, new); \
sys/kern/subr_asan.c
824
tret kasan_atomic_cas_##name##_ni(volatile targ1 *ptr, targ2 exp, targ2 new) \
sys/kern/subr_asan.c
828
return atomic_cas_##name##_ni(ptr, exp, new); \
sys/kern/subr_copy.c
605
_ucas_32(volatile uint32_t *uaddr, uint32_t old, uint32_t new, uint32_t *ret)
sys/kern/subr_copy.c
623
error = _ustore_32(uva, new);
sys/kern/subr_copy.c
634
_ucas_64(volatile uint64_t *uaddr, uint64_t old, uint64_t new, uint64_t *ret)
sys/kern/subr_copy.c
652
error = _ustore_64(uva, new);
sys/kern/subr_copy.c
664
ucas_32(volatile uint32_t *uaddr, uint32_t old, uint32_t new, uint32_t *ret)
sys/kern/subr_copy.c
672
return _ucas_32_mp(uaddr, old, new, ret);
sys/kern/subr_copy.c
675
return _ucas_32(uaddr, old, new, ret);
sys/kern/subr_copy.c
680
ucas_64(volatile uint64_t *uaddr, uint64_t old, uint64_t new, uint64_t *ret)
sys/kern/subr_copy.c
688
return _ucas_64_mp(uaddr, old, new, ret);
sys/kern/subr_copy.c
691
return _ucas_64(uaddr, old, new, ret);
sys/kern/subr_csan.c
101
if (ksyms_getname(NULL, &newsym, (vaddr_t)new->pc, KSYMS_PROC) != 0) {
sys/kern/subr_csan.c
111
(new->atomic ? "Atomic " : ""), (new->write ? "Write" : "Read"),
sys/kern/subr_csan.c
112
(void *)new->addr, new->size, (void *)new->pc, newsym,
sys/kern/subr_csan.c
121
kcsan_access_is_atomic(csan_cell_t *new, csan_cell_t *old)
sys/kern/subr_csan.c
123
if (new->write && !new->atomic)
sys/kern/subr_csan.c
133
csan_cell_t old, new;
sys/kern/subr_csan.c
143
new.addr = addr;
sys/kern/subr_csan.c
144
new.size = size;
sys/kern/subr_csan.c
145
new.write = write;
sys/kern/subr_csan.c
146
new.atomic = atomic;
sys/kern/subr_csan.c
147
new.pc = pc;
sys/kern/subr_csan.c
152
if (old.addr + old.size <= new.addr)
sys/kern/subr_csan.c
154
if (new.addr + new.size <= old.addr)
sys/kern/subr_csan.c
156
if (__predict_true(!old.write && !new.write))
sys/kern/subr_csan.c
158
if (__predict_true(kcsan_access_is_atomic(&new, &old)))
sys/kern/subr_csan.c
161
kcsan_report(&new, cpu_number(), &old, i);
sys/kern/subr_csan.c
177
__builtin_memcpy(&cpu->cell, &new, sizeof(new));
sys/kern/subr_csan.c
179
__builtin_memset(&cpu->cell, 0, sizeof(new));
sys/kern/subr_csan.c
501
tret kcsan_atomic_cas_##name(volatile targ1 *ptr, targ2 exp, targ2 new) \
sys/kern/subr_csan.c
505
return atomic_cas_##name(ptr, exp, new); \
sys/kern/subr_csan.c
509
tret kcsan_atomic_cas_##name##_ni(volatile targ1 *ptr, targ2 exp, targ2 new) \
sys/kern/subr_csan.c
513
return atomic_cas_##name##_ni(ptr, exp, new); \
sys/kern/subr_csan.c
95
kcsan_report(csan_cell_t *new, cpuid_t newcpu, csan_cell_t *old, cpuid_t oldcpu)
sys/kern/subr_msan.c
1235
tret kmsan_atomic_cas_##name(volatile targ1 *ptr, targ2 exp, targ2 new) \
sys/kern/subr_msan.c
1237
kmsan_check_arg(sizeof(ptr) + sizeof(exp) + sizeof(new), \
sys/kern/subr_msan.c
1242
return atomic_cas_##name(ptr, exp, new); \
sys/kern/subr_msan.c
1246
tret kmsan_atomic_cas_##name##_ni(volatile targ1 *ptr, targ2 exp, targ2 new) \
sys/kern/subr_msan.c
1248
kmsan_check_arg(sizeof(ptr) + sizeof(exp) + sizeof(new), \
sys/kern/subr_msan.c
1253
return atomic_cas_##name##_ni(ptr, exp, new); \
sys/kern/subr_msan.c
932
kmsan__ucas_32(volatile uint32_t *uaddr, uint32_t old, uint32_t new,
sys/kern/subr_msan.c
937
sizeof(new) + sizeof(ret), "ucas_32():args");
sys/kern/subr_msan.c
938
_ret = _ucas_32(uaddr, old, new, ret);
sys/kern/subr_msan.c
949
kmsan__ucas_32_mp(volatile uint32_t *uaddr, uint32_t old, uint32_t new,
sys/kern/subr_msan.c
954
sizeof(new) + sizeof(ret), "ucas_32_mp():args");
sys/kern/subr_msan.c
955
_ret = _ucas_32_mp(uaddr, old, new, ret);
sys/kern/subr_msan.c
967
kmsan__ucas_64(volatile uint64_t *uaddr, uint64_t old, uint64_t new,
sys/kern/subr_msan.c
972
sizeof(new) + sizeof(ret), "ucas_64():args");
sys/kern/subr_msan.c
973
_ret = _ucas_64(uaddr, old, new, ret);
sys/kern/subr_msan.c
984
kmsan__ucas_64_mp(volatile uint64_t *uaddr, uint64_t old, uint64_t new,
sys/kern/subr_msan.c
989
sizeof(new) + sizeof(ret), "ucas_64_mp():args");
sys/kern/subr_msan.c
990
_ret = _ucas_64_mp(uaddr, old, new, ret);
sys/kern/tty.c
544
unsigned old, new;
sys/kern/tty.c
558
new = old - 1;
sys/kern/tty.c
559
} while (atomic_cas_uint(&tp->t_refcnt, old, new) != old);
sys/lib/libsa/ext2fs.c
890
e2fs_sb_bswap(struct ext2fs *old, struct ext2fs *new)
sys/lib/libsa/ext2fs.c
894
memcpy(new, old, sizeof(struct ext2fs));
sys/lib/libsa/ext2fs.c
895
new->e2fs_icount = bswap32(old->e2fs_icount);
sys/lib/libsa/ext2fs.c
896
new->e2fs_bcount = bswap32(old->e2fs_bcount);
sys/lib/libsa/ext2fs.c
897
new->e2fs_rbcount = bswap32(old->e2fs_rbcount);
sys/lib/libsa/ext2fs.c
898
new->e2fs_fbcount = bswap32(old->e2fs_fbcount);
sys/lib/libsa/ext2fs.c
899
new->e2fs_ficount = bswap32(old->e2fs_ficount);
sys/lib/libsa/ext2fs.c
900
new->e2fs_first_dblock = bswap32(old->e2fs_first_dblock);
sys/lib/libsa/ext2fs.c
901
new->e2fs_log_bsize = bswap32(old->e2fs_log_bsize);
sys/lib/libsa/ext2fs.c
902
new->e2fs_fsize = bswap32(old->e2fs_fsize);
sys/lib/libsa/ext2fs.c
903
new->e2fs_bpg = bswap32(old->e2fs_bpg);
sys/lib/libsa/ext2fs.c
904
new->e2fs_fpg = bswap32(old->e2fs_fpg);
sys/lib/libsa/ext2fs.c
905
new->e2fs_ipg = bswap32(old->e2fs_ipg);
sys/lib/libsa/ext2fs.c
906
new->e2fs_mtime = bswap32(old->e2fs_mtime);
sys/lib/libsa/ext2fs.c
907
new->e2fs_wtime = bswap32(old->e2fs_wtime);
sys/lib/libsa/ext2fs.c
908
new->e2fs_mnt_count = bswap16(old->e2fs_mnt_count);
sys/lib/libsa/ext2fs.c
909
new->e2fs_max_mnt_count = bswap16(old->e2fs_max_mnt_count);
sys/lib/libsa/ext2fs.c
910
new->e2fs_magic = bswap16(old->e2fs_magic);
sys/lib/libsa/ext2fs.c
911
new->e2fs_state = bswap16(old->e2fs_state);
sys/lib/libsa/ext2fs.c
912
new->e2fs_beh = bswap16(old->e2fs_beh);
sys/lib/libsa/ext2fs.c
913
new->e2fs_minrev = bswap16(old->e2fs_minrev);
sys/lib/libsa/ext2fs.c
914
new->e2fs_lastfsck = bswap32(old->e2fs_lastfsck);
sys/lib/libsa/ext2fs.c
915
new->e2fs_fsckintv = bswap32(old->e2fs_fsckintv);
sys/lib/libsa/ext2fs.c
916
new->e2fs_creator = bswap32(old->e2fs_creator);
sys/lib/libsa/ext2fs.c
917
new->e2fs_rev = bswap32(old->e2fs_rev);
sys/lib/libsa/ext2fs.c
918
new->e2fs_ruid = bswap16(old->e2fs_ruid);
sys/lib/libsa/ext2fs.c
919
new->e2fs_rgid = bswap16(old->e2fs_rgid);
sys/lib/libsa/ext2fs.c
920
new->e2fs_first_ino = bswap32(old->e2fs_first_ino);
sys/lib/libsa/ext2fs.c
921
new->e2fs_inode_size = bswap16(old->e2fs_inode_size);
sys/lib/libsa/ext2fs.c
922
new->e2fs_block_group_nr = bswap16(old->e2fs_block_group_nr);
sys/lib/libsa/ext2fs.c
923
new->e2fs_features_compat = bswap32(old->e2fs_features_compat);
sys/lib/libsa/ext2fs.c
924
new->e2fs_features_incompat = bswap32(old->e2fs_features_incompat);
sys/lib/libsa/ext2fs.c
925
new->e2fs_features_rocompat = bswap32(old->e2fs_features_rocompat);
sys/lib/libsa/ext2fs.c
926
new->e2fs_algo = bswap32(old->e2fs_algo);
sys/lib/libsa/ext2fs.c
927
new->e2fs_reserved_ngdb = bswap16(old->e2fs_reserved_ngdb);
sys/lib/libsa/ext2fs.c
930
void e2fs_i_bswap(struct ext2fs_dinode *old, struct ext2fs_dinode *new,
sys/lib/libsa/ext2fs.c
934
memcpy(new, old, isize);
sys/lib/libsa/ext2fs.c
937
new->e2di_mode = bswap16(old->e2di_mode);
sys/lib/libsa/ext2fs.c
938
new->e2di_uid = bswap16(old->e2di_uid);
sys/lib/libsa/ext2fs.c
939
new->e2di_gid = bswap16(old->e2di_gid);
sys/lib/libsa/ext2fs.c
940
new->e2di_nlink = bswap16(old->e2di_nlink);
sys/lib/libsa/ext2fs.c
941
new->e2di_size = bswap32(old->e2di_size);
sys/lib/libsa/ext2fs.c
942
new->e2di_atime = bswap32(old->e2di_atime);
sys/lib/libsa/ext2fs.c
943
new->e2di_ctime = bswap32(old->e2di_ctime);
sys/lib/libsa/ext2fs.c
944
new->e2di_mtime = bswap32(old->e2di_mtime);
sys/lib/libsa/ext2fs.c
945
new->e2di_dtime = bswap32(old->e2di_dtime);
sys/lib/libsa/ext2fs.c
946
new->e2di_nblock = bswap32(old->e2di_nblock);
sys/lib/libsa/ext2fs.c
947
new->e2di_flags = bswap32(old->e2di_flags);
sys/lib/libsa/ext2fs.c
948
new->e2di_version = bswap32(old->e2di_version);
sys/lib/libsa/ext2fs.c
949
new->e2di_gen = bswap32(old->e2di_gen);
sys/lib/libsa/ext2fs.c
950
new->e2di_facl = bswap32(old->e2di_facl);
sys/lib/libsa/ext2fs.c
951
new->e2di_size_high = bswap32(old->e2di_size_high);
sys/lib/libsa/ext2fs.c
952
new->e2di_nblock_high = bswap16(old->e2di_nblock_high);
sys/lib/libsa/ext2fs.c
953
new->e2di_facl_high = bswap16(old->e2di_facl_high);
sys/lib/libsa/ext2fs.c
954
new->e2di_uid_high = bswap16(old->e2di_uid_high);
sys/lib/libsa/ext2fs.c
955
new->e2di_gid_high = bswap16(old->e2di_gid_high);
sys/lib/libsa/ext2fs.c
956
new->e2di_checksum_low = bswap16(old->e2di_checksum_low);
sys/lib/libsa/ext2fs.c
965
new->e2di_extra_isize = bswap16(old->e2di_extra_isize);
sys/lib/libsa/ext2fs.c
966
new->e2di_checksum_high = bswap16(old->e2di_checksum_high);
sys/lib/libsa/ext2fs.c
969
if (EXT2_DINODE_FITS(new, e2di_ctime_extra, isize))
sys/lib/libsa/ext2fs.c
970
new->e2di_ctime_extra = bswap32(old->e2di_ctime_extra);
sys/lib/libsa/ext2fs.c
971
if (EXT2_DINODE_FITS(new, e2di_mtime_extra, isize))
sys/lib/libsa/ext2fs.c
972
new->e2di_mtime_extra = bswap32(old->e2di_mtime_extra);
sys/lib/libsa/ext2fs.c
973
if (EXT2_DINODE_FITS(new, e2di_atime_extra, isize))
sys/lib/libsa/ext2fs.c
974
new->e2di_atime_extra = bswap32(old->e2di_atime_extra);
sys/lib/libsa/ext2fs.c
975
if (EXT2_DINODE_FITS(new, e2di_crtime, isize))
sys/lib/libsa/ext2fs.c
976
new->e2di_crtime = bswap32(old->e2di_crtime);
sys/lib/libsa/ext2fs.c
977
if (EXT2_DINODE_FITS(new, e2di_crtime_extra, isize))
sys/lib/libsa/ext2fs.c
978
new->e2di_crtime_extra = bswap32(old->e2di_crtime_extra);
sys/lib/libsa/ext2fs.c
979
if (EXT2_DINODE_FITS(new, e2di_version_high, isize))
sys/lib/libsa/ext2fs.c
980
new->e2di_version_high = bswap32(old->e2di_version_high);
sys/lib/libsa/ext2fs.c
981
if (EXT2_DINODE_FITS(new, e2di_projid, isize))
sys/lib/libsa/ext2fs.c
982
new->e2di_projid = bswap32(old->e2di_projid);
sys/lib/libsa/minixfs3.c
885
minixfs3_sb_bswap(struct mfs_sblock *old, struct mfs_sblock *new)
sys/lib/libsa/minixfs3.c
887
new->mfs_ninodes = bswap32(old->mfs_ninodes);
sys/lib/libsa/minixfs3.c
888
new->mfs_nzones = bswap16(old->mfs_nzones);
sys/lib/libsa/minixfs3.c
889
new->mfs_imap_blocks = bswap16(old->mfs_imap_blocks);
sys/lib/libsa/minixfs3.c
890
new->mfs_zmap_blocks = bswap16(old->mfs_zmap_blocks);
sys/lib/libsa/minixfs3.c
891
new->mfs_firstdatazone_old = bswap16(old->mfs_firstdatazone_old);
sys/lib/libsa/minixfs3.c
892
new->mfs_log_zone_size = bswap16(old->mfs_log_zone_size);
sys/lib/libsa/minixfs3.c
893
new->mfs_max_size = bswap32(old->mfs_max_size);
sys/lib/libsa/minixfs3.c
894
new->mfs_zones = bswap32(old->mfs_zones);
sys/lib/libsa/minixfs3.c
895
new->mfs_magic = bswap16(old->mfs_magic);
sys/lib/libsa/minixfs3.c
896
new->mfs_block_size = bswap16(old->mfs_block_size);
sys/lib/libsa/minixfs3.c
897
new->mfs_disk_version = old->mfs_disk_version;
sys/lib/libsa/minixfs3.c
900
void minixfs3_i_bswap(struct mfs_dinode *old, struct mfs_dinode *new)
sys/lib/libsa/minixfs3.c
904
new->mdi_mode = bswap16(old->mdi_mode);
sys/lib/libsa/minixfs3.c
905
new->mdi_nlinks = bswap16(old->mdi_nlinks);
sys/lib/libsa/minixfs3.c
906
new->mdi_uid = bswap16(old->mdi_uid);
sys/lib/libsa/minixfs3.c
907
new->mdi_gid = bswap16(old->mdi_gid);
sys/lib/libsa/minixfs3.c
908
new->mdi_size = bswap32(old->mdi_size);
sys/lib/libsa/minixfs3.c
909
new->mdi_atime = bswap32(old->mdi_atime);
sys/lib/libsa/minixfs3.c
910
new->mdi_mtime = bswap32(old->mdi_mtime);
sys/lib/libsa/minixfs3.c
911
new->mdi_ctime = bswap32(old->mdi_ctime);
sys/lib/libsa/minixfs3.c
917
new->mdi_zone[i] = old->mdi_zone[i];
sys/lib/libsa/minixfs3.h
134
# define mfs_sbload(old, new) \
sys/lib/libsa/minixfs3.h
135
memcpy((new), (old), SBSIZE);
sys/lib/libsa/minixfs3.h
136
# define mfs_iload(old, new) \
sys/lib/libsa/minixfs3.h
137
memcpy((new),(old),sizeof(struct mfs_dinode))
sys/lib/libsa/minixfs3.h
143
# define mfs_sbload(old, new) minixfs3_sb_bswap((old), (new))
sys/lib/libsa/minixfs3.h
144
# define mfs_iload(old, new) minixfs3_i_bswap((old), (new))
sys/net/if_wg.c
2826
wg_change_endpoint(struct wg_peer *wgp, const struct sockaddr *new)
sys/net/if_wg.c
2832
memcpy(wgp->wgp_endpoint0, new, new->sa_len);
sys/net/npf/npf_ext_normalize.c
149
uint16_t old[2], new[2];
sys/net/npf/npf_ext_normalize.c
191
if (npf_set_mss(npc, maxmss, old, new, &mid) &&
sys/net/npf/npf_ext_normalize.c
196
cksum = npf_fixup16_cksum(cksum, old[0], new[0]);
sys/net/npf/npf_ext_normalize.c
197
cksum = npf_fixup16_cksum(cksum, old[1], new[1]);
sys/net/npf/npf_inet.c
351
npf_set_mss(npf_cache_t *npc, uint16_t mss, uint16_t *old, uint16_t *new,
sys/net/npf/npf_inet.c
403
memcpy(&new[0], cp + 1, sizeof(uint16_t));
sys/net/npf/npf_inet.c
404
memcpy(&new[1], cp + 3, sizeof(uint16_t));
sys/net/npf/npf_portmap.c
187
__npf_atomic_cas_64(volatile uint64_t *ptr, uint64_t old, uint64_t new)
sys/net/npf/npf_portmap.c
194
*ptr = new;
sys/net/route.c
1325
struct sockaddr *new, *old;
sys/net/route.c
1331
new = sockaddr_dup(gate, M_ZERO | M_NOWAIT);
sys/net/route.c
1332
if (new == NULL)
sys/net/route.c
1336
rt->rt_gateway = new;
sys/net80211/ieee80211_acl.c
167
struct acl *acl, *new;
sys/net80211/ieee80211_acl.c
170
new = malloc(sizeof(struct acl), M_80211_ACL, M_WAITOK | M_ZERO);
sys/net80211/ieee80211_acl.c
177
free(new, M_80211_ACL);
sys/net80211/ieee80211_acl.c
184
IEEE80211_ADDR_COPY(new->acl_macaddr, mac);
sys/net80211/ieee80211_acl.c
185
TAILQ_INSERT_TAIL(&as->as_list, new, acl_list);
sys/net80211/ieee80211_acl.c
186
LIST_INSERT_HEAD(&as->as_hash[hash], new, acl_hash);
sys/net80211/ieee80211_rssadapt.c
51
#define interpolate(parm, old, new) ((parm##_old * (old) + \
sys/net80211/ieee80211_rssadapt.c
52
(parm##_denom - parm##_old) * (new)) / \
sys/netbt/hci_link.c
772
struct sco_pcb *pcb, *new;
sys/netbt/hci_link.c
798
new = (*pcb->sp_proto->newconn)(pcb->sp_upper, &laddr, &raddr);
sys/netbt/hci_link.c
799
if (new == NULL)
sys/netbt/hci_link.c
806
bdaddr_copy(&new->sp_laddr, &unit->hci_bdaddr);
sys/netbt/hci_link.c
807
bdaddr_copy(&new->sp_raddr, bdaddr);
sys/netbt/hci_link.c
811
sco_detach_pcb(&new);
sys/netbt/hci_link.c
818
sco->hl_sco = new;
sys/netbt/hci_link.c
819
new->sp_link = sco;
sys/netbt/hci_link.c
821
new->sp_mtu = unit->hci_max_sco_size;
sys/netbt/l2cap_signal.c
245
struct l2cap_channel *chan, *new;
sys/netbt/l2cap_signal.c
281
new= (*chan->lc_proto->newconn)(chan->lc_upper, &laddr, &raddr);
sys/netbt/l2cap_signal.c
282
if (new == NULL)
sys/netbt/l2cap_signal.c
285
err = l2cap_cid_alloc(new);
sys/netbt/l2cap_signal.c
291
(*new->lc_proto->disconnected)(new->lc_upper, err);
sys/netbt/l2cap_signal.c
295
new->lc_link = hci_acl_open(link->hl_unit, &link->hl_bdaddr);
sys/netbt/l2cap_signal.c
296
KASSERT(new->lc_link == link);
sys/netbt/l2cap_signal.c
298
new->lc_rcid = cp.scid;
sys/netbt/l2cap_signal.c
299
new->lc_ident = cmd.ident;
sys/netbt/l2cap_signal.c
301
memcpy(&new->lc_laddr, &laddr, sizeof(struct sockaddr_bt));
sys/netbt/l2cap_signal.c
302
memcpy(&new->lc_raddr, &raddr, sizeof(struct sockaddr_bt));
sys/netbt/l2cap_signal.c
304
new->lc_mode = chan->lc_mode;
sys/netbt/l2cap_signal.c
306
err = l2cap_setmode(new);
sys/netbt/l2cap_signal.c
308
new->lc_state = L2CAP_WAIT_SEND_CONNECT_RSP;
sys/netbt/l2cap_signal.c
309
(*new->lc_proto->connecting)(new->lc_upper);
sys/netbt/l2cap_signal.c
313
new->lc_state = L2CAP_CLOSED;
sys/netbt/l2cap_signal.c
315
new->lc_link = NULL;
sys/netbt/l2cap_signal.c
321
(*new->lc_proto->disconnected)(new->lc_upper, err);
sys/netbt/l2cap_signal.c
326
new->lc_lcid, new->lc_rcid,
sys/netbt/l2cap_signal.c
329
l2cap_close(new, err);
sys/netbt/l2cap_signal.c
333
new->lc_state = L2CAP_WAIT_CONFIG;
sys/netbt/l2cap_signal.c
334
new->lc_flags |= (L2CAP_WAIT_CONFIG_REQ | L2CAP_WAIT_CONFIG_RSP);
sys/netbt/l2cap_signal.c
335
err = l2cap_send_config_req(new);
sys/netbt/l2cap_signal.c
337
l2cap_close(new, err);
sys/netbt/l2cap_socket.c
452
l2cap_linkmode(void *arg, int new)
sys/netbt/l2cap_socket.c
459
(new & L2CAP_LM_AUTH ? "on" : "off"),
sys/netbt/l2cap_socket.c
460
(new & L2CAP_LM_ENCRYPT ? "on" : "off"),
sys/netbt/l2cap_socket.c
461
(new & L2CAP_LM_SECURE ? "on" : "off"));
sys/netbt/l2cap_socket.c
468
if (((mode & L2CAP_LM_AUTH) && !(new & L2CAP_LM_AUTH))
sys/netbt/l2cap_socket.c
469
|| ((mode & L2CAP_LM_ENCRYPT) && !(new & L2CAP_LM_ENCRYPT))
sys/netbt/l2cap_socket.c
470
|| ((mode & L2CAP_LM_SECURE) && !(new & L2CAP_LM_SECURE)))
sys/netbt/rfcomm_dlc.c
122
new = (*dlc->rd_proto->newconn)(dlc->rd_upper, &laddr, &raddr);
sys/netbt/rfcomm_dlc.c
124
if (new == NULL) {
sys/netbt/rfcomm_dlc.c
129
new->rd_dlci = dlci;
sys/netbt/rfcomm_dlc.c
130
new->rd_mtu = rfcomm_mtu_default;
sys/netbt/rfcomm_dlc.c
131
new->rd_mode = dlc->rd_mode;
sys/netbt/rfcomm_dlc.c
133
memcpy(&new->rd_laddr, &laddr, sizeof(struct sockaddr_bt));
sys/netbt/rfcomm_dlc.c
134
new->rd_laddr.bt_channel = chan;
sys/netbt/rfcomm_dlc.c
136
memcpy(&new->rd_raddr, &raddr, sizeof(struct sockaddr_bt));
sys/netbt/rfcomm_dlc.c
137
new->rd_raddr.bt_channel = chan;
sys/netbt/rfcomm_dlc.c
139
new->rd_session = rs;
sys/netbt/rfcomm_dlc.c
140
new->rd_state = RFCOMM_DLC_WAIT_CONNECT;
sys/netbt/rfcomm_dlc.c
141
LIST_INSERT_HEAD(&rs->rs_dlcs, new, rd_next);
sys/netbt/rfcomm_dlc.c
143
return new;
sys/netbt/rfcomm_dlc.c
76
struct rfcomm_dlc *new, *dlc, *any, *best;
sys/netbt/rfcomm_dlc.c
90
new = NULL;
sys/netbt/rfcomm_session.c
414
struct rfcomm_session *new, *rs = arg;
sys/netbt/rfcomm_session.c
424
new = rfcomm_session_lookup(laddr, raddr);
sys/netbt/rfcomm_session.c
425
if (new != NULL)
sys/netbt/rfcomm_session.c
428
new = rfcomm_session_alloc(&rfcomm_session_active, laddr);
sys/netbt/rfcomm_session.c
429
if (new == NULL)
sys/netbt/rfcomm_session.c
432
new->rs_mtu = rs->rs_mtu;
sys/netbt/rfcomm_session.c
433
new->rs_state = RFCOMM_SESSION_WAIT_CONNECT;
sys/netbt/rfcomm_session.c
439
callout_schedule(&new->rs_timeout, rfcomm_mcc_timeout * hz);
sys/netbt/rfcomm_session.c
441
return new->rs_l2cap;
sys/netbt/rfcomm_session.c
513
rfcomm_session_linkmode(void *arg, int new)
sys/netbt/rfcomm_session.c
520
(new & L2CAP_LM_AUTH ? "on" : "off"),
sys/netbt/rfcomm_session.c
521
(new & L2CAP_LM_ENCRYPT ? "on" : "off"),
sys/netbt/rfcomm_session.c
522
(new & L2CAP_LM_SECURE ? "on" : "off"));
sys/netbt/rfcomm_session.c
524
if (new & L2CAP_LM_AUTH)
sys/netbt/rfcomm_session.c
527
if (new & L2CAP_LM_ENCRYPT)
sys/netbt/rfcomm_session.c
530
if (new & L2CAP_LM_SECURE)
sys/netbt/rfcomm_socket.c
465
rfcomm_linkmode(void *arg, int new)
sys/netbt/rfcomm_socket.c
472
(new & RFCOMM_LM_AUTH ? "on" : "off"),
sys/netbt/rfcomm_socket.c
473
(new & RFCOMM_LM_ENCRYPT ? "on" : "off"),
sys/netbt/rfcomm_socket.c
474
(new & RFCOMM_LM_SECURE ? "on" : "off"));
sys/netbt/rfcomm_socket.c
481
if (((mode & RFCOMM_LM_AUTH) && !(new & RFCOMM_LM_AUTH))
sys/netbt/rfcomm_socket.c
482
|| ((mode & RFCOMM_LM_ENCRYPT) && !(new & RFCOMM_LM_ENCRYPT))
sys/netbt/rfcomm_socket.c
483
|| ((mode & RFCOMM_LM_SECURE) && !(new & RFCOMM_LM_SECURE)))
sys/netinet/ip_icmp.c
222
struct icmp_mtudisc_callback *mc, *new;
sys/netinet/ip_icmp.c
224
new = kmem_alloc(sizeof(*mc), KM_SLEEP);
sys/netinet/ip_icmp.c
231
kmem_free(new, sizeof(*mc));
sys/netinet/ip_icmp.c
236
new->mc_func = func;
sys/netinet/ip_icmp.c
237
LIST_INSERT_HEAD(&icmp_mtudisc_callbacks, new, mc_list);
sys/netinet/sctputil.c
3258
struct socket *new, struct sctp_tcb *stcb)
sys/netinet/sctputil.c
3267
new_sb = &new->so_rcv;
sys/netinet6/icmp6.c
296
struct icmp6_mtudisc_callback *mc, *new;
sys/netinet6/icmp6.c
298
new = kmem_alloc(sizeof(*mc), KM_SLEEP);
sys/netinet6/icmp6.c
305
kmem_free(new, sizeof(*mc));
sys/netinet6/icmp6.c
310
new->mc_func = func;
sys/netinet6/icmp6.c
311
LIST_INSERT_HEAD(&icmp6_mtudisc_callbacks, new, mc_list);
sys/netipsec/ipsec.c
1092
struct inpcbpolicy *new;
sys/netipsec/ipsec.c
1097
new = kmem_intr_zalloc(sizeof(*new), KM_NOSLEEP);
sys/netipsec/ipsec.c
1098
if (new == NULL) {
sys/netipsec/ipsec.c
1104
new->priv = 1;
sys/netipsec/ipsec.c
1106
new->priv = 0;
sys/netipsec/ipsec.c
1111
new->sp_in = &ipsec_dummy_sp;
sys/netipsec/ipsec.c
1112
new->sp_out = &ipsec_dummy_sp;
sys/netipsec/ipsec.c
1114
*policy = new;
sys/netipsec/key.c
315
#define SPLIST_WRITER_INSERT_AFTER(sp, new) \
sys/netipsec/key.c
316
PSLIST_WRITER_INSERT_AFTER((sp), (new), pslist_entry)
sys/netipsec/key.c
325
#define SPLIST_WRITER_INSERT_TAIL(dir, new) \
sys/netipsec/key.c
328
SPLIST_WRITER_INSERT_HEAD((dir), (new)); \
sys/netipsec/key.c
334
(new)); \
sys/netipsec/key.c
391
#define SAVLIST_WRITER_INSERT_BEFORE(sav, new) \
sys/netipsec/key.c
392
PSLIST_WRITER_INSERT_BEFORE((sav), (new), pslist_entry)
sys/netipsec/key.c
393
#define SAVLIST_WRITER_INSERT_AFTER(sav, new) \
sys/netipsec/key.c
394
PSLIST_WRITER_INSERT_AFTER((sav), (new), pslist_entry)
sys/netipsec/key.c
403
#define SAVLIST_WRITER_INSERT_TAIL(sah, state, new) \
sys/netipsec/key.c
406
SAVLIST_WRITER_INSERT_HEAD((sah), (state), (new));\
sys/netipsec/key.c
412
(new)); \
sys/netipsec/key.c
4444
void *new;
sys/netipsec/key.c
4446
new = kmem_alloc(len, KM_SLEEP);
sys/netipsec/key.c
4447
memcpy(new, src, len);
sys/netipsec/key.c
4449
return new;
sys/rump/librump/rumpkern/atomic_cas_generic.c
51
_atomic_cas_32(volatile uint32_t *ptr, uint32_t old, uint32_t new)
sys/rump/librump/rumpkern/atomic_cas_generic.c
60
*ptr = new;
sys/rump/librump/rumpkern/atomic_cas_generic.c
76
_atomic_cas_64(volatile uint64_t *ptr, uint64_t old, uint64_t new)
sys/rump/librump/rumpkern/atomic_cas_generic.c
85
*ptr = new;
sys/rump/librump/rumpkern/rump_atomic_cas_up.c
41
rump_cas_32_up(volatile uint32_t *ptr, uint32_t old, uint32_t new)
sys/rump/librump/rumpkern/rump_atomic_cas_up.c
47
*ptr = new;
sys/rump/librump/rumpkern/rumpcopy.c
202
_ucas_32(volatile uint32_t *uaddr, uint32_t old, uint32_t new, uint32_t *ret)
sys/rump/librump/rumpkern/rumpcopy.c
212
error = _ustore_32(uva, new);
sys/rump/librump/rumpkern/rumpcopy.c
221
_ucas_64(volatile uint64_t *uaddr, uint64_t old, uint64_t new, uint64_t *ret)
sys/rump/librump/rumpkern/rumpcopy.c
231
error = _ustore_64(uva, new);
sys/rump/librump/rumpkern/sleepq.c
180
lwp_unlock_to(struct lwp *l, kmutex_t *new)
sys/rump/librump/rumpkern/sleepq.c
187
atomic_store_release(&l->l_mutex, new);
sys/sys/pslist.h
113
pslist_writer_insert_head(struct pslist_head *head, struct pslist_entry *new)
sys/sys/pslist.h
118
_PSLIST_ASSERT(new->ple_next == NULL);
sys/sys/pslist.h
119
_PSLIST_ASSERT(new->ple_prevp == NULL);
sys/sys/pslist.h
121
new->ple_prevp = &head->plh_first;
sys/sys/pslist.h
122
new->ple_next = head->plh_first; /* not yet published, so no atomic */
sys/sys/pslist.h
124
head->plh_first->ple_prevp = &new->ple_next;
sys/sys/pslist.h
125
atomic_store_release(&head->plh_first, new);
sys/sys/pslist.h
130
struct pslist_entry *new)
sys/sys/pslist.h
136
_PSLIST_ASSERT(new->ple_next == NULL);
sys/sys/pslist.h
137
_PSLIST_ASSERT(new->ple_prevp == NULL);
sys/sys/pslist.h
139
new->ple_prevp = entry->ple_prevp;
sys/sys/pslist.h
140
new->ple_next = entry; /* not yet published, so no atomic */
sys/sys/pslist.h
146
atomic_store_release(entry->ple_prevp, new);
sys/sys/pslist.h
148
entry->ple_prevp = &new->ple_next;
sys/sys/pslist.h
153
struct pslist_entry *new)
sys/sys/pslist.h
159
_PSLIST_ASSERT(new->ple_next == NULL);
sys/sys/pslist.h
160
_PSLIST_ASSERT(new->ple_prevp == NULL);
sys/sys/pslist.h
162
new->ple_prevp = &entry->ple_next;
sys/sys/pslist.h
163
new->ple_next = entry->ple_next; /* not yet published, so no atomic */
sys/sys/pslist.h
164
if (new->ple_next != NULL)
sys/sys/pslist.h
165
new->ple_next->ple_prevp = &new->ple_next;
sys/sys/pslist.h
168
atomic_store_release(&entry->ple_next, new);
sys/ufs/chfs/chfs_malloc.c
221
struct chfs_node_ref *nref, *new, *old __diagused;
sys/ufs/chfs/chfs_malloc.c
240
new = chfs_alloc_refblock();
sys/ufs/chfs/chfs_malloc.c
241
nref->nref_next = new;
sys/ufs/chfs/chfs_malloc.c
242
nref = new;
sys/ufs/chfs/chfs_nodeops.c
100
new->nref_next = nextref->nref_next;
sys/ufs/chfs/chfs_nodeops.c
103
new->nref_next = nextref;
sys/ufs/chfs/chfs_nodeops.c
106
KASSERT(new->nref_next != NULL);
sys/ufs/chfs/chfs_nodeops.c
109
prevref->nref_next = new;
sys/ufs/chfs/chfs_nodeops.c
111
*list = new;
sys/ufs/chfs/chfs_nodeops.c
174
struct chfs_inode *parent, struct chfs_dirent *new)
sys/ufs/chfs/chfs_nodeops.c
179
if (new->version > parent->chvc->highest_version) {
sys/ufs/chfs/chfs_nodeops.c
180
parent->chvc->highest_version = new->version;
sys/ufs/chfs/chfs_nodeops.c
184
if (fd->nhash > new->nhash) {
sys/ufs/chfs/chfs_nodeops.c
186
TAILQ_INSERT_BEFORE(fd, new, fds);
sys/ufs/chfs/chfs_nodeops.c
188
} else if (fd->nhash == new->nhash &&
sys/ufs/chfs/chfs_nodeops.c
189
!strcmp(fd->name, new->name)) {
sys/ufs/chfs/chfs_nodeops.c
190
if (new->version > fd->version) {
sys/ufs/chfs/chfs_nodeops.c
192
TAILQ_INSERT_BEFORE(fd, new, fds);
sys/ufs/chfs/chfs_nodeops.c
203
chfs_mark_node_obsolete(chmp, new->nref);
sys/ufs/chfs/chfs_nodeops.c
204
chfs_free_dirent(new);
sys/ufs/chfs/chfs_nodeops.c
211
TAILQ_INSERT_HEAD(&parent->dents, new, fds);
sys/ufs/chfs/chfs_nodeops.c
218
struct chfs_vnode_cache *vc, struct chfs_node_ref *new)
sys/ufs/chfs/chfs_nodeops.c
229
new->nref_next = (struct chfs_node_ref *)vc;
sys/ufs/chfs/chfs_nodeops.c
230
vc->v = new;
sys/ufs/chfs/chfs_nodeops.c
73
struct chfs_node_ref *new, struct chfs_node_ref **list)
sys/ufs/chfs/chfs_nodeops.c
81
(nextref->nref_lnr <= new->nref_lnr)) {
sys/ufs/chfs/chfs_nodeops.c
82
if (nextref->nref_lnr == new->nref_lnr) {
sys/ufs/chfs/chfs_nodeops.c
86
CHFS_GET_OFS(new->nref_offset))) {
sys/ufs/chfs/chfs_nodeops.c
97
nextref->nref_lnr == new->nref_lnr &&
sys/ufs/chfs/chfs_nodeops.c
99
CHFS_GET_OFS(new->nref_offset)) {
sys/ufs/chfs/chfs_scan.c
211
struct chfs_dirent *new, struct chfs_vnode_cache *pvc)
sys/ufs/chfs/chfs_scan.c
218
dbg("adding fd to list: %s\n", new->name);
sys/ufs/chfs/chfs_scan.c
221
if ((new->version > pvc->highest_version))
sys/ufs/chfs/chfs_scan.c
222
pvc->highest_version = new->version;
sys/ufs/chfs/chfs_scan.c
225
new->nsize);
sys/ufs/chfs/chfs_scan.c
226
cheb = &chmp->chm_blocks[new->nref->nref_lnr];
sys/ufs/chfs/chfs_scan.c
230
if (fd->nhash > new->nhash) {
sys/ufs/chfs/chfs_scan.c
232
TAILQ_INSERT_BEFORE(fd, new, fds);
sys/ufs/chfs/chfs_scan.c
234
} else if (fd->nhash == new->nhash &&
sys/ufs/chfs/chfs_scan.c
235
!strcmp(fd->name, new->name)) {
sys/ufs/chfs/chfs_scan.c
236
if (new->version > fd->version) {
sys/ufs/chfs/chfs_scan.c
238
TAILQ_INSERT_BEFORE(fd, new, fds);
sys/ufs/chfs/chfs_scan.c
253
chfs_scan_mark_dirent_obsolete(chmp, pvc, new);
sys/ufs/chfs/chfs_scan.c
256
chfs_free_dirent(new);
sys/ufs/chfs/chfs_scan.c
263
TAILQ_INSERT_TAIL(&pvc->scan_dirents, new, fds);
sys/ufs/chfs/chfs_vnode_cache.c
79
struct chfs_vnode_cache* new)
sys/ufs/chfs/chfs_vnode_cache.c
85
if (!new->vno) {
sys/ufs/chfs/chfs_vnode_cache.c
86
new->vno = ++chmp->chm_max_vno;
sys/ufs/chfs/chfs_vnode_cache.c
89
prev = &chmp->chm_vnocache_hash[new->vno % VNODECACHE_SIZE];
sys/ufs/chfs/chfs_vnode_cache.c
91
while ((*prev) && (*prev)->vno < new->vno) {
sys/ufs/chfs/chfs_vnode_cache.c
94
new->next = *prev;
sys/ufs/chfs/chfs_vnode_cache.c
95
*prev = new;
sys/ufs/ext2fs/ext2fs.h
488
# define e2fs_sbload(old, new) memcpy((new), (old), SBSIZE)
sys/ufs/ext2fs/ext2fs.h
489
# define e2fs_sbsave(old, new) memcpy((new), (old), SBSIZE)
sys/ufs/ext2fs/ext2fs.h
498
# define e2fs_sbload(old, new) e2fs_sb_bswap((old), (new))
sys/ufs/ext2fs/ext2fs.h
499
# define e2fs_sbsave(old, new) e2fs_sb_bswap((old), (new))
sys/ufs/ext2fs/ext2fs.h
504
#define e2fs_cgload(old, new, size) memcpy((new), (old), (size))
sys/ufs/ext2fs/ext2fs.h
505
#define e2fs_cgsave(old, new, size) memcpy((new), (old), (size))
sys/ufs/ext2fs/ext2fs_bswap.c
100
new->e2di_mtime = bswap32(old->e2di_mtime);
sys/ufs/ext2fs/ext2fs_bswap.c
101
new->e2di_dtime = bswap32(old->e2di_dtime);
sys/ufs/ext2fs/ext2fs_bswap.c
102
new->e2di_nblock = bswap32(old->e2di_nblock);
sys/ufs/ext2fs/ext2fs_bswap.c
103
new->e2di_flags = bswap32(old->e2di_flags);
sys/ufs/ext2fs/ext2fs_bswap.c
104
new->e2di_version = bswap32(old->e2di_version);
sys/ufs/ext2fs/ext2fs_bswap.c
105
new->e2di_gen = bswap32(old->e2di_gen);
sys/ufs/ext2fs/ext2fs_bswap.c
106
new->e2di_facl = bswap32(old->e2di_facl);
sys/ufs/ext2fs/ext2fs_bswap.c
107
new->e2di_size_high = bswap32(old->e2di_size_high);
sys/ufs/ext2fs/ext2fs_bswap.c
108
new->e2di_nblock_high = bswap16(old->e2di_nblock_high);
sys/ufs/ext2fs/ext2fs_bswap.c
109
new->e2di_facl_high = bswap16(old->e2di_facl_high);
sys/ufs/ext2fs/ext2fs_bswap.c
110
new->e2di_uid_high = bswap16(old->e2di_uid_high);
sys/ufs/ext2fs/ext2fs_bswap.c
111
new->e2di_gid_high = bswap16(old->e2di_gid_high);
sys/ufs/ext2fs/ext2fs_bswap.c
112
new->e2di_checksum_low = bswap16(old->e2di_checksum_low);
sys/ufs/ext2fs/ext2fs_bswap.c
121
new->e2di_extra_isize = bswap16(old->e2di_extra_isize);
sys/ufs/ext2fs/ext2fs_bswap.c
122
new->e2di_checksum_high = bswap16(old->e2di_checksum_high);
sys/ufs/ext2fs/ext2fs_bswap.c
125
if (EXT2_DINODE_FITS(new, e2di_ctime_extra, isize))
sys/ufs/ext2fs/ext2fs_bswap.c
126
new->e2di_ctime_extra = bswap32(old->e2di_ctime_extra);
sys/ufs/ext2fs/ext2fs_bswap.c
127
if (EXT2_DINODE_FITS(new, e2di_mtime_extra, isize))
sys/ufs/ext2fs/ext2fs_bswap.c
128
new->e2di_mtime_extra = bswap32(old->e2di_mtime_extra);
sys/ufs/ext2fs/ext2fs_bswap.c
129
if (EXT2_DINODE_FITS(new, e2di_atime_extra, isize))
sys/ufs/ext2fs/ext2fs_bswap.c
130
new->e2di_atime_extra = bswap32(old->e2di_atime_extra);
sys/ufs/ext2fs/ext2fs_bswap.c
131
if (EXT2_DINODE_FITS(new, e2di_crtime, isize))
sys/ufs/ext2fs/ext2fs_bswap.c
132
new->e2di_crtime = bswap32(old->e2di_crtime);
sys/ufs/ext2fs/ext2fs_bswap.c
133
if (EXT2_DINODE_FITS(new, e2di_crtime_extra, isize))
sys/ufs/ext2fs/ext2fs_bswap.c
134
new->e2di_crtime_extra = bswap32(old->e2di_crtime_extra);
sys/ufs/ext2fs/ext2fs_bswap.c
135
if (EXT2_DINODE_FITS(new, e2di_version_high, isize))
sys/ufs/ext2fs/ext2fs_bswap.c
136
new->e2di_version_high = bswap32(old->e2di_version_high);
sys/ufs/ext2fs/ext2fs_bswap.c
137
if (EXT2_DINODE_FITS(new, e2di_projid, isize))
sys/ufs/ext2fs/ext2fs_bswap.c
138
new->e2di_projid = bswap32(old->e2di_projid);
sys/ufs/ext2fs/ext2fs_bswap.c
45
e2fs_sb_bswap(struct ext2fs *old, struct ext2fs *new)
sys/ufs/ext2fs/ext2fs_bswap.c
49
memcpy(new, old, sizeof(struct ext2fs));
sys/ufs/ext2fs/ext2fs_bswap.c
50
new->e2fs_icount = bswap32(old->e2fs_icount);
sys/ufs/ext2fs/ext2fs_bswap.c
51
new->e2fs_bcount = bswap32(old->e2fs_bcount);
sys/ufs/ext2fs/ext2fs_bswap.c
52
new->e2fs_rbcount = bswap32(old->e2fs_rbcount);
sys/ufs/ext2fs/ext2fs_bswap.c
53
new->e2fs_fbcount = bswap32(old->e2fs_fbcount);
sys/ufs/ext2fs/ext2fs_bswap.c
54
new->e2fs_ficount = bswap32(old->e2fs_ficount);
sys/ufs/ext2fs/ext2fs_bswap.c
55
new->e2fs_first_dblock = bswap32(old->e2fs_first_dblock);
sys/ufs/ext2fs/ext2fs_bswap.c
56
new->e2fs_log_bsize = bswap32(old->e2fs_log_bsize);
sys/ufs/ext2fs/ext2fs_bswap.c
57
new->e2fs_fsize = bswap32(old->e2fs_fsize);
sys/ufs/ext2fs/ext2fs_bswap.c
58
new->e2fs_bpg = bswap32(old->e2fs_bpg);
sys/ufs/ext2fs/ext2fs_bswap.c
59
new->e2fs_fpg = bswap32(old->e2fs_fpg);
sys/ufs/ext2fs/ext2fs_bswap.c
60
new->e2fs_ipg = bswap32(old->e2fs_ipg);
sys/ufs/ext2fs/ext2fs_bswap.c
61
new->e2fs_mtime = bswap32(old->e2fs_mtime);
sys/ufs/ext2fs/ext2fs_bswap.c
62
new->e2fs_wtime = bswap32(old->e2fs_wtime);
sys/ufs/ext2fs/ext2fs_bswap.c
63
new->e2fs_mnt_count = bswap16(old->e2fs_mnt_count);
sys/ufs/ext2fs/ext2fs_bswap.c
64
new->e2fs_max_mnt_count = bswap16(old->e2fs_max_mnt_count);
sys/ufs/ext2fs/ext2fs_bswap.c
65
new->e2fs_magic = bswap16(old->e2fs_magic);
sys/ufs/ext2fs/ext2fs_bswap.c
66
new->e2fs_state = bswap16(old->e2fs_state);
sys/ufs/ext2fs/ext2fs_bswap.c
67
new->e2fs_beh = bswap16(old->e2fs_beh);
sys/ufs/ext2fs/ext2fs_bswap.c
68
new->e2fs_minrev = bswap16(old->e2fs_minrev);
sys/ufs/ext2fs/ext2fs_bswap.c
69
new->e2fs_lastfsck = bswap32(old->e2fs_lastfsck);
sys/ufs/ext2fs/ext2fs_bswap.c
70
new->e2fs_fsckintv = bswap32(old->e2fs_fsckintv);
sys/ufs/ext2fs/ext2fs_bswap.c
71
new->e2fs_creator = bswap32(old->e2fs_creator);
sys/ufs/ext2fs/ext2fs_bswap.c
72
new->e2fs_rev = bswap32(old->e2fs_rev);
sys/ufs/ext2fs/ext2fs_bswap.c
73
new->e2fs_ruid = bswap16(old->e2fs_ruid);
sys/ufs/ext2fs/ext2fs_bswap.c
74
new->e2fs_rgid = bswap16(old->e2fs_rgid);
sys/ufs/ext2fs/ext2fs_bswap.c
75
new->e2fs_first_ino = bswap32(old->e2fs_first_ino);
sys/ufs/ext2fs/ext2fs_bswap.c
76
new->e2fs_inode_size = bswap16(old->e2fs_inode_size);
sys/ufs/ext2fs/ext2fs_bswap.c
77
new->e2fs_block_group_nr = bswap16(old->e2fs_block_group_nr);
sys/ufs/ext2fs/ext2fs_bswap.c
78
new->e2fs_features_compat = bswap32(old->e2fs_features_compat);
sys/ufs/ext2fs/ext2fs_bswap.c
79
new->e2fs_features_incompat = bswap32(old->e2fs_features_incompat);
sys/ufs/ext2fs/ext2fs_bswap.c
80
new->e2fs_features_rocompat = bswap32(old->e2fs_features_rocompat);
sys/ufs/ext2fs/ext2fs_bswap.c
81
new->e2fs_algo = bswap32(old->e2fs_algo);
sys/ufs/ext2fs/ext2fs_bswap.c
82
new->e2fs_reserved_ngdb = bswap16(old->e2fs_reserved_ngdb);
sys/ufs/ext2fs/ext2fs_bswap.c
83
new->e4fs_want_extra_isize = bswap16(old->e4fs_want_extra_isize);
sys/ufs/ext2fs/ext2fs_bswap.c
87
e2fs_i_bswap(struct ext2fs_dinode *old, struct ext2fs_dinode *new, size_t isize)
sys/ufs/ext2fs/ext2fs_bswap.c
90
memcpy(new, old, isize);
sys/ufs/ext2fs/ext2fs_bswap.c
93
new->e2di_mode = bswap16(old->e2di_mode);
sys/ufs/ext2fs/ext2fs_bswap.c
94
new->e2di_uid = bswap16(old->e2di_uid);
sys/ufs/ext2fs/ext2fs_bswap.c
95
new->e2di_gid = bswap16(old->e2di_gid);
sys/ufs/ext2fs/ext2fs_bswap.c
96
new->e2di_nlink = bswap16(old->e2di_nlink);
sys/ufs/ext2fs/ext2fs_bswap.c
97
new->e2di_size = bswap32(old->e2di_size);
sys/ufs/ext2fs/ext2fs_bswap.c
98
new->e2di_atime = bswap32(old->e2di_atime);
sys/ufs/ext2fs/ext2fs_bswap.c
99
new->e2di_ctime = bswap32(old->e2di_ctime);
sys/ufs/ext2fs/ext2fs_dinode.h
276
# define e2fs_iload(old, new, isize) \
sys/ufs/ext2fs/ext2fs_dinode.h
277
memcpy((new),(old),(isize))
sys/ufs/ext2fs/ext2fs_dinode.h
278
# define e2fs_isave(old, new, isize) \
sys/ufs/ext2fs/ext2fs_dinode.h
279
memcpy((new),(old),(isize))
sys/ufs/ext2fs/ext2fs_dinode.h
282
# define e2fs_iload(old, new, isize) e2fs_i_bswap((old), (new), (isize))
sys/ufs/ext2fs/ext2fs_dinode.h
283
# define e2fs_isave(old, new, isize) e2fs_i_bswap((old), (new), (isize))
tests/crypto/opencrypto/h_ioctl.c
365
set_userasymcrypto(int new, int *old)
tests/crypto/opencrypto/h_ioctl.c
369
ret = sysctlbyname("kern.userasymcrypto", NULL, NULL, &new, sizeof(new));
tests/crypto/opencrypto/h_ioctl.c
371
warn("failed: kern.userasymcrypto=%d", new);
tests/crypto/opencrypto/h_ioctl.c
376
*old = new;
tests/crypto/opencrypto/h_ioctl.c
396
int ret, new, orig;
tests/crypto/opencrypto/h_ioctl.c
400
new = 1;
tests/crypto/opencrypto/h_ioctl.c
401
ret = set_userasymcrypto(new, &orig);
tests/crypto/opencrypto/h_ioctl.c
404
ret = test_asymfeat_each(fd, &asymfeat, new);
tests/crypto/opencrypto/h_ioctl.c
409
new = 0;
tests/crypto/opencrypto/h_ioctl.c
410
ret = set_userasymcrypto(new, NULL);
tests/crypto/opencrypto/h_ioctl.c
413
ret = test_asymfeat_each(fd, &asymfeat, new);
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
78
int min, max, new, priority;
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
89
for (new = min; new <= max; new++)
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
90
if (priority != new)
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
93
ATF_REQUIRE_MSG(priority != new, "could not find different priority");
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
95
min, max, scheduler, new);
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
96
return new;
tests/lib/libc/sys/t_eventfd.c
78
set_state(struct helper_context * const ctx, int const new)
tests/lib/libc/sys/t_eventfd.c
81
ctx->state = new;
tests/lib/libpthread/t_barrier.c
76
pthread_t new[COUNT];
tests/lib/libpthread/t_barrier.c
86
PTHREAD_REQUIRE(pthread_create(&new[i], NULL, threadfunc,
tests/lib/libpthread/t_barrier.c
92
PTHREAD_REQUIRE(pthread_join(new[i], &joinval));
tests/lib/libpthread/t_cond.c
105
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_cond.c
138
pthread_t new;
tests/lib/libpthread/t_cond.c
151
PTHREAD_REQUIRE(pthread_create(&new, NULL,
tests/lib/libpthread/t_cond.c
166
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_cond.c
200
pthread_t new;
tests/lib/libpthread/t_cond.c
210
PTHREAD_REQUIRE(pthread_create(&new, NULL,
tests/lib/libpthread/t_cond.c
225
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_cond.c
260
pthread_t new;
tests/lib/libpthread/t_cond.c
271
PTHREAD_REQUIRE(pthread_create(&new, NULL, signal_wait_race_threadfunc,
tests/lib/libpthread/t_cond.c
293
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_cond.c
391
pthread_t new;
tests/lib/libpthread/t_cond.c
402
PTHREAD_REQUIRE(pthread_create(&new, NULL, broadcast_threadfunc,
tests/lib/libpthread/t_cond.c
423
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_cond.c
446
pthread_t new;
tests/lib/libpthread/t_cond.c
472
PTHREAD_REQUIRE(pthread_create(&new, NULL, bogus_timedwaits_threadfunc,
tests/lib/libpthread/t_cond.c
474
PTHREAD_REQUIRE(pthread_join(new, NULL));
tests/lib/libpthread/t_cond.c
77
pthread_t new;
tests/lib/libpthread/t_cond.c
90
PTHREAD_REQUIRE(pthread_create(&new, NULL, signal_delay_wait_threadfunc,
tests/lib/libpthread/t_mutex.c
105
pthread_t new;
tests/lib/libpthread/t_mutex.c
113
PTHREAD_REQUIRE(pthread_create(&new, NULL, mutex1_threadfunc, &x));
tests/lib/libpthread/t_mutex.c
121
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_mutex.c
156
pthread_t new;
tests/lib/libpthread/t_mutex.c
167
PTHREAD_REQUIRE(pthread_create(&new, NULL, mutex2_threadfunc, &count2));
tests/lib/libpthread/t_mutex.c
179
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_mutex.c
213
pthread_t new;
tests/lib/libpthread/t_mutex.c
222
PTHREAD_REQUIRE(pthread_create(&new, NULL, mutex3_threadfunc, &count2));
tests/lib/libpthread/t_mutex.c
234
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_mutex.c
268
pthread_t new;
tests/lib/libpthread/t_mutex.c
283
PTHREAD_REQUIRE(pthread_create(&new, NULL, mutex4_threadfunc, &x));
tests/lib/libpthread/t_mutex.c
300
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_mutex.c
505
pthread_t new;
tests/lib/libpthread/t_mutex.c
515
PTHREAD_REQUIRE(pthread_create(&new, NULL, timedmtx_thrdfunc, NULL));
tests/lib/libpthread/t_mutex.c
518
PTHREAD_REQUIRE(pthread_join(new, NULL));
tests/lib/libpthread/t_mutex.c
533
pthread_t new;
tests/lib/libpthread/t_mutex.c
543
PTHREAD_REQUIRE(pthread_create(&new, NULL, timedmtx_thrdfunc, NULL));
tests/lib/libpthread/t_mutex.c
546
PTHREAD_REQUIRE(pthread_join(new, NULL));
tests/lib/libpthread/t_preempt.c
102
PTHREAD_REQUIRE(pthread_create(&new, NULL, threadfunc, NULL));
tests/lib/libpthread/t_preempt.c
118
PTHREAD_REQUIRE(pthread_join(new, &joinval));
tests/lib/libpthread/t_preempt.c
80
pthread_t new;
tests/modules/t_ufetchstore.c
272
do_ucas_32(uint32_t *uaddr, uint32_t expected, uint32_t new, uint32_t *actualp)
tests/modules/t_ufetchstore.c
278
.val32 = new,
tests/modules/t_ufetchstore.c
289
do_ucas_64(uint64_t *uaddr, uint64_t expected, uint64_t new, uint64_t *actualp)
tests/modules/t_ufetchstore.c
295
.val64 = new,
tests/modules/ufetchstore/t_ufetchstore.c
272
do_ucas_32(uint32_t *uaddr, uint32_t expected, uint32_t new, uint32_t *actualp)
tests/modules/ufetchstore/t_ufetchstore.c
278
.val32 = new,
tests/modules/ufetchstore/t_ufetchstore.c
289
do_ucas_64(uint64_t *uaddr, uint64_t expected, uint64_t new, uint64_t *actualp)
tests/modules/ufetchstore/t_ufetchstore.c
295
.val64 = new,
tests/net/net/t_ip_reass.c
218
(uintmax_t)old.ips_ipstat[counter], (uintmax_t)new.ips_ipstat[counter]);
tests/net/net/t_ip_reass.c
227
(uintmax_t)old.ips_ ## counter, (uintmax_t)new.ips_## counter);
tests/net/net/t_ip_reass.c
242
struct ipstat old, new;
tests/net/net/t_ip_reass.c
281
get_ipstat(&new);
tests/net/net/t_ip_reass.c
282
CHECK_IP_COUNTER(&old, &new, fragdropped);
tests/net/net/t_ip_reass.c
289
get_ipstat(&new);
tests/net/net/t_ip_reass.c
290
CHECK_IP_COUNTER(&old, &new, fragdropped);
tests/net/net/t_ip_reass.c
295
get_ipstat(&new);
tests/net/net/t_ip_reass.c
296
CHECK_IP_COUNTER(&old, &new, fragdropped);
tests/net/net/t_ip_reass.c
301
get_ipstat(&new);
tests/net/net/t_ip_reass.c
302
CHECK_IP_COUNTER(&old, &new, fragdropped);
tests/net/net/t_ip_reass.c
322
struct ipstat old, new;
tests/net/net/t_ip_reass.c
349
get_ipstat(&new);
tests/net/net/t_ip_reass.c
351
CHECK_IP_COUNTER(&old, &new, badfrags);
tests/net/net/t_ip_reass.c
353
CHECK_IP_COUNTER(&old, &new, toosmall);
tests/net/net/t_ip_reass.c
354
CHECK_IP_COUNTER(&old, &new, fragdropped);
tests/net/net/t_ip_reass.c
359
get_ipstat(&new);
tests/net/net/t_ip_reass.c
362
CHECK_IP_COUNTER(&old, &new, toosmall);
tests/net/net/t_ip_reass.c
363
CHECK_IP_COUNTER(&old, &new, fragdropped);
tests/net/net/t_ip_reass.c
379
struct ipstat old, new;
tests/net/net/t_ip_reass.c
408
get_ipstat(&new);
tests/net/net/t_ip_reass.c
409
CHECK_IP_COUNTER(&old, &new, toolong);
tests/net/net/t_ip_reass.c
411
CHECK_IP_COUNTER(&old, &new, fragdropped);
tests/net/net/t_ip_reass.c
416
get_ipstat(&new);
tests/net/net/t_ip_reass.c
417
CHECK_IP_COUNTER(&old, &new, toolong);
tests/net/net/t_ip_reass.c
419
CHECK_IP_COUNTER(&old, &new, fragdropped);
usr.bin/diff3/diff3.c
107
struct range new;
usr.bin/diff3/diff3.c
234
(*dd)[i].new.from = c;
usr.bin/diff3/diff3.c
235
(*dd)[i].new.to = d;
usr.bin/diff3/diff3.c
239
(*dd)[i].new.from = (*dd)[i - 1].new.to;
usr.bin/diff3/diff3.c
316
if (!t2 || (t1 && d1->new.to < d2->new.from)) {
usr.bin/diff3/diff3.c
321
keep(2, &d1->new);
usr.bin/diff3/diff3.c
322
change(3, &d1->new, false);
usr.bin/diff3/diff3.c
328
if (!t1 || (t2 && d2->new.to < d1->new.from)) {
usr.bin/diff3/diff3.c
331
keep(1, &d2->new);
usr.bin/diff3/diff3.c
332
change(3, &d2->new, false);
usr.bin/diff3/diff3.c
345
if (d1 + 1 < d13 + m1 && d1->new.to >= d1[1].new.from) {
usr.bin/diff3/diff3.c
347
d1[1].new.from = d1->new.from;
usr.bin/diff3/diff3.c
353
if (d2 + 1 < d23 + m2 && d2->new.to >= d2[1].new.from) {
usr.bin/diff3/diff3.c
355
d2[1].new.from = d2->new.from;
usr.bin/diff3/diff3.c
360
if (d1->new.from == d2->new.from && d1->new.to == d2->new.to) {
usr.bin/diff3/diff3.c
371
change(3, &d3->new, false);
usr.bin/diff3/diff3.c
384
if (d1->new.from < d2->new.from) {
usr.bin/diff3/diff3.c
385
d2->old.from -= d2->new.from - d1->new.from;
usr.bin/diff3/diff3.c
386
d2->new.from = d1->new.from;
usr.bin/diff3/diff3.c
387
} else if (d2->new.from < d1->new.from) {
usr.bin/diff3/diff3.c
388
d1->old.from -= d1->new.from - d2->new.from;
usr.bin/diff3/diff3.c
389
d1->new.from = d2->new.from;
usr.bin/diff3/diff3.c
391
if (d1->new.to > d2->new.to) {
usr.bin/diff3/diff3.c
392
d2->old.to += d1->new.to - d2->new.to;
usr.bin/diff3/diff3.c
393
d2->new.to = d1->new.to;
usr.bin/diff3/diff3.c
394
} else if (d2->new.to > d1->new.to) {
usr.bin/diff3/diff3.c
395
d1->old.to += d2->new.to - d1->new.to;
usr.bin/diff3/diff3.c
396
d1->new.to = d2->new.to;
usr.bin/diff3/diff3.c
552
de[j].new.from = diff->new.from;
usr.bin/diff3/diff3.c
553
de[j].new.to = diff->new.to;
usr.bin/diff3/diff3.c
592
struct range *new, *old;
usr.bin/diff3/diff3.c
595
new = &de[n].new;
usr.bin/diff3/diff3.c
598
delete = (new->from == new->to);
usr.bin/diff3/diff3.c
605
printrange(fp[2], new);
usr.bin/diff3/diff3.c
634
struct range *new, *old;
usr.bin/diff3/diff3.c
637
new = &de[n].new;
usr.bin/diff3/diff3.c
639
deletenew = (new->from == new->to);
usr.bin/diff3/diff3.c
645
printrange(fp[2], new);
usr.bin/diff3/diff3.c
647
startmark = new->to;
usr.bin/diff3/diff3.c
658
(new->to - new->from));
usr.bin/diff3/diff3.c
670
printrange(fp[2], new);
usr.bin/diff3/diff3.c
678
r.to = new->to;
usr.bin/diff3/diff3.c
684
printrange(fp[2], new);
usr.bin/diff3/diff3.c
717
struct range r, *new, *old;
usr.bin/diff3/diff3.c
724
new = &de[n].new;
usr.bin/diff3/diff3.c
735
printrange(fp[2], new);
usr.bin/diff3/diff3.c
739
printrange(fp[2], new);
usr.bin/diff3/diff3.c
749
or.to = new->to;
usr.bin/diff3/diff3.c
756
printrange(fp[2], new);
usr.bin/diff3/diff3.c
762
r.from = new->to;
usr.bin/diff3/diff3.c
774
new = &de[n-1].new;
usr.bin/diff3/diff3.c
776
if ((old->from == new->from) &&
usr.bin/diff3/diff3.c
777
(old->to == new->to))
usr.bin/diff3/diff3.c
779
else if (new->from == new->to)
usr.bin/elf2aout/elf2aout.c
608
combine(struct sect *base, struct sect *new, int pad)
usr.bin/elf2aout/elf2aout.c
612
*base = *new;
usr.bin/elf2aout/elf2aout.c
614
if (new->len) {
usr.bin/elf2aout/elf2aout.c
615
if (base->vaddr + base->len != new->vaddr) {
usr.bin/elf2aout/elf2aout.c
617
base->len = new->vaddr - base->vaddr;
usr.bin/elf2aout/elf2aout.c
622
base->len += new->len;
usr.bin/elf2ecoff/elf2ecoff.c
497
combine(struct sect *base, struct sect *new, int pad)
usr.bin/elf2ecoff/elf2ecoff.c
501
*base = *new;
usr.bin/elf2ecoff/elf2ecoff.c
503
if (new->len) {
usr.bin/elf2ecoff/elf2ecoff.c
504
if (base->vaddr + base->len != new->vaddr) {
usr.bin/elf2ecoff/elf2ecoff.c
506
base->len = new->vaddr - base->vaddr;
usr.bin/elf2ecoff/elf2ecoff.c
511
base->len += new->len;
usr.bin/find/find.c
105
new = c_print(NULL, 0, NULL);
usr.bin/find/find.c
106
tail = plan = new;
usr.bin/find/find.c
108
new = c_openparen(NULL, 0, NULL);
usr.bin/find/find.c
109
new->next = plan;
usr.bin/find/find.c
110
plan = new;
usr.bin/find/find.c
111
new = c_closeparen(NULL, 0, NULL);
usr.bin/find/find.c
112
tail->next = new;
usr.bin/find/find.c
113
tail = new;
usr.bin/find/find.c
114
new = c_print(NULL, 0, NULL);
usr.bin/find/find.c
115
tail->next = new;
usr.bin/find/find.c
116
tail = new;
usr.bin/find/find.c
69
PLAN *plan, *tail, *new;
usr.bin/find/find.c
88
if (!(new = find_create(&argv)))
usr.bin/find/find.c
91
tail = plan = new;
usr.bin/find/find.c
93
tail->next = new;
usr.bin/find/find.c
94
tail = new;
usr.bin/find/function.c
1035
PLAN *new;
usr.bin/find/function.c
1039
new = palloc(N_FPRINT, f_fprint);
usr.bin/find/function.c
1041
if (NULL == (new->fprint_file = fopen(**argvp, "w")))
usr.bin/find/function.c
1045
return (new);
usr.bin/find/function.c
1118
PLAN *new;
usr.bin/find/function.c
1123
new = palloc(N_FSTYPE, f_fstype);
usr.bin/find/function.c
1128
new->flags = F_MTFLAG;
usr.bin/find/function.c
1129
new->mt_data = MNT_LOCAL;
usr.bin/find/function.c
1130
return (new);
usr.bin/find/function.c
1135
new->flags = F_MTFLAG;
usr.bin/find/function.c
1136
new->mt_data = MNT_RDONLY;
usr.bin/find/function.c
1137
return (new);
usr.bin/find/function.c
1142
new->flags = F_MTTYPE;
usr.bin/find/function.c
1143
new->c_data = arg;
usr.bin/find/function.c
1144
return (new);
usr.bin/find/function.c
1165
PLAN *new;
usr.bin/find/function.c
1172
new = palloc(N_GROUP, f_group);
usr.bin/find/function.c
1178
gid = find_parsenum(new, "-group", gname, NULL);
usr.bin/find/function.c
1181
new->flags = F_EQUAL;
usr.bin/find/function.c
1185
new->g_data = gid;
usr.bin/find/function.c
1186
return (new);
usr.bin/find/function.c
1205
PLAN *new;
usr.bin/find/function.c
1210
new = palloc(N_INUM, f_inum);
usr.bin/find/function.c
1211
new->i_data = find_parsenum(new, opt, arg, NULL);
usr.bin/find/function.c
1212
return (new);
usr.bin/find/function.c
1231
PLAN *new;
usr.bin/find/function.c
1236
new = palloc(N_LINKS, f_links);
usr.bin/find/function.c
1237
new->l_data = (nlink_t)find_parsenum(new, opt, arg, NULL);
usr.bin/find/function.c
1238
return (new);
usr.bin/find/function.c
1284
PLAN *new;
usr.bin/find/function.c
1287
new = palloc(N_MAXDEPTH, f_maxdepth);
usr.bin/find/function.c
1288
new->max_data = atoi(arg);
usr.bin/find/function.c
1289
return (new);
usr.bin/find/function.c
1308
PLAN *new;
usr.bin/find/function.c
1311
new = palloc(N_MINDEPTH, f_mindepth);
usr.bin/find/function.c
1312
new->min_data = atoi(arg);
usr.bin/find/function.c
1313
return (new);
usr.bin/find/function.c
1333
PLAN *new;
usr.bin/find/function.c
1338
new = palloc(N_MMIN, f_mmin);
usr.bin/find/function.c
1339
new->t_data = find_parsenum(new, opt, arg, NULL);
usr.bin/find/function.c
1340
TIME_CORRECT(new, N_MMIN);
usr.bin/find/function.c
1341
return (new);
usr.bin/find/function.c
1361
PLAN *new;
usr.bin/find/function.c
1366
new = palloc(N_MTIME, f_mtime);
usr.bin/find/function.c
1367
new->t_data = find_parsenum(new, opt, arg, NULL);
usr.bin/find/function.c
1368
TIME_CORRECT(new, N_MTIME);
usr.bin/find/function.c
1369
return (new);
usr.bin/find/function.c
1389
PLAN *new;
usr.bin/find/function.c
1392
new = palloc(N_NAME, f_name);
usr.bin/find/function.c
1393
new->c_data = pattern;
usr.bin/find/function.c
1394
return (new);
usr.bin/find/function.c
1413
PLAN *new;
usr.bin/find/function.c
1416
new = palloc(N_INAME, f_iname);
usr.bin/find/function.c
1417
new->c_data = pattern;
usr.bin/find/function.c
1418
return (new);
usr.bin/find/function.c
1439
PLAN *new;
usr.bin/find/function.c
1447
new = palloc(N_NEWER, f_newer);
usr.bin/find/function.c
1448
new->ts_data = sb.st_mtim;
usr.bin/find/function.c
1449
return (new);
usr.bin/find/function.c
1511
PLAN *new;
usr.bin/find/function.c
1514
new = palloc(N_NAME, f_path);
usr.bin/find/function.c
1515
new->c_data = pattern;
usr.bin/find/function.c
1516
return (new);
usr.bin/find/function.c
1544
PLAN *new;
usr.bin/find/function.c
1550
new = palloc(N_PERM, f_perm);
usr.bin/find/function.c
1553
new->flags = F_ATLEAST;
usr.bin/find/function.c
1560
new->m_data = getmode(set, 0);
usr.bin/find/function.c
1562
return (new);
usr.bin/find/function.c
1674
PLAN *new;
usr.bin/find/function.c
1695
new = palloc(type, f_regex);
usr.bin/find/function.c
1696
new->regexp_data = reg;
usr.bin/find/function.c
1697
return (new);
usr.bin/find/function.c
1729
PLAN *new;
usr.bin/find/function.c
1734
new = palloc(N_SINCE, f_since);
usr.bin/find/function.c
1735
new->t_data = find_parsedate(new, opt, arg);
usr.bin/find/function.c
1736
new->flags = F_GREATER;
usr.bin/find/function.c
1737
return (new);
usr.bin/find/function.c
1764
PLAN *new;
usr.bin/find/function.c
1770
new = palloc(N_SIZE, f_size);
usr.bin/find/function.c
1772
new->o_data = find_parsenum(new, opt, arg, &endch);
usr.bin/find/function.c
1775
return (new);
usr.bin/find/function.c
1796
PLAN *new;
usr.bin/find/function.c
1837
new = palloc(N_TYPE, f_type);
usr.bin/find/function.c
1838
new->m_data = mask;
usr.bin/find/function.c
1839
return (new);
usr.bin/find/function.c
1860
PLAN *new;
usr.bin/find/function.c
1867
new = palloc(N_USER, f_user);
usr.bin/find/function.c
1873
uid = find_parsenum(new, opt, username, NULL);
usr.bin/find/function.c
1876
new->flags = F_EQUAL;
usr.bin/find/function.c
1880
new->u_data = uid;
usr.bin/find/function.c
1881
return (new);
usr.bin/find/function.c
2019
PLAN *new;
usr.bin/find/function.c
2021
if ((new = malloc(sizeof(PLAN))) == NULL)
usr.bin/find/function.c
2023
memset(new, 0, sizeof(PLAN));
usr.bin/find/function.c
2024
new->type = t;
usr.bin/find/function.c
2025
new->eval = f;
usr.bin/find/function.c
2026
return (new);
usr.bin/find/function.c
238
PLAN *new;
usr.bin/find/function.c
243
new = palloc(N_AMIN, f_amin);
usr.bin/find/function.c
244
new->t_data = find_parsenum(new, opt, arg, NULL);
usr.bin/find/function.c
245
TIME_CORRECT(new, N_AMIN);
usr.bin/find/function.c
246
return (new);
usr.bin/find/function.c
267
PLAN *new;
usr.bin/find/function.c
275
new = palloc(N_ANEWER, f_anewer);
usr.bin/find/function.c
276
new->ts_data = sb.st_atim;
usr.bin/find/function.c
277
return (new);
usr.bin/find/function.c
295
PLAN *new;
usr.bin/find/function.c
300
new = palloc(N_ASINCE, f_asince);
usr.bin/find/function.c
301
new->t_data = find_parsedate(new, opt, arg);
usr.bin/find/function.c
302
new->flags = F_GREATER;
usr.bin/find/function.c
303
return (new);
usr.bin/find/function.c
323
PLAN *new;
usr.bin/find/function.c
328
new = palloc(N_ATIME, f_atime);
usr.bin/find/function.c
329
new->t_data = find_parsenum(new, opt, arg, NULL);
usr.bin/find/function.c
330
TIME_CORRECT(new, N_ATIME);
usr.bin/find/function.c
331
return (new);
usr.bin/find/function.c
351
PLAN *new;
usr.bin/find/function.c
356
new = palloc(N_CMIN, f_cmin);
usr.bin/find/function.c
357
new->t_data = find_parsenum(new, opt, arg, NULL);
usr.bin/find/function.c
358
TIME_CORRECT(new, N_CMIN);
usr.bin/find/function.c
359
return (new);
usr.bin/find/function.c
380
PLAN *new;
usr.bin/find/function.c
388
new = palloc(N_CNEWER, f_cnewer);
usr.bin/find/function.c
389
new->ts_data = sb.st_ctim;
usr.bin/find/function.c
390
return (new);
usr.bin/find/function.c
408
PLAN *new;
usr.bin/find/function.c
413
new = palloc(N_CSINCE, f_csince);
usr.bin/find/function.c
414
new->t_data = find_parsedate(new, opt, arg);
usr.bin/find/function.c
415
new->flags = F_GREATER;
usr.bin/find/function.c
416
return (new);
usr.bin/find/function.c
436
PLAN *new;
usr.bin/find/function.c
441
new = palloc(N_CTIME, f_ctime);
usr.bin/find/function.c
442
new->t_data = find_parsenum(new, opt, arg, NULL);
usr.bin/find/function.c
443
TIME_CORRECT(new, N_CTIME);
usr.bin/find/function.c
444
return (new);
usr.bin/find/function.c
722
PLAN *new; /* node returned */
usr.bin/find/function.c
729
new = palloc(N_EXEC, f_exec);
usr.bin/find/function.c
731
new->flags |= F_NEEDOK;
usr.bin/find/function.c
748
new->flags |= F_PLUSSET;
usr.bin/find/function.c
757
if (new->flags & F_NEEDOK && new->flags & F_PLUSSET)
usr.bin/find/function.c
760
if (new->flags & F_PLUSSET) {
usr.bin/find/function.c
764
new->ep_maxargs = ARG_MAX / (sizeof (char *) + 16);
usr.bin/find/function.c
765
if (new->ep_maxargs > 5000)
usr.bin/find/function.c
766
new->ep_maxargs = 5000;
usr.bin/find/function.c
767
new->e_argv = emalloc((cnt + new->ep_maxargs)
usr.bin/find/function.c
768
* sizeof(*new->e_argv));
usr.bin/find/function.c
771
new->ep_bxp = &new->e_argv[cnt];
usr.bin/find/function.c
772
new->ep_narg = 0;
usr.bin/find/function.c
785
new->e_argv[cnt] = *argv;
usr.bin/find/function.c
787
if (c + new->ep_maxargs * sizeof (char *) >= MAXARG)
usr.bin/find/function.c
789
bufsize = MAXARG - c - new->ep_maxargs * sizeof (char *);
usr.bin/find/function.c
795
new->ep_p = new->ep_bbp = emalloc(bufsize + 1);
usr.bin/find/function.c
796
new->ep_ebp = new->ep_bbp + bufsize - 1;
usr.bin/find/function.c
797
new->ep_rval = 0;
usr.bin/find/function.c
800
new->e_argv = emalloc(cnt * sizeof(*new->e_argv));
usr.bin/find/function.c
801
new->e_orig = emalloc(cnt * sizeof(*new->e_orig));
usr.bin/find/function.c
802
new->e_len = emalloc(cnt * sizeof(*new->e_len));
usr.bin/find/function.c
805
new->e_orig[cnt] = *argv;
usr.bin/find/function.c
808
new->e_argv[cnt] =
usr.bin/find/function.c
810
new->e_len[cnt] = MAXPATHLEN;
usr.bin/find/function.c
814
new->e_argv[cnt] = *argv;
usr.bin/find/function.c
815
new->e_len[cnt] = 0;
usr.bin/find/function.c
818
new->e_orig[cnt] = NULL;
usr.bin/find/function.c
821
new->e_argv[cnt] = NULL;
usr.bin/find/function.c
823
return (new);
usr.bin/find/function.c
881
PLAN *new; /* node returned */
usr.bin/find/function.c
888
new = palloc(N_EXECDIR, f_execdir);
usr.bin/find/function.c
898
new->e_argv = emalloc(cnt * sizeof(*new->e_argv));
usr.bin/find/function.c
899
new->e_orig = emalloc(cnt * sizeof(*new->e_orig));
usr.bin/find/function.c
900
new->e_len = emalloc(cnt * sizeof(*new->e_len));
usr.bin/find/function.c
903
new->e_orig[cnt] = *argv;
usr.bin/find/function.c
906
new->e_argv[cnt] = emalloc(MAXPATHLEN);
usr.bin/find/function.c
907
new->e_len[cnt] = MAXPATHLEN;
usr.bin/find/function.c
911
new->e_argv[cnt] = *argv;
usr.bin/find/function.c
912
new->e_len[cnt] = 0;
usr.bin/find/function.c
915
new->e_argv[cnt] = new->e_orig[cnt] = NULL;
usr.bin/find/function.c
918
return (new);
usr.bin/find/function.c
925
PLAN *new;
usr.bin/find/function.c
930
new = palloc(N_EXIT, f_always_true);
usr.bin/find/function.c
934
new->exit_val = find_parsenum(new, opt, arg, NULL);
usr.bin/find/function.c
936
new->exit_val = 0;
usr.bin/find/function.c
938
return (new);
usr.bin/find/function.c
979
PLAN *new;
usr.bin/find/function.c
985
new = palloc(N_FLAGS, f_flags);
usr.bin/find/function.c
988
new->flags = F_ATLEAST;
usr.bin/find/function.c
996
new->f_data = flagset;
usr.bin/find/function.c
997
return (new);
usr.bin/find/option.c
162
PLAN *new;
usr.bin/find/option.c
175
new = (p->create)(&argv, p->token == N_OK, opt);
usr.bin/find/option.c
178
return (new);
usr.bin/ftp/ftp.c
2070
static char new[MAXPATHLEN];
usr.bin/ftp/ftp.c
2085
len = strlcpy(new, local, sizeof(new));
usr.bin/ftp/ftp.c
2086
cp = &new[len];
usr.bin/ftp/ftp.c
2100
if ((d = access(new, F_OK)) < 0)
usr.bin/ftp/ftp.c
2111
return (new);
usr.bin/kdump/kdump.c
1139
char new[512], old[512], res[512];
usr.bin/kdump/kdump.c
1141
psigset(new, sizeof(new), &ktr->ktr_nset);
usr.bin/kdump/kdump.c
1145
how[ktr->ktr_how & 3], new, old, res);
usr.bin/mail/names.c
475
struct name *new, *np, *cp;
usr.bin/mail/names.c
479
new = NULL;
usr.bin/mail/names.c
485
new = put(new, np);
usr.bin/mail/names.c
492
new = gexpand(new, gh, metoo, np->n_type);
usr.bin/mail/names.c
494
new = put(new, np);
usr.bin/mail/names.c
497
return new;
usr.bin/mail/names.c
588
struct name *np, *t, *new;
usr.bin/mail/names.c
593
new = names;
usr.bin/mail/names.c
598
new->n_flink = NULL;
usr.bin/mail/names.c
600
t = new;
usr.bin/mail/names.c
627
if (t == new) {
usr.bin/mail/names.c
630
t->n_flink = new;
usr.bin/mail/names.c
631
new->n_blink = t;
usr.bin/mail/names.c
633
new = t;
usr.bin/mail/names.c
655
np = new;
usr.bin/mail/names.c
676
return new;
usr.bin/mail/support.c
62
char *new;
usr.bin/mail/support.c
65
if ((new = salloc(size)) != NULL)
usr.bin/mail/support.c
66
(void)memmove(new, str, size);
usr.bin/mail/support.c
67
return new;
usr.bin/mail/support.c
76
char *new;
usr.bin/mail/support.c
80
if ((new = salloc(newsize + oldsize)) != NULL) {
usr.bin/mail/support.c
82
(void)memmove(new, old, oldsize);
usr.bin/mail/support.c
83
new[oldsize - 1] = ' ';
usr.bin/mail/support.c
85
(void)memmove(new + oldsize, str, newsize);
usr.bin/mail/support.c
87
return new;
usr.bin/mail/vars.c
71
char *new;
usr.bin/mail/vars.c
77
new = emalloc(len);
usr.bin/mail/vars.c
78
(void)memmove(new, str, len);
usr.bin/mail/vars.c
79
return new;
usr.bin/patch/patch.c
838
LINENUM new = lastline + 1;
usr.bin/patch/patch.c
847
while (pch_char(new) == '=' || pch_char(new) == '\n')
usr.bin/patch/patch.c
848
new++;
usr.bin/patch/patch.c
865
} else if (new > pat_end) {
usr.bin/patch/patch.c
867
} else if (pch_char(new) == '+') {
usr.bin/patch/patch.c
878
fputs(pfetch(new), ofp);
usr.bin/patch/patch.c
879
new++;
usr.bin/patch/patch.c
880
} else if (pch_char(new) != pch_char(old)) {
usr.bin/patch/patch.c
883
pch_hunk_beg() + new);
usr.bin/patch/patch.c
886
pch_char(old), pch_char(new));
usr.bin/patch/patch.c
889
} else if (pch_char(new) == '!') {
usr.bin/patch/patch.c
906
while (pch_char(new) == '!') {
usr.bin/patch/patch.c
907
fputs(pfetch(new), ofp);
usr.bin/patch/patch.c
908
new++;
usr.bin/patch/patch.c
911
if (pch_char(new) != ' ')
usr.bin/patch/patch.c
914
new++;
usr.bin/patch/patch.c
921
if (new <= pat_end && pch_char(new) == '+') {
usr.bin/patch/patch.c
932
while (new <= pat_end && pch_char(new) == '+') {
usr.bin/patch/patch.c
933
fputs(pfetch(new), ofp);
usr.bin/patch/patch.c
934
new++;
usr.bin/rdist/server.c
758
char new[BUFSIZ];
usr.bin/rdist/server.c
854
strlcpy(new, tempname, sizeof(new));
usr.bin/rdist/server.c
856
(void) snprintf(new, sizeof(new), "/%s", tempname);
usr.bin/rdist/server.c
859
(void) snprintf(new, sizeof(new), "%s/%s", target, tempname);
usr.bin/rdist/server.c
878
if (symlink(buf, new) < 0) {
usr.bin/rdist/server.c
879
if (errno != ENOENT || chkparent(new) < 0 ||
usr.bin/rdist/server.c
880
symlink(buf, new) < 0)
usr.bin/rdist/server.c
889
(void) unlink(new);
usr.bin/rdist/server.c
899
if ((f = creat(new, mode)) < 0) {
usr.bin/rdist/server.c
900
if (errno != ENOENT || chkparent(new) < 0 ||
usr.bin/rdist/server.c
901
(f = creat(new, mode)) < 0)
usr.bin/rdist/server.c
918
(void) unlink(new);
usr.bin/rdist/server.c
943
if ((f2 = fopen(new, "r")) == NULL) {
usr.bin/rdist/server.c
944
badnew1: error("%s:%s: %s\n", host, new, strerror(errno));
usr.bin/rdist/server.c
965
if (fchtogm(f, new, mtime, owner, group, mode) < 0) {
usr.bin/rdist/server.c
969
(void) unlink(new);
usr.bin/rdist/server.c
974
fixup: if (rename(new, target) < 0) {
usr.bin/rdist/server.c
976
(void) unlink(new);
usr.bin/resize/resize.c
530
#define scaled(old,new,len) (old)?((unsigned)(new)*(len)/(old)):(len)
usr.bin/rump_dhcpclient/configure.c
250
return get_option_routes(iface->state->new,
usr.bin/rump_dhcpclient/configure.c
344
if (ifp->state->new == NULL)
usr.bin/rump_dhcpclient/configure.c
418
struct dhcp_message *dhcp = iface->state->new;
usr.bin/rump_dhcpclient/dhcp.c
556
(iface->state->new == NULL ||
usr.bin/rump_dhcpclient/dhcp.c
557
iface->state->new->cookie == htonl(MAGIC_COOKIE)))))
usr.bin/rump_dhcpclient/dhcpcd.h
67
struct dhcp_message *new;
usr.bin/rump_dhcpclient/main.c
224
ifp->state->new = ifp->state->offer;
usr.bin/rump_dhcpclient/main.c
225
get_lease(&ifp->state->lease, ifp->state->new);
usr.bin/sed/compile.c
680
s->new = erealloc(text, size);
usr.bin/sed/compile.c
792
char new[_POSIX2_LINE_MAX + 1];
usr.bin/sed/compile.c
806
p = compile_delimited(p - 1, new, 1);
usr.bin/sed/compile.c
814
np = new;
usr.bin/sed/defs.h
72
char *new; /* Replacement text */
usr.bin/sed/process.c
147
goto new;
usr.bin/sed/process.c
150
goto new;
usr.bin/sed/process.c
153
goto new;
usr.bin/sed/process.c
157
goto new;
usr.bin/sed/process.c
281
new: if (!nflag && !pd)
usr.bin/sed/process.c
420
regsub(&SS, s, cp->u.s->new);
usr.bin/sed/process.c
459
regsub(&SS, s, cp->u.s->new);
usr.bin/seq/seq.c
346
char c, *cp, *new = orig;
usr.bin/seq/seq.c
425
return (new);
usr.bin/tset/tset.c
224
u_int old, new;
usr.bin/tset/tset.c
226
new = mode.c_cc[which];
usr.bin/tset/tset.c
229
if (old == new && old == def)
usr.bin/tset/tset.c
232
(void)fprintf(stderr, "%s %s ", name, old == new ? "is" : "set to");
usr.bin/tset/tset.c
235
new == (unsigned int)key_backspace[0] &&
usr.bin/tset/tset.c
238
else if (new == 0177)
usr.bin/tset/tset.c
240
else if (new < 040) {
usr.bin/tset/tset.c
241
new ^= 0100;
usr.bin/tset/tset.c
242
(void)fprintf(stderr, "control-%c (^%c).\n", new, new);
usr.bin/tset/tset.c
243
} else if (new == _POSIX_VDISABLE)
usr.bin/tset/tset.c
246
(void)fprintf(stderr, "%c.\n", new);
usr.sbin/altq/altqstat/qdisc_cbq.c
149
last = new;
usr.sbin/altq/altqstat/qdisc_cbq.c
150
new = tmp;
usr.sbin/altq/altqstat/qdisc_cbq.c
66
class_stats_t *sp, *lp, *new, *last, *tmp;
usr.sbin/altq/altqstat/qdisc_cbq.c
75
new = &stats1[0];
usr.sbin/altq/altqstat/qdisc_cbq.c
83
get_stats.stats = new;
usr.sbin/altq/altqstat/qdisc_cbq.c
91
sp = &new[i];
usr.sbin/altq/altqstat/qdisc_cdnr.c
105
sp = &new[i];
usr.sbin/altq/altqstat/qdisc_cdnr.c
153
last = new;
usr.sbin/altq/altqstat/qdisc_cdnr.c
154
new = tmp;
usr.sbin/altq/altqstat/qdisc_cdnr.c
63
struct tce_stats *sp, *lp, *new, *last, *tmp;
usr.sbin/altq/altqstat/qdisc_cdnr.c
78
new = &stats1[0];
usr.sbin/altq/altqstat/qdisc_cdnr.c
87
get_stats.tce_stats = new;
usr.sbin/altq/altqstat/qdisc_hfsc.c
156
last = new;
usr.sbin/altq/altqstat/qdisc_hfsc.c
157
new = tmp;
usr.sbin/altq/altqstat/qdisc_hfsc.c
58
struct hfsc_classstats *sp, *lp, *new, *last, *tmp;
usr.sbin/altq/altqstat/qdisc_hfsc.c
69
new = &stats1[0];
usr.sbin/altq/altqstat/qdisc_hfsc.c
81
get_stats.stats = new;
usr.sbin/altq/altqstat/qdisc_hfsc.c
96
sp = &new[i];
usr.sbin/altq/altqstat/qdisc_jobs.c
100
get_stats.stats = new;
usr.sbin/altq/altqstat/qdisc_jobs.c
112
sp = &new[i];
usr.sbin/altq/altqstat/qdisc_jobs.c
128
(i > 0)?((sp->rout.packets > 0 && (&new[i-1])->rout.packets > 0)?
usr.sbin/altq/altqstat/qdisc_jobs.c
129
(double)(sp->avgdel*(&new[i-1])->rout.packets)/((double)sp->rout.packets*(&new[i-1])->avgdel):0):-1.0,
usr.sbin/altq/altqstat/qdisc_jobs.c
135
(sp->arrivalbusy.bytes == 0 || (&new[i-1])->dropcnt.bytes == 0)?
usr.sbin/altq/altqstat/qdisc_jobs.c
136
0:(double)(sp->dropcnt.bytes*(&new[i-1])->arrivalbusy.bytes)
usr.sbin/altq/altqstat/qdisc_jobs.c
137
/(double)(sp->arrivalbusy.bytes*(&new[i-1])->dropcnt.bytes)):-1.0,
usr.sbin/altq/altqstat/qdisc_jobs.c
167
last = new;
usr.sbin/altq/altqstat/qdisc_jobs.c
168
new = tmp;
usr.sbin/altq/altqstat/qdisc_jobs.c
83
struct class_stats *sp, *lp, *new, *last, *tmp;
usr.sbin/altq/altqstat/qdisc_jobs.c
92
new = &stats1[0];
usr.sbin/altq/altqstat/qdisc_priq.c
114
last = new;
usr.sbin/altq/altqstat/qdisc_priq.c
115
new = tmp;
usr.sbin/altq/altqstat/qdisc_priq.c
55
struct priq_classstats *sp, *lp, *new, *last, *tmp;
usr.sbin/altq/altqstat/qdisc_priq.c
64
new = &stats1[0];
usr.sbin/altq/altqstat/qdisc_priq.c
72
get_stats.stats = new;
usr.sbin/altq/altqstat/qdisc_priq.c
83
sp = &new[i];
usr.sbin/altq/libaltq/qop_hfsc.c
843
struct segment *new, *prev, *s;
usr.sbin/altq/libaltq/qop_hfsc.c
856
if ((new = calloc(1, sizeof(struct segment))) == NULL)
usr.sbin/altq/libaltq/qop_hfsc.c
859
new->x = x;
usr.sbin/altq/libaltq/qop_hfsc.c
861
new->d = 0;
usr.sbin/altq/libaltq/qop_hfsc.c
863
new->d = HUGE_VAL;
usr.sbin/altq/libaltq/qop_hfsc.c
865
new->d = s->x - x;
usr.sbin/altq/libaltq/qop_hfsc.c
868
new->y = 0;
usr.sbin/altq/libaltq/qop_hfsc.c
869
new->m = 0;
usr.sbin/altq/libaltq/qop_hfsc.c
870
LIST_INSERT_HEAD(gsc, new, _next);
usr.sbin/altq/libaltq/qop_hfsc.c
879
new->y = prev->y;
usr.sbin/altq/libaltq/qop_hfsc.c
881
new->y = HUGE_VAL;
usr.sbin/altq/libaltq/qop_hfsc.c
884
new->y = prev->d * prev->m + prev->y;
usr.sbin/altq/libaltq/qop_hfsc.c
886
new->m = prev->m;
usr.sbin/altq/libaltq/qop_hfsc.c
887
LIST_INSERT_AFTER(prev, new, _next);
usr.sbin/altq/libaltq/qop_hfsc.c
889
return (new);
usr.sbin/bad144/bad144.c
116
int i, f, nbad, new, bad, errs, ch;
usr.sbin/bad144/bad144.c
246
new = argc;
usr.sbin/bad144/bad144.c
284
shift(f, nbad, nbad-new);
usr.sbin/bad144/bad144.c
306
for (i = nbad - new; i < nbad; i++)
usr.sbin/bad144/bad144.c
408
shift(int f, int new, int old)
usr.sbin/bad144/bad144.c
416
new--; old--;
usr.sbin/bad144/bad144.c
417
while (new >= 0 && new != old) {
usr.sbin/bad144/bad144.c
419
compare(&curbad.bt_bad[new], &oldbad.bt_bad[old]) > 0) {
usr.sbin/bad144/bad144.c
426
!blkcopy(f, badsn(&curbad.bt_bad[new]), repl - new))
usr.sbin/bad144/bad144.c
427
blkzero(f, repl - new);
usr.sbin/bad144/bad144.c
429
if (blkcopy(f, repl - old, repl - new) == 0)
usr.sbin/bad144/bad144.c
431
(long long)repl-old, (long long)repl-new);
usr.sbin/bad144/bad144.c
434
new--;
usr.sbin/gspa/gspa/gsp_act.c
111
new(o);
usr.sbin/gspa/gspa/gsp_act.c
125
new(o);
usr.sbin/gspa/gspa/gsp_act.c
158
new(x);
usr.sbin/gspa/gspa/gsp_act.c
170
new(x);
usr.sbin/gspa/gspa/gsp_act.c
182
new(x);
usr.sbin/gspa/gspa/gsp_act.c
193
new(x);
usr.sbin/gspa/gspa/gsp_act.c
72
new(o);
usr.sbin/gspa/gspa/gsp_act.c
85
new(o);
usr.sbin/gspa/gspa/gsp_act.c
98
new(o);
usr.sbin/gspa/gspa/gsp_sym.c
145
new(nl);
usr.sbin/gspa/gspa/gspa.c
218
new(p);
usr.sbin/iostat/iostat.c
964
int *new = realloc(order,
usr.sbin/iostat/iostat.c
966
if (new == NULL)
usr.sbin/iostat/iostat.c
969
order = new;
usr.sbin/ip6addrctl/ip6addrctl.c
135
struct policyqueue *new;
usr.sbin/ip6addrctl/ip6addrctl.c
137
if ((new = malloc(sizeof(*new))) == NULL)
usr.sbin/ip6addrctl/ip6addrctl.c
139
new->pc_policy = *pol;
usr.sbin/ip6addrctl/ip6addrctl.c
140
TAILQ_INSERT_TAIL(&policyhead, new, pc_entry);
usr.sbin/ip6addrctl/ip6addrctl.c
210
struct policyqueue *new;
usr.sbin/ip6addrctl/ip6addrctl.c
242
if ((new = malloc(sizeof(*new))) == NULL)
usr.sbin/ip6addrctl/ip6addrctl.c
244
memset(new, 0, sizeof(*new));
usr.sbin/ip6addrctl/ip6addrctl.c
245
new->pc_policy = pol0;
usr.sbin/ip6addrctl/ip6addrctl.c
246
TAILQ_INSERT_TAIL(&policyhead, new, pc_entry);
usr.sbin/moused/moused.c
2234
setmousespeed(int old, int new, unsigned cflag)
usr.sbin/moused/moused.c
2278
switch (new)
usr.sbin/moused/moused.c
457
static void setmousespeed(int old, int new, unsigned cflag);
usr.sbin/mtrace/mtrace.c
1001
n = new->resps + rno;
usr.sbin/mtrace/mtrace.c
1047
print_stats(struct resp_buf *basep, struct resp_buf *prev, struct resp_buf *new)
usr.sbin/mtrace/mtrace.c
1056
struct tr_resp *n = new->resps + rno;
usr.sbin/mtrace/mtrace.c
1058
u_long resptime = new->rtime;
usr.sbin/mtrace/mtrace.c
1070
rtt = t_diff(resptime, new->qtime);
usr.sbin/mtrace/mtrace.c
1126
hop = t_diff(qarrtime, new->qtime);
usr.sbin/mtrace/mtrace.c
1149
struct resp_buf *prev, *new;
usr.sbin/mtrace/mtrace.c
1600
new = &incr[numstats&1];
usr.sbin/mtrace/mtrace.c
161
struct resp_buf *new);
usr.sbin/mtrace/mtrace.c
1610
recvlen = send_recv(tdst, IGMP_MTRACE_QUERY, rno, nqueries, new);
usr.sbin/mtrace/mtrace.c
1617
if (rno != new->len) {
usr.sbin/mtrace/mtrace.c
1627
print_trace(1, new);
usr.sbin/mtrace/mtrace.c
1634
(int)((new->qtime - base.qtime) >> 16));
usr.sbin/mtrace/mtrace.c
1635
fixup_stats(&base, prev, new);
usr.sbin/mtrace/mtrace.c
1636
if (print_stats(&base, prev, new)) {
usr.sbin/mtrace/mtrace.c
1638
print_trace(1, new);
usr.sbin/mtrace/mtrace.c
164
struct resp_buf *new);
usr.sbin/mtrace/mtrace.c
1642
prev = new;
usr.sbin/mtrace/mtrace.c
1643
new = &incr[numstats&1];
usr.sbin/mtrace/mtrace.c
968
fixup_stats(struct resp_buf *basep, struct resp_buf *prev, struct resp_buf *new)
usr.sbin/mtrace/mtrace.c
973
struct tr_resp *n = new->resps + rno;
usr.sbin/mtree/misc.c
185
char **new;
usr.sbin/mtree/misc.c
187
new = (char **)realloc(list->list, (list->count + TAG_CHUNK)
usr.sbin/mtree/misc.c
189
if (new == NULL)
usr.sbin/mtree/misc.c
191
list->list = new;
usr.sbin/mtree/spec.c
487
replacenode(NODE *cur, NODE *new)
usr.sbin/mtree/spec.c
490
#define REPLACE(x) cur->x = new->x
usr.sbin/mtree/spec.c
491
#define REPLACESTR(x) REPLACEPTR(cur->x,new->x)
usr.sbin/mtree/spec.c
493
if (cur->type != new->type) {
usr.sbin/mtree/spec.c
507
nodetype(new->type));
usr.sbin/mtree/spec.c
515
if ((cur->slink = strdup(new->slink)) == NULL)
usr.sbin/mtree/spec.c
517
if (strunvis(cur->slink, new->slink) == -1)
usr.sbin/mtree/spec.c
518
mtree_err("strunvis failed on `%s'", new->slink);
usr.sbin/mtree/spec.c
519
free(new->slink);
usr.sbin/mtree/spec.c
537
free(new);
usr.sbin/sysinst/main.c
402
char **new;
usr.sbin/sysinst/main.c
404
new = realloc(res->lang_msg,
usr.sbin/sysinst/main.c
406
if (!new)
usr.sbin/sysinst/main.c
408
res->lang_msg = new;
usr.sbin/sysinst/main.c
409
new = realloc(res->fnames,
usr.sbin/sysinst/main.c
411
if (!new)
usr.sbin/sysinst/main.c
413
res->fnames = new;
usr.sbin/sysinst/util.c
1770
char *new;
usr.sbin/sysinst/util.c
1774
new = strdup(m->opts[m->cursel].opt_name);
usr.sbin/sysinst/util.c
1775
if (new == NULL)
usr.sbin/sysinst/util.c
1778
tz_selected = new;
usr.sbin/syslogd/syslogd.c
879
logpath_add(char ***lp, int *szp, int *maxszp, const char *new)
usr.sbin/syslogd/syslogd.c
884
DPRINTF(D_FILE, "Adding `%s' to the %p logpath list\n", new, *lp);
usr.sbin/syslogd/syslogd.c
899
if (((*lp)[(*szp)++] = strdup(new)) == NULL) {
usr.sbin/tadpolectl/tadpolectl.c
124
x(readflg, new, num) \
usr.sbin/tadpolectl/tadpolectl.c
125
int readflg, new, num;
usr.sbin/tadpolectl/tadpolectl.c
155
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
157
else if (new > 255)
usr.sbin/tadpolectl/tadpolectl.c
160
req.cmdbuf[2] = new;
usr.sbin/tadpolectl/tadpolectl.c
180
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
203
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
226
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
249
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
272
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
307
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
309
else if (new > 255)
usr.sbin/tadpolectl/tadpolectl.c
312
req.cmdbuf[2] = new;
usr.sbin/tadpolectl/tadpolectl.c
332
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
334
else if (new > 255)
usr.sbin/tadpolectl/tadpolectl.c
337
req.cmdbuf[2] = new;
usr.sbin/tadpolectl/tadpolectl.c
354
req.cmdbuf[1] = new * 256;
usr.sbin/tadpolectl/tadpolectl.c
355
req.cmdbuf[2] = new % 256;
usr.sbin/tadpolectl/tadpolectl.c
370
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
372
else if (new > 255)
usr.sbin/tadpolectl/tadpolectl.c
375
req.cmdbuf[2] = new;
usr.sbin/tadpolectl/tadpolectl.c
395
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
397
else if (new > 255)
usr.sbin/tadpolectl/tadpolectl.c
400
req.cmdbuf[2] = new;
usr.sbin/tadpolectl/tadpolectl.c
420
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
443
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
466
if (new == 0)
usr.sbin/tadpolectl/tadpolectl.c
536
req.cmdbuf[1] = new < 255 ? new : 255;
usr.sbin/tadpolectl/tadpolectl.c
551
req.cmdbuf[1] = new < 255 ? new : 255;
usr.sbin/tadpolectl/tadpolectl.c
656
pwrreq.state = new;
usr.sbin/ypserv/revnetgroup/hash.c
159
struct group_entry *new;
usr.sbin/ypserv/revnetgroup/hash.c
164
new = (struct group_entry *)malloc(sizeof(struct group_entry));
usr.sbin/ypserv/revnetgroup/hash.c
165
new->key = strdup(key);
usr.sbin/ypserv/revnetgroup/hash.c
166
new->data = strdup(data);
usr.sbin/ypserv/revnetgroup/hash.c
167
new->next = table[i];
usr.sbin/ypserv/revnetgroup/hash.c
168
table[i] = new;
usr.sbin/ypserv/revnetgroup/hash.c
189
struct member_entry *cur, *new;
usr.sbin/ypserv/revnetgroup/hash.c
220
new = (struct member_entry *)malloc(sizeof(struct member_entry));
usr.sbin/ypserv/revnetgroup/hash.c
221
new->key = strdup(key);
usr.sbin/ypserv/revnetgroup/hash.c
222
new->domain = strdup(domain);
usr.sbin/ypserv/revnetgroup/hash.c
223
new->groups = tmp;
usr.sbin/ypserv/revnetgroup/hash.c
224
new->next = table[i];
usr.sbin/ypserv/revnetgroup/hash.c
225
table[i] = new;