Symbol: up
bin/csh/misc.c
123
blkcat(Char **up, Char **vp)
bin/csh/misc.c
125
(void)blkcpy(blkend(up), vp);
bin/csh/misc.c
126
return (up);
bin/csh/misc.c
203
blkspl(Char **up, Char **vp)
bin/csh/misc.c
207
wp = xcalloc((size_t)(blklen(up) + blklen(vp) + 1), sizeof(*wp));
bin/csh/misc.c
208
(void)blkcpy(wp, up);
bin/csh/misc.c
82
blkend(Char **up)
bin/csh/misc.c
84
while (*up)
bin/csh/misc.c
85
up++;
bin/csh/misc.c
86
return (up);
bin/ed/io.c
77
undo_t *up = NULL;
bin/ed/io.c
94
if (up)
bin/ed/io.c
95
up->t = lp;
bin/ed/io.c
96
else if ((up = push_undo_stack(UADD, current_addr,
bin/ed/main.c
1056
undo_t *up = NULL;
bin/ed/main.c
1083
} else if (up)
bin/ed/main.c
1084
up->t = get_addressed_line_node(current_addr);
bin/ed/main.c
1085
else if ((up = push_undo_stack(UADD, current_addr,
bin/ed/main.c
1184
undo_t *up = NULL;
bin/ed/main.c
1201
if (up)
bin/ed/main.c
1202
up->t = lp;
bin/ed/main.c
1203
else if ((up = push_undo_stack(UADD, current_addr,
bin/ed/sub.c
125
undo_t *up;
bin/ed/sub.c
140
up = NULL;
bin/ed/sub.c
150
} else if (up)
bin/ed/sub.c
151
up->t = get_addressed_line_node(current_addr);
bin/ed/sub.c
152
else if ((up = push_undo_stack(UADD,
common/lib/libc/rpc/xdr.c
177
xdr_u_int(XDR *xdrs, u_int *up)
common/lib/libc/rpc/xdr.c
182
_DIAGASSERT(up != NULL);
common/lib/libc/rpc/xdr.c
187
l = (u_long) *up;
common/lib/libc/rpc/xdr.c
194
*up = (u_int) l;
common/lib/libppath/ppath.c
918
ppath_get_uint64(prop_object_t o, const ppath_t *p, uint64_t *up)
common/lib/libppath/ppath.c
929
if (up != NULL)
common/lib/libppath/ppath.c
930
*up = prop_number_unsigned_value(v);
games/battlestar/command4.c
239
deposit = location[position].up *
games/battlestar/command6.c
52
position = location[position].up;
games/battlestar/cypher.c
79
if (!moveplayer(location[position].up, AHEAD))
games/hack/hack.do.c
195
boolean up = (newlevel < dlevel);
games/hack/hack.do.c
215
up ? "up" : "down");
games/hack/hack.do.c
251
if (up) {
games/hack/hack.do.c
291
if (uwep != uball && !up /* %% */ && rn2(5)) {
games/sail/pl_7.c
1049
up(&loadpos, NULL);
games/sail/pl_7.c
1234
up(&pickerpos, &pickerscroll);
games/sail/pl_7.c
1559
up(&joinpos, &joinscroll);
games/sail/pl_7.c
1561
up(&startpos, NULL);
games/sail/pl_7.c
1563
up(&optionspos, NULL);
games/sail/pl_7.c
1565
up(&mainpos, NULL);
games/sail/pl_7.c
978
up(&player, NULL);
games/worms/worms.c
213
unsigned long ul, up;
games/worms/worms.c
227
ul = up = 0;
games/worms/worms.c
254
if (up > 1)
games/worms/worms.c
260
up = 1;
games/worms/worms.c
263
if (up == 1 && ul <= 1000)
games/worms/worms.c
265
up += 2;
games/worms/worms.c
271
if ((up & 1) != 0) /* up == 1 || up == 3 */
games/worms/worms.c
318
up = ul = strtoul(optarg, &ep, 10);
games/worms/worms.c
323
up = strtoul(++ep, &ep, 10);
games/worms/worms.c
326
ul < 2 || up < ul || up > 1024) {
games/worms/worms.c
331
maxlength = (int)up;
lib/libc/compat/net/compat_ns_ntoa.c
58
uint8_t *up = addr.x_host.c_host;
lib/libc/compat/net/compat_ns_ntoa.c
59
uint8_t *uplim = up + 6;
lib/libc/compat/net/compat_ns_ntoa.c
65
while (up < uplim && *up==0)
lib/libc/compat/net/compat_ns_ntoa.c
66
up++;
lib/libc/compat/net/compat_ns_ntoa.c
67
if (up == uplim) {
lib/libc/compat/net/compat_ns_ntoa.c
73
sprintf(cp, ".%x", *up++);
lib/libc/compat/net/compat_ns_ntoa.c
74
while (up < uplim) {
lib/libc/compat/net/compat_ns_ntoa.c
76
sprintf(cp, "%02x", *up++);
lib/libc/db/btree/bt_seq.c
379
EPGNO *up;
lib/libc/db/btree/bt_seq.c
386
up = BT_POP(t);
lib/libc/db/btree/bt_seq.c
389
if (up == NULL)
lib/libc/db/btree/bt_seq.c
391
if ((h = mpool_get(t->bt_mp, up->pgno, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
393
idx = up->index;
lib/libc/db/btree/bt_seq.c
418
EPGNO *up;
lib/libc/db/btree/bt_seq.c
425
up = BT_POP(t);
lib/libc/db/btree/bt_seq.c
428
if (up == NULL)
lib/libc/db/btree/bt_seq.c
430
if ((h = mpool_get(t->bt_mp, up->pgno, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
432
idx = up->index;
lib/libc/gdtoa/gethex.c
299
up = 0;
lib/libc/gdtoa/gethex.c
306
up = 1;
lib/libc/gdtoa/gethex.c
309
up = 1 - sign;
lib/libc/gdtoa/gethex.c
312
up = sign;
lib/libc/gdtoa/gethex.c
314
if (up) {
lib/libc/gdtoa/gethex.c
45
int big, esign, havedig, irv, j, k, n, n0, nbits, up, zret;
lib/libc/time/localtime.c
1029
union input_buffer *up;
lib/libc/time/localtime.c
1163
up = &lsp->u.u;
lib/libc/time/localtime.c
1164
nread = read(fid, up->buf, sizeof up->buf);
lib/libc/time/localtime.c
1172
char version = up->tzhead.tzh_version[0];
lib/libc/time/localtime.c
1176
ttisstdcnt = detzcode(up->tzhead.tzh_ttisstdcnt),
lib/libc/time/localtime.c
1177
ttisutcnt = detzcode(up->tzhead.tzh_ttisutcnt),
lib/libc/time/localtime.c
1178
leapcnt = detzcode(up->tzhead.tzh_leapcnt),
lib/libc/time/localtime.c
1179
timecnt = detzcode(up->tzhead.tzh_timecnt),
lib/libc/time/localtime.c
1180
typecnt = detzcode(up->tzhead.tzh_typecnt),
lib/libc/time/localtime.c
1181
charcnt = detzcode(up->tzhead.tzh_charcnt);
lib/libc/time/localtime.c
1182
char const *p = up->buf + tzheadsize;
lib/libc/time/localtime.c
1340
nread -= p - up->buf;
lib/libc/time/localtime.c
1341
memmove(up->buf, p, (size_t)nread);
lib/libc/time/localtime.c
1348
up->buf[0] == '\n' && up->buf[nread - 1] == '\n' &&
lib/libc/time/localtime.c
1352
up->buf[nread - 1] = '\0';
lib/libc/time/localtime.c
1353
if (tzparse(&up->buf[1], ts, sp)) {
lib/libcurses/PSD.doc/appen.C
62
This program demonstrates how to set up a window and output characters to it.
lib/libform/driver.c
71
if (form->fields[idx]->up == NULL)
lib/libform/driver.c
73
idx = form->fields[idx]->up->index;
lib/libform/form.h
227
FIELD *up; /* field above this one */
lib/libform/internals.c
3252
cur->up = NULL;
lib/libform/internals.c
3254
cur->up = above;
lib/libmenu/driver.c
105
drv_new_item = drv_new_item->up;
lib/libmenu/driver.c
139
drv_new_item = drv_new_item->up;
lib/libmenu/driver.c
96
drv_new_item = drv_new_item->up;
lib/libmenu/internals.c
100
item->up = item;
lib/libmenu/internals.c
103
item->up = NULL;
lib/libmenu/internals.c
112
item->up =
lib/libmenu/internals.c
115
item->up = NULL;
lib/libmenu/internals.c
117
item->up = menu->items[item_no - 1];
lib/libmenu/internals.c
142
item->up = menu->items[neighbour];
lib/libmenu/internals.c
144
item->up = NULL;
lib/libmenu/menu.h
97
ITEM *up;
lib/libskey/skeylogin.c
450
u_char hseed[SKEY_MAX_SEED_LEN], flg = 1, *up;
lib/libskey/skeylogin.c
478
if ((up = SHA1Data(username, strlen(username), NULL)) != NULL) {
lib/libskey/skeylogin.c
484
ptr = hash_collapse(up);
lib/libskey/skeylogin.c
485
memset(up, 0, strlen(up));
lib/libskey/skeylogin.c
515
SHA1End(&ctx, up);
lib/libskey/skeylogin.c
522
SHA1Update(&ctx, up, strlen(up));
lib/libskey/skeylogin.c
523
SHA1End(&ctx, up);
lib/libskey/skeylogin.c
525
ptr = hash_collapse(up + 4);
lib/libskey/skeylogin.c
534
ptr = ((up[2] + up[3]) % 99) + 1;
lib/libskey/skeylogin.c
536
memset(up, 0, 20); /* SHA1 specific */
lib/libskey/skeylogin.c
537
free(up);
regress/sys/kern/getcwd/old_getcwd.c
116
if ((up = malloc(upsize = 1024 - 4)) == NULL)
regress/sys/kern/getcwd/old_getcwd.c
118
eup = up + MAXPATHLEN;
regress/sys/kern/getcwd/old_getcwd.c
119
bup = up;
regress/sys/kern/getcwd/old_getcwd.c
120
up[0] = '.';
regress/sys/kern/getcwd/old_getcwd.c
121
up[1] = '\0';
regress/sys/kern/getcwd/old_getcwd.c
133
if (lstat(up, &s))
regress/sys/kern/getcwd/old_getcwd.c
149
free(up);
regress/sys/kern/getcwd/old_getcwd.c
159
if ((up = realloc(up, upsize *= 2)) == NULL)
regress/sys/kern/getcwd/old_getcwd.c
161
bup = up;
regress/sys/kern/getcwd/old_getcwd.c
162
eup = up + upsize;
regress/sys/kern/getcwd/old_getcwd.c
169
if (!(dir = opendir(up)) || fstat(dirfd(dir), &s))
regress/sys/kern/getcwd/old_getcwd.c
208
if (lstat(up, &s)) {
regress/sys/kern/getcwd/old_getcwd.c
260
free(up);
regress/sys/kern/getcwd/old_getcwd.c
88
char *ept, *eup, *up;
sbin/dump_lfs/lfs_inode.c
229
daddr_t residue, up;
sbin/dump_lfs/lfs_inode.c
233
up = UNASSIGNED; /* XXXGCC -Wuninitialized [sh3] */
sbin/dump_lfs/lfs_inode.c
264
up = lfs_dino_getib(fs, idinode, 2);
sbin/dump_lfs/lfs_inode.c
266
if(up == UNASSIGNED || up == LFS_UNUSED_DADDR)
sbin/dump_lfs/lfs_inode.c
269
bread(LFS_FSBTODB(sblock, up), bp, lfs_sb_getbsize(sblock));
sbin/dump_lfs/lfs_inode.c
275
up = -(BASE_DINDIR) - 1;
sbin/dump_lfs/lfs_inode.c
280
up = ((lbn-BASE_TINDIR) / T_UNITS)
sbin/dump_lfs/lfs_inode.c
282
off = (lbn/D_UNITS) - (up/D_UNITS);
sbin/dump_lfs/lfs_inode.c
283
up = -up;
sbin/dump_lfs/lfs_inode.c
293
up = -(((lbn-ULFS_NDADDR) / D_UNITS) * D_UNITS + ULFS_NDADDR);
sbin/dump_lfs/lfs_inode.c
298
up = lfs_bmap(fs,idinode,up);
sbin/dump_lfs/lfs_inode.c
299
if(up == UNASSIGNED || up == LFS_UNUSED_DADDR)
sbin/dump_lfs/lfs_inode.c
301
bread(LFS_FSBTODB(sblock, up), bp, lfs_sb_getbsize(sblock));
sys/arch/alpha/alpha/pmap.c
2930
int prot, *kp, *up;
sys/arch/alpha/alpha/pmap.c
2933
up = protection_codes[1];
sys/arch/alpha/alpha/pmap.c
2937
up[prot] = 0;
sys/arch/alpha/alpha/pmap.c
2941
up[prot] |= PG_KRE | PG_URE;
sys/arch/alpha/alpha/pmap.c
2945
up[prot] |= PG_KWE | PG_UWE;
sys/arch/alpha/alpha/pmap.c
2949
up[prot] |= PG_EXEC | PG_KRE | PG_URE;
sys/arch/alpha/alpha/pmap.c
2952
up[prot] |= PG_FOE;
sys/arch/amiga/dev/ite.c
740
u_char code, up, mask;
sys/arch/amiga/dev/ite.c
743
up = c & 0x80 ? 1 : 0;
sys/arch/amiga/dev/ite.c
752
if (up)
sys/arch/amiga/dev/ite.c
760
if (up) {
sys/arch/amiga/dev/ite.c
835
u_char code, *str, up, mask;
sys/arch/amiga/dev/ite.c
847
up = c & 0x80 ? 1 : 0;
sys/arch/amiga/dev/ite.c
854
if (up)
sys/arch/amiga/dev/ite.c
862
if (up) {
sys/arch/arm/imx/imx51_ipuv3reg.h
294
#define __DI_SW_GEN1(pol_gen_en, auto_reload, clr_sel, down, pol_trig_sel, pol_clr_sel, up) \
sys/arch/arm/imx/imx51_ipuv3reg.h
298
((pol_clr_sel) << 9) | (up))
sys/arch/arm/sociox/if_scx.c
1861
uint32_t up, lo, sz;
sys/arch/arm/sociox/if_scx.c
1864
up = EE_READ(sc, 0x08); /* H->M ucode addr high */
sys/arch/arm/sociox/if_scx.c
1868
addr = ((uint64_t)up << 32) | lo;
sys/arch/arm/sociox/if_scx.c
1874
up = EE_READ(sc, 0x14); /* M->H ucode addr high */
sys/arch/arm/sociox/if_scx.c
1878
addr = ((uint64_t)up << 32) | lo;
sys/arch/atari/dev/ite.c
763
u_char code, up;
sys/arch/atari/dev/ite.c
766
up = KBD_RELEASED(c);
sys/arch/atari/dev/ite.c
776
if (up) {
sys/arch/atari/dev/ite.c
862
u_char code, *str, up;
sys/arch/atari/dev/ite.c
879
up = KBD_RELEASED(c);
sys/arch/atari/dev/ite.c
897
if (up) {
sys/arch/atari/dev/kbd.c
814
uint8_t up, mask;
sys/arch/atari/dev/kbd.c
816
up = KBD_RELEASED(code);
sys/arch/atari/dev/kbd.c
834
if (!up)
sys/arch/atari/dev/kbd.c
839
if (up)
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
424
int key, up;
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
430
up = key & 0x80;
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
438
printf("key %d %s\n", key, up ? "up" : "down");
sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
441
up ? WSCONS_EVENT_KEY_UP : WSCONS_EVENT_KEY_DOWN,
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
166
struct ux_partition *up;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
179
up = vtoc->partition;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
181
for (i = 0; i < vtoc->npartitions; i++, up++, p++) {
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
182
if ((up->nsectors = p->p_size) != 0)
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
183
up->start_sector = p->p_offset - offset;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
185
up->start_sector = 0;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
189
up->tag = VTOC_TAG_BOOT;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
190
up->flags = VTOC_FLAG_UNMOUNT;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
193
up->tag = VTOC_TAG_STAND;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
196
up->tag = VTOC_TAG_SWAP;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
197
up->flags = VTOC_FLAG_UNMOUNT;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
200
up->tag = __VTOC_TAG_BSDFFS;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
204
up->tag = VTOC_TAG_RAWDISK;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
205
up->flags = VTOC_FLAG_UNMOUNT;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
219
struct ux_partition *up;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
234
up = vtoc->partition;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
236
for (i = 0; i < vtoc->npartitions; i++, up++, p++) {
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
238
if ((p->p_size = up->nsectors) != 0)
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
239
p->p_offset = up->start_sector + offset;
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
243
switch (up->tag) {
sys/arch/ews4800mips/ews4800mips/disklabel_conv.c
264
if (up->nsectors != 0)
sys/arch/i386/pci/gcscehci.c
103
struct usb_pci *up;
sys/arch/i386/pci/gcscehci.c
156
TAILQ_FOREACH(up, &ehci_pci_alldevs, next) {
sys/arch/i386/pci/gcscehci.c
157
if (up->bus == pa->pa_bus && up->device == pa->pa_device) {
sys/arch/i386/pci/gcscehci.c
159
device_xname(up->usb)));
sys/arch/i386/pci/gcscehci.c
160
sc->sc.sc_comps[ncomp++] = up->usb;
sys/arch/powerpc/ibm4xx/trap.c
601
const char *up;
sys/arch/powerpc/ibm4xx/trap.c
617
up = (char *)vmaprange(p, (vaddr_t)uaddr, len, VM_PROT_READ);
sys/arch/powerpc/ibm4xx/trap.c
621
ibm4xx_blkcpy(kp, up, len, true);
sys/arch/powerpc/ibm4xx/trap.c
623
memcpy(kp, up, len);
sys/arch/powerpc/ibm4xx/trap.c
628
vunmaprange((vaddr_t)up, len);
sys/arch/powerpc/ibm4xx/trap.c
725
char *up;
sys/arch/powerpc/ibm4xx/trap.c
741
up = (char *)vmaprange(p, (vaddr_t)uaddr, len,
sys/arch/powerpc/ibm4xx/trap.c
746
ibm4xx_blkcpy(up, kp, len, true);
sys/arch/powerpc/ibm4xx/trap.c
748
memcpy(up, kp, len);
sys/arch/powerpc/ibm4xx/trap.c
753
vunmaprange((vaddr_t)up, len);
sys/arch/prep/stand/boot/clock.c
59
mfrtc(u_long *up, u_long *lp)
sys/arch/prep/stand/boot/clock.c
65
: "=r"(*up), "=r"(*lp), "=r"(scratch)
sys/arch/rs6000/stand/boot/clock.c
59
mfrtc(u_long *up, u_long *lp)
sys/arch/rs6000/stand/boot/clock.c
65
: "=r"(*up), "=r"(*lp), "=r"(scratch)
sys/arch/sparc/dev/kbd_pckbport.c
454
int key, up;
sys/arch/sparc/dev/kbd_pckbport.c
492
up = 1;
sys/arch/sparc/dev/kbd_pckbport.c
500
up = 0;
sys/arch/sparc/dev/kbd_pckbport.c
506
key, (up ? "up " : "down"), sunkey));
sys/arch/sparc/dev/kbd_pckbport.c
508
if (up)
sys/arch/x68k/dev/ite.c
615
uint8_t code, up, mask;
sys/arch/x68k/dev/ite.c
618
up = c & 0x80 ? 1 : 0;
sys/arch/x68k/dev/ite.c
662
if (up)
sys/arch/x68k/dev/ite.c
667
if (!up) {
sys/arch/x68k/dev/ite.c
672
} else if (up)
sys/arch/x68k/dev/ite.c
680
if (up) {
sys/arch/x68k/dev/ite.c
737
uint16_t up, mask;
sys/arch/x68k/dev/ite.c
748
up = c & 0x80 ? 1 : 0;
sys/arch/x68k/dev/ite.c
797
if (up) { /* ite got 0xff */
sys/arch/x68k/dev/ite.c
804
if (!up) {
sys/arch/x68k/dev/ite.c
809
} else if (up) {
sys/arch/x68k/dev/ite.c
823
if (up) {
sys/compat/linux/arch/aarch64/linux_syscallargs.h
739
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/aarch64/linux_systrace_args.c
1139
uarg[0] = (intptr_t) SCARG(p, up); /* struct linux_utsname * */
sys/compat/linux/arch/alpha/linux_syscallargs.h
494
syscallarg(struct linux_old_utsname *) up;
sys/compat/linux/arch/alpha/linux_syscallargs.h
678
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/amd64/linux_syscallargs.h
326
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/amd64/linux_systrace_args.c
556
uarg[0] = (intptr_t) SCARG(p, up); /* struct linux_utsname * */
sys/compat/linux/arch/arm/linux_syscallargs.h
191
syscallarg(struct linux_oldold_utsname *) up;
sys/compat/linux/arch/arm/linux_syscallargs.h
387
syscallarg(struct linux_oldutsname *) up;
sys/compat/linux/arch/arm/linux_syscallargs.h
441
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/arm/linux_systrace_args.c
355
uarg[0] = (intptr_t) SCARG(p, up); /* struct linux_oldold_utsname * */
sys/compat/linux/arch/arm/linux_systrace_args.c
724
uarg[0] = (intptr_t) SCARG(p, up); /* struct linux_oldutsname * */
sys/compat/linux/arch/arm/linux_systrace_args.c
799
uarg[0] = (intptr_t) SCARG(p, up); /* struct linux_utsname * */
sys/compat/linux/arch/i386/linux_syscallargs.h
196
syscallarg(struct linux_oldold_utsname *) up;
sys/compat/linux/arch/i386/linux_syscallargs.h
399
syscallarg(struct linux_old_utsname *) up;
sys/compat/linux/arch/i386/linux_syscallargs.h
458
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/i386/linux_systrace_args.c
362
uarg[0] = (intptr_t) SCARG(p, up); /* struct linux_oldold_utsname * */
sys/compat/linux/arch/i386/linux_systrace_args.c
740
uarg[0] = (intptr_t) SCARG(p, up); /* struct linux_old_utsname * */
sys/compat/linux/arch/i386/linux_systrace_args.c
822
uarg[0] = (intptr_t) SCARG(p, up); /* struct linux_utsname * */
sys/compat/linux/arch/m68k/linux_syscallargs.h
438
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/mips/linux_machdep.c
400
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/mips/linux_machdep.c
412
return copyout(&luts, SCARG(uap, up), sizeof(luts));
sys/compat/linux/arch/mips/linux_syscallargs.h
186
syscallarg(struct linux_old_utsname *) up;
sys/compat/linux/arch/mips/linux_syscallargs.h
350
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/mips/linux_syscallargs.h
404
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
186
syscallarg(struct linux_old_utsname *) up;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
362
syscallarg(struct linux_utsname *) up;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
416
syscallarg(struct linux_utsname *) up;
sys/compat/linux/common/linux_misc.c
449
return copyout(&luts, SCARG(uap, up), sizeof(luts));
sys/compat/linux/common/linux_oldolduname.c
69
return copyout(&luts, SCARG(uap, up), sizeof(luts));
sys/compat/linux/common/linux_olduname.c
72
return copyout(&luts, SCARG(uap, up), sizeof(luts));
sys/compat/linux32/arch/aarch64/linux32_syscallargs.h
191
syscallarg(linux32_oldold_utsnamep_t) up;
sys/compat/linux32/arch/aarch64/linux32_syscallargs.h
360
syscallarg(linux32_oldutsnamep_t) up;
sys/compat/linux32/arch/aarch64/linux32_syscallargs.h
414
syscallarg(linux32_utsnamep) up;
sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
355
uarg[0] = (intptr_t) SCARG(p, up).i32; /* linux32_oldold_utsnamep_t */
sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
689
uarg[0] = (intptr_t) SCARG(p, up).i32; /* linux32_oldutsnamep_t */
sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
764
uarg[0] = (intptr_t) SCARG(p, up).i32; /* linux32_utsnamep */
sys/compat/linux32/arch/amd64/linux32_syscallargs.h
196
syscallarg(linux32_oldold_utsnamep_t) up;
sys/compat/linux32/arch/amd64/linux32_syscallargs.h
367
syscallarg(linux32_oldutsnamep_t) up;
sys/compat/linux32/arch/amd64/linux32_syscallargs.h
423
syscallarg(linux32_utsnamep) up;
sys/compat/linux32/arch/amd64/linux32_systrace_args.c
362
uarg[0] = (intptr_t) SCARG(p, up).i32; /* linux32_oldold_utsnamep_t */
sys/compat/linux32/arch/amd64/linux32_systrace_args.c
705
uarg[0] = (intptr_t) SCARG(p, up).i32; /* linux32_oldutsnamep_t */
sys/compat/linux32/arch/amd64/linux32_systrace_args.c
787
uarg[0] = (intptr_t) SCARG(p, up).i32; /* linux32_utsnamep */
sys/compat/linux32/common/linux32_utsname.c
112
return copyout(&luts, SCARG_P32(uap, up), sizeof(luts));
sys/compat/linux32/common/linux32_utsname.c
130
return copyout(&luts, SCARG_P32(uap, up), sizeof(luts));
sys/compat/linux32/common/linux32_utsname.c
92
lp = SCARG_P32(uap, up);
sys/compat/netbsd32/netbsd32_compat_90.c
49
netbsd32_copyout_statvfs90(const void *kp, void *up, size_t len)
sys/compat/netbsd32/netbsd32_compat_90.c
56
error = copyout(sbuf_32, up, sizeof(*sbuf_32));
sys/compat/netbsd32/netbsd32_fs.c
394
netbsd32_copyout_statvfs(const void *kp, void *up, size_t len)
sys/compat/netbsd32/netbsd32_fs.c
401
error = copyout(sbuf_32, up, sizeof(*sbuf_32));
sys/dev/acpi/acpi_display.c
1089
uint8_t max, lo, up;
sys/dev/acpi/acpi_display.c
1104
&lo, &up);
sys/dev/acpi/acpi_display.c
1105
bc->bc_current = up;
sys/dev/acpi/acpi_display.c
1121
uint8_t min, lo, up;
sys/dev/acpi/acpi_display.c
1136
&lo, &up);
sys/dev/acpi/acpi_display.c
1153
uint8_t lo, up;
sys/dev/acpi/acpi_display.c
1168
bc->bc_current + 1, &lo, &up);
sys/dev/acpi/acpi_display.c
1169
bc->bc_current = up;
sys/dev/acpi/acpi_display.c
1440
uint8_t lo, up, level;
sys/dev/acpi/acpi_display.c
1458
acpidisp_array_search(bc->bc_level, bc->bc_level_count, val, &lo, &up);
sys/dev/acpi/acpi_display.c
1459
if ((lo != up) && (val - lo) < (up - val))
sys/dev/acpi/acpi_display.c
1462
level = up;
sys/dev/cardbus/ehci_cardbus.c
134
struct usb_cardbus *up;
sys/dev/cardbus/ehci_cardbus.c
179
TAILQ_FOREACH(up, &ehci_cardbus_alldevs, next) {
sys/dev/cardbus/ehci_cardbus.c
180
if (up->bus == ca->ca_bus) {
sys/dev/cardbus/ehci_cardbus.c
182
device_xname(up->usb)));
sys/dev/cardbus/ehci_cardbus.c
183
sc->sc.sc_comps[ncomp++] = up->usb;
sys/dev/cardbus/ehci_cardbus.c
233
usb_cardbus_add(struct usb_cardbus *up, struct cardbus_attach_args *ca,
sys/dev/cardbus/ehci_cardbus.c
239
TAILQ_INSERT_TAIL(&ehci_cardbus_alldevs, up, next);
sys/dev/cardbus/ehci_cardbus.c
240
up->bus = ca->ca_bus;
sys/dev/cardbus/ehci_cardbus.c
241
up->function = ca->ca_function;
sys/dev/cardbus/ehci_cardbus.c
242
up->usb = bu;
sys/dev/cardbus/ehci_cardbus.c
246
usb_cardbus_rem(struct usb_cardbus *up)
sys/dev/cardbus/ehci_cardbus.c
251
if (up->usb)
sys/dev/cardbus/ehci_cardbus.c
252
TAILQ_REMOVE(&ehci_cardbus_alldevs, up, next);
sys/dev/i2c/fusbtc.c
620
fusbtc_set_cc_pull(struct fusbtc_softc *sc, int pol, int up, int down)
sys/dev/i2c/fusbtc.c
627
if (up) { /* host mode */
sys/dev/i2o/iop.c
1853
void *xferaddr, int xfersize, int out, struct proc *up)
sys/dev/i2o/iop.c
1886
rv = bus_dmamap_load(sc->sc_dmat, dm, xferaddr, xfersize, up,
sys/dev/i2o/iop.c
1887
(up == NULL ? BUS_DMA_NOWAIT : 0));
sys/dev/pci/ehci_pci.c
125
struct usb_pci *up;
sys/dev/pci/ehci_pci.c
248
TAILQ_FOREACH(up, &ehci_pci_alldevs, next) {
sys/dev/pci/ehci_pci.c
249
if (up->bus == pa->pa_bus && up->device == pa->pa_device &&
sys/dev/pci/ehci_pci.c
250
!up->claimed) {
sys/dev/pci/ehci_pci.c
252
device_xname(up->usb)));
sys/dev/pci/ehci_pci.c
253
sc->sc.sc_comps[ncomp++] = up->usb;
sys/dev/pci/ehci_pci.c
254
up->claimed = true;
sys/dev/pci/if_vmx.c
3590
bool up;
sys/dev/pci/if_vmx.c
3592
up = vmxnet3_cmd_link_status(ifp);
sys/dev/pci/if_vmx.c
3593
if (up) {
sys/dev/pci/if_vmx.c
3628
bool up;
sys/dev/pci/if_vmx.c
3633
up = vmxnet3_cmd_link_status(ifp);
sys/dev/pci/if_vmx.c
3634
if (!up)
sys/dev/pci/ixgbe/ixgbe_dcb.c
216
int up;
sys/dev/pci/ixgbe/ixgbe_dcb.c
222
for (*pfc_up = 0, up = 0; up < IXGBE_DCB_MAX_USER_PRIORITY; up++) {
sys/dev/pci/ixgbe/ixgbe_dcb.c
223
if (tc_config[map[up]].pfc != ixgbe_dcb_pfc_disabled)
sys/dev/pci/ixgbe/ixgbe_dcb.c
224
*pfc_up |= 1 << up;
sys/dev/pci/ixgbe/ixgbe_dcb.c
267
u8 ixgbe_dcb_get_tc_from_up(struct ixgbe_dcb_config *cfg, int direction, u8 up)
sys/dev/pci/ixgbe/ixgbe_dcb.c
270
u8 prio_mask = 1 << up;
sys/dev/pci/ixgbe/ixgbe_dcb.c
293
u8 up;
sys/dev/pci/ixgbe/ixgbe_dcb.c
295
for (up = 0; up < IXGBE_DCB_MAX_USER_PRIORITY; up++)
sys/dev/pci/ixgbe/ixgbe_dcb.c
296
map[up] = ixgbe_dcb_get_tc_from_up(cfg, direction, up);
sys/dev/pci/pci_subr.c
4365
pcireg_t up, down;
sys/dev/pci/pci_subr.c
4368
up = (reg >> 4) & 0x0000000f;
sys/dev/pci/pci_subr.c
4372
pci_print_pcie_link_preset_preshoot_deemphasis(up);
sys/dev/pci/pci_subr.c
4413
pci_conf_print_lmr_lcsr(pcireg_t reg, bool up, bool dp)
sys/dev/pci/pci_subr.c
4419
if (up)
sys/dev/pci/pci_subr.c
4442
bool up, dp;
sys/dev/pci/pci_subr.c
4455
up = dp = false;
sys/dev/pci/pci_subr.c
4463
up = true;
sys/dev/pci/pci_subr.c
4484
pci_conf_print_lmr_lcsr(lctl, up, dp);
sys/dev/pci/pci_subr.c
4488
pci_conf_print_lmr_lcsr(lstat, up, dp);
sys/dev/pci/ubsec.c
318
const struct ubsec_product *up;
sys/dev/pci/ubsec.c
320
for (up = ubsec_products; up->ubsec_name != NULL; up++) {
sys/dev/pci/ubsec.c
321
if (PCI_VENDOR(pa->pa_id) == up->ubsec_vendor &&
sys/dev/pci/ubsec.c
322
PCI_PRODUCT(pa->pa_id) == up->ubsec_product)
sys/dev/pci/ubsec.c
323
return (up);
sys/dev/pci/ubsec.c
344
const struct ubsec_product *up;
sys/dev/pci/ubsec.c
356
up = ubsec_lookup(pa);
sys/dev/pci/ubsec.c
357
if (up == NULL) {
sys/dev/pci/ubsec.c
362
pci_aprint_devinfo_fancy(pa, "Crypto processor", up->ubsec_name, 1);
sys/dev/pci/ubsec.c
372
sc->sc_flags = up->ubsec_flags;
sys/dev/pci/ubsec.c
373
sc->sc_statmask = up->ubsec_statmask;
sys/dev/pci/ubsec.c
374
sc->sc_maxaggr = up->ubsec_maxaggr;
sys/dev/pci/usb_pci.c
56
usb_pci_add(struct usb_pci *up, struct pci_attach_args *pa, device_t bu)
sys/dev/pci/usb_pci.c
61
TAILQ_INSERT_TAIL(&ehci_pci_alldevs, up, next);
sys/dev/pci/usb_pci.c
62
up->bus = pa->pa_bus;
sys/dev/pci/usb_pci.c
63
up->device = pa->pa_device;
sys/dev/pci/usb_pci.c
64
up->function = pa->pa_function;
sys/dev/pci/usb_pci.c
65
up->usb = bu;
sys/dev/pci/usb_pci.c
69
usb_pci_rem(struct usb_pci *up)
sys/dev/pci/usb_pci.c
74
if (up->usb)
sys/dev/pci/usb_pci.c
75
TAILQ_REMOVE(&ehci_pci_alldevs, up, next);
sys/dev/usb/slurm.c
325
slurm_si470x_search(struct slurm_softc *sc, int up)
sys/dev/usb/slurm.c
331
powercfg |= up ? SI470X_SEEKUP : 0;
sys/dev/usb/uhub.c
468
struct usbd_port *up = &hub->uh_ports[p - 1];
sys/dev/usb/uhub.c
469
up->up_dev = NULL;
sys/dev/usb/uhub.c
470
up->up_parent = dev;
sys/dev/usb/uhub.c
471
up->up_portno = p;
sys/dev/usb/uhub.c
474
up->up_power = USB_MAX_POWER;
sys/dev/usb/uhub.c
476
up->up_power = USB_MIN_POWER;
sys/dev/usb/uhub.c
477
up->up_restartcnt = 0;
sys/dev/usb/uhub.c
478
up->up_reattach = 0;
sys/dev/usb/uhub.c
480
up->up_tt = &tts[UHUB_IS_SINGLE_TT(sc) ? 0 : p - 1];
sys/dev/usb/uhub.c
481
up->up_tt->utt_hub = hub;
sys/dev/usb/uhub.c
483
up->up_tt = NULL;
sys/dev/usb/uhub.c
534
struct usbd_port *up;
sys/dev/usb/uhub.c
599
up = &dev->ud_hub->uh_ports[port - 1];
sys/dev/usb/uhub.c
602
reconnect = up->up_reattach;
sys/dev/usb/uhub.c
603
up->up_reattach = 0;
sys/dev/usb/uhub.c
609
err = usbd_get_port_status(dev, port, &up->up_status);
sys/dev/usb/uhub.c
615
status = UGETW(up->up_status.wPortStatus);
sys/dev/usb/uhub.c
616
change = UGETW(up->up_status.wPortChange);
sys/dev/usb/uhub.c
625
if (up->up_dev != NULL && up->up_dev->ud_hub != NULL)
sys/dev/usb/uhub.c
626
up->up_dev->ud_hub->uh_explore(up->up_dev);
sys/dev/usb/uhub.c
644
if (up->up_restartcnt) /* no message first time */
sys/dev/usb/uhub.c
649
if (up->up_restartcnt++ < USBD_RESTART_MAX)
sys/dev/usb/uhub.c
689
if (up->up_dev != NULL && up->up_dev->ud_hub != NULL)
sys/dev/usb/uhub.c
690
up->up_dev->ud_hub->uh_explore(up->up_dev);
sys/dev/usb/uhub.c
707
if (up->up_dev != NULL) {
sys/dev/usb/uhub.c
711
device_unit(sc->sc_dev), up->up_dev->ud_addr, port,
sys/dev/usb/uhub.c
715
dev, port, up);
sys/dev/usb/uhub.c
716
usb_disconnect_port(up, sc->sc_dev, DETACH_FORCE);
sys/dev/usb/uhub.c
725
dev, port, up);
sys/dev/usb/uhub.c
726
usb_disconnect_port(up, sc->sc_dev, DETACH_FORCE);
sys/dev/usb/uhub.c
740
if (usbd_reset_port(dev, port, &up->up_status)) {
sys/dev/usb/uhub.c
747
err = usbd_get_port_status(dev, port, &up->up_status);
sys/dev/usb/uhub.c
758
status = UGETW(up->up_status.wPortStatus);
sys/dev/usb/uhub.c
759
change = UGETW(up->up_status.wPortChange);
sys/dev/usb/uhub.c
761
dev, port, up, status, change);
sys/dev/usb/uhub.c
846
dev, port, up, speed);
sys/dev/usb/uhub.c
850
dev->ud_depth + 1, speed, port, up);
sys/dev/usb/uhub.c
874
dev, port, up, speed);
sys/dev/usb/uhub.c
876
up->up_restartcnt = 0;
sys/dev/usb/uhub.c
878
if (up->up_dev->ud_hub)
sys/dev/usb/uhub.c
879
up->up_dev->ud_hub->uh_explore(up->up_dev);
sys/dev/usb/usb_subr.c
1396
int port, struct usbd_port *up)
sys/dev/usb/usb_subr.c
1414
port, up);
sys/dev/usb/usb_subr.c
1455
dev->ud_powersrc = up;
sys/dev/usb/usb_subr.c
1456
dev->ud_myhub = up->up_parent;
sys/dev/usb/usb_subr.c
1458
up->up_dev = dev;
sys/dev/usb/usb_subr.c
1461
for (adev = dev, hub = up->up_parent;
sys/dev/usb/usb_subr.c
1487
usbd_remove_device(dev, up);
sys/dev/usb/usb_subr.c
1502
KASSERT(up->up_parent);
sys/dev/usb/usb_subr.c
1505
usbd_reset_port(up->up_parent, port, &ps);
sys/dev/usb/usb_subr.c
1510
usbd_remove_device(dev, up);
sys/dev/usb/usb_subr.c
1515
if (up->up_parent)
sys/dev/usb/usb_subr.c
1516
usbd_reset_port(up->up_parent, port, &ps);
sys/dev/usb/usb_subr.c
1538
usbd_remove_device(dev, up);
sys/dev/usb/usb_subr.c
1544
usbd_remove_device(dev, up);
sys/dev/usb/usb_subr.c
1557
usbd_remove_device(dev, up);
sys/dev/usb/usb_subr.c
1567
usbd_remove_device(dev, up);
sys/dev/usb/usb_subr.c
1583
usbd_remove_device(dev, up);
sys/dev/usb/usb_subr.c
1591
usbd_remove_device(dev, up);
sys/dev/usb/usb_subr.c
1614
usbd_remove_device(dev, up);
sys/dev/usb/usb_subr.c
1666
usbd_remove_device(struct usbd_device *dev, struct usbd_port *up)
sys/dev/usb/usb_subr.c
1671
(uintptr_t)dev, (uintptr_t)up, 0, 0);
sys/dev/usb/usb_subr.c
1675
up->up_dev = NULL;
sys/dev/usb/usb_subr.c
1895
usb_disconnect_port(struct usbd_port *up, device_t parent, int flags)
sys/dev/usb/usb_subr.c
1897
struct usbd_device *dev = up->up_dev;
sys/dev/usb/usb_subr.c
1905
(uintptr_t)up, (uintptr_t)dev, up->up_portno, 0);
sys/dev/usb/usb_subr.c
1925
if (up->up_portno != 0)
sys/dev/usb/usb_subr.c
1926
printf(" port %d", up->up_portno);
sys/dev/usb/usb_subr.c
1934
up->up_dev = NULL;
sys/dev/usb/xhci.c
2858
int speed, int port, struct usbd_port *up)
sys/dev/usb/xhci.c
2869
port, depth, speed, (uintptr_t)up);
sys/dev/usb/xhci.c
2881
dev->ud_powersrc = up;
sys/dev/usb/xhci.c
2882
dev->ud_myhub = up->up_parent;
sys/dev/usb/xhci.c
2916
up->up_dev = dev;
sys/dev/usb/xhci.c
3065
usbd_remove_device(dev, up);
sys/dev/usb/xhci.c
3702
struct usbd_port *up = dev->ud_powersrc;
sys/dev/usb/xhci.c
3737
for (adev = dev, hub = up->up_parent;
sys/dist/pf/net/if_pfsync.c
1130
struct pfsync_state_upd *up = NULL;
sys/dist/pf/net/if_pfsync.c
1284
up = (void *)((char *)h_net +
sys/dist/pf/net/if_pfsync.c
1285
PFSYNC_HDRLEN + (i * sizeof(*up)));
sys/dist/pf/net/if_pfsync.c
1286
up->updates++;
sys/dist/pf/net/if_pfsync.c
1290
sc->sc_mbuf_net->m_len += sizeof(*up);
sys/dist/pf/net/if_pfsync.c
1291
up = sc->sc_statep_net.u++;
sys/dist/pf/net/if_pfsync.c
1293
memset(up, 0, sizeof(*up));
sys/dist/pf/net/if_pfsync.c
1294
memcpy(up->id, &st->id, sizeof(up->id));
sys/dist/pf/net/if_pfsync.c
1295
up->creatorid = st->creatorid;
sys/dist/pf/net/if_pfsync.c
1297
up->timeout = st->timeout;
sys/dist/pf/net/if_pfsync.c
1298
up->expire = sp->expire;
sys/dist/pf/net/if_pfsync.c
1299
up->src = sp->src;
sys/dist/pf/net/if_pfsync.c
1300
up->dst = sp->dst;
sys/dist/pf/net/if_pfsync.c
1325
pfsync_request_update(struct pfsync_state_upd *up, struct in_addr *src)
sys/dist/pf/net/if_pfsync.c
1357
if (up != NULL) {
sys/dist/pf/net/if_pfsync.c
1358
memcpy(rup->id, up->id, sizeof(rup->id));
sys/dist/pf/net/if_pfsync.c
1359
rup->creatorid = up->creatorid;
sys/dist/pf/net/if_pfsync.c
363
struct pfsync_state_upd *up;
sys/dist/pf/net/if_pfsync.c
644
count * sizeof(*up), &offp)) == NULL) {
sys/dist/pf/net/if_pfsync.c
650
for (i = 0, up = (struct pfsync_state_upd *)(mp->m_data + offp);
sys/dist/pf/net/if_pfsync.c
651
i < count; i++, up++) {
sys/dist/pf/net/if_pfsync.c
653
if (up->timeout >= PFTM_MAX ||
sys/dist/pf/net/if_pfsync.c
654
up->src.state > PF_TCPS_PROXY_DST ||
sys/dist/pf/net/if_pfsync.c
655
up->dst.state > PF_TCPS_PROXY_DST) {
sys/dist/pf/net/if_pfsync.c
664
memcpy(&id_key.id, up->id, sizeof(id_key.id));
sys/dist/pf/net/if_pfsync.c
665
id_key.creatorid = up->creatorid;
sys/dist/pf/net/if_pfsync.c
670
error = pfsync_request_update(up, &src);
sys/dist/pf/net/if_pfsync.c
687
if (st->src.state > up->src.state &&
sys/dist/pf/net/if_pfsync.c
689
up->src.state >= PF_TCPS_PROXY_SRC))
sys/dist/pf/net/if_pfsync.c
691
else if (st->dst.state > up->dst.state)
sys/dist/pf/net/if_pfsync.c
694
ntohl(up->src.seqlo)))
sys/dist/pf/net/if_pfsync.c
697
SEQ_GT(st->dst.seqlo, ntohl(up->dst.seqlo)))
sys/dist/pf/net/if_pfsync.c
704
if (st->src.state > up->src.state)
sys/dist/pf/net/if_pfsync.c
706
else if (st->dst.state > up->dst.state)
sys/dist/pf/net/if_pfsync.c
730
pfsync_alloc_scrub_memory(&up->dst, &st->dst);
sys/dist/pf/net/if_pfsync.c
731
pf_state_peer_ntoh(&up->src, &st->src);
sys/dist/pf/net/if_pfsync.c
732
pf_state_peer_ntoh(&up->dst, &st->dst);
sys/dist/pf/net/if_pfsync.c
733
st->expire = ntohl(up->expire) + time_second;
sys/dist/pf/net/if_pfsync.c
734
st->timeout = up->timeout;
sys/fs/nfs/nlm/nlm_prot_impl.c
1467
char *up;
sys/fs/nfs/nlm/nlm_prot_impl.c
1469
error = copyin(&addrs[2*j], &up,
sys/fs/nfs/nlm/nlm_prot_impl.c
1473
error = copyinstr(up, netid, sizeof(netid),
sys/fs/nfs/nlm/nlm_prot_impl.c
1477
error = copyin(&addrs[2*j+1], &up,
sys/fs/nfs/nlm/nlm_prot_impl.c
1481
error = copyinstr(up, uaddr, sizeof(uaddr),
sys/fs/v7fs/v7fs_datablock.c
521
v7fs_add_leaf(struct v7fs_self *fs, v7fs_daddr_t up, int idx)
sys/fs/v7fs/v7fs_datablock.c
528
if (!up)
sys/fs/v7fs/v7fs_datablock.c
530
if (!datablock_number_sanity(fs, up))
sys/fs/v7fs/v7fs_datablock.c
535
if (!(buf = scratch_read(fs, up)))
sys/fs/v7fs/v7fs_datablock.c
539
if (!fs->io.write(fs->io.cookie, buf, up))
sys/fs/v7fs/v7fs_datablock.c
670
v7fs_remove_self(struct v7fs_self *fs, v7fs_daddr_t up)
sys/fs/v7fs/v7fs_datablock.c
674
if (!datablock_number_sanity(fs, up))
sys/fs/v7fs/v7fs_datablock.c
678
down = v7fs_unlink(fs, up, 0);
sys/fs/v7fs/v7fs_datablock.c
681
v7fs_datablock_deallocate(fs, up);
sys/fs/v7fs/v7fs_datablock.c
687
v7fs_remove_leaf(struct v7fs_self *fs, v7fs_daddr_t up, int n)
sys/fs/v7fs/v7fs_datablock.c
691
if (!datablock_number_sanity(fs, up))
sys/fs/v7fs/v7fs_datablock.c
695
down = v7fs_unlink(fs, up, n);
sys/kern/kern_pax.c
701
struct pax_segvguard_uid_entry *up;
sys/kern/kern_pax.c
706
while ((up = LIST_FIRST(&p->segv_uids)) != NULL) {
sys/kern/kern_pax.c
707
LIST_REMOVE(up, sue_list);
sys/kern/kern_pax.c
708
kmem_free(up, sizeof(*up));
sys/kern/kern_pax.c
724
struct pax_segvguard_uid_entry *up;
sys/kern/kern_pax.c
760
up = kmem_alloc(sizeof(*up), KM_SLEEP);
sys/kern/kern_pax.c
761
up->sue_uid = kauth_cred_getuid(l->l_cred);
sys/kern/kern_pax.c
762
up->sue_ncrashes = 1;
sys/kern/kern_pax.c
763
up->sue_expiry = tv.tv_sec + pax_segvguard_expiry;
sys/kern/kern_pax.c
764
up->sue_suspended = 0;
sys/kern/kern_pax.c
765
LIST_INSERT_HEAD(&p->segv_uids, up, sue_list);
sys/kern/kern_pax.c
775
LIST_FOREACH(up, &p->segv_uids, sue_list) {
sys/kern/kern_pax.c
776
if (up->sue_uid == uid) {
sys/kern/kern_pax.c
787
up = kmem_alloc(sizeof(*up), KM_SLEEP);
sys/kern/kern_pax.c
788
up->sue_uid = uid;
sys/kern/kern_pax.c
789
up->sue_ncrashes = 1;
sys/kern/kern_pax.c
790
up->sue_expiry = tv.tv_sec + pax_segvguard_expiry;
sys/kern/kern_pax.c
791
up->sue_suspended = 0;
sys/kern/kern_pax.c
792
LIST_INSERT_HEAD(&p->segv_uids, up, sue_list);
sys/kern/kern_pax.c
799
if (up->sue_expiry < tv.tv_sec) {
sys/kern/kern_pax.c
802
up->sue_ncrashes = 1;
sys/kern/kern_pax.c
803
up->sue_expiry = tv.tv_sec + pax_segvguard_expiry;
sys/kern/kern_pax.c
804
up->sue_suspended = 0;
sys/kern/kern_pax.c
808
up->sue_ncrashes++;
sys/kern/kern_pax.c
810
if (up->sue_ncrashes >= pax_segvguard_maxcrashes) {
sys/kern/kern_pax.c
814
up->sue_ncrashes);
sys/kern/kern_pax.c
817
up->sue_suspended = tv.tv_sec + pax_segvguard_suspension;
sys/kern/kern_pax.c
818
up->sue_ncrashes = 0;
sys/kern/kern_pax.c
819
up->sue_expiry = 0;
sys/kern/kern_pax.c
823
if (up->sue_suspended > tv.tv_sec) {
sys/kern/kern_resource.c
506
calcru(struct proc *p, struct timeval *up, struct timeval *sp,
sys/kern/kern_resource.c
569
if (up != NULL) {
sys/kern/kern_resource.c
571
up->tv_sec = ut / 1000000;
sys/kern/kern_resource.c
572
up->tv_usec = ut % 1000000;
sys/nfs/nfs_boot.c
204
nfs_boot_ifupdown(struct ifnet *ifp, struct lwp *lwp, int up)
sys/nfs/nfs_boot.c
233
if (up)
sys/nfs/nfs_boot.c
243
if (up)
usr.bin/ftp/ftp.c
1679
uint8_t up[sizeof(data_addr.su_port)];
usr.bin/ftp/ftp.c
1683
memcpy(up, &data_addr.su_port, sizeof(up));
usr.bin/ftp/ftp.c
1693
up[0], up[1]);
usr.bin/rump_dhcpclient/dhcp.c
540
time_t up = uptime() - iface->start_uptime;
usr.bin/rump_dhcpclient/dhcp.c
582
if (up < 0 || up > (time_t)UINT16_MAX)
usr.bin/rump_dhcpclient/dhcp.c
585
dhcp->secs = htons(up);
usr.bin/rusers/rusers.c
145
struct utmpidlearr *up = (struct utmpidlearr *)replyp;
usr.bin/rusers/rusers.c
151
if (!allopt && !up->uia_cnt)
usr.bin/rusers/rusers.c
157
#define HOSTWID (int)sizeof(up->uia_arr[0]->ui_utmp.ut_host)
usr.bin/rusers/rusers.c
158
#define LINEWID (int)sizeof(up->uia_arr[0]->ui_utmp.ut_line)
usr.bin/rusers/rusers.c
159
#define NAMEWID (int)sizeof(up->uia_arr[0]->ui_utmp.ut_name)
usr.bin/rusers/rusers.c
164
for (x = 0; x < up->uia_cnt; x++) {
usr.bin/rusers/rusers.c
173
up->uia_arr[x]->ui_utmp.ut_name);
usr.bin/rusers/rusers.c
179
up->uia_arr[x]->ui_utmp.ut_line);
usr.bin/rusers/rusers.c
181
uttime = up->uia_arr[x]->ui_utmp.ut_time;
usr.bin/rusers/rusers.c
185
minutes = up->uia_arr[x]->ui_idle;
usr.bin/rusers/rusers.c
207
if (up->uia_arr[x]->ui_utmp.ut_host[0] != '\0')
usr.bin/rusers/rusers.c
209
HOSTWID, up->uia_arr[x]->ui_utmp.ut_host);
usr.bin/rusers/rusers.c
214
NAMEWID, NAMEWID, up->uia_arr[x]->ui_utmp.ut_name,
usr.bin/rusers/rusers.c
228
struct utmpidlearr up;
usr.bin/rusers/rusers.c
245
memset((char *)&up, 0, sizeof(up));
usr.bin/rusers/rusers.c
247
xdr_utmpidlearr, &up, timeout);
usr.bin/rusers/rusers.c
252
rusers_reply((char *)&up, &nb, NULL);
usr.bin/rusers/rusers.c
259
struct utmpidlearr up;
usr.bin/rusers/rusers.c
262
memset((char *)&up, 0, sizeof(up));
usr.bin/rusers/rusers.c
265
(xdrproc_t)xdr_utmpidlearr, (char *)&up,
usr.bin/who/utmpentry.c
267
getentry(struct utmpentry *e, struct utmp *up)
usr.bin/who/utmpentry.c
269
COMPILE_ASSERT(sizeof(e->name) > sizeof(up->ut_name));
usr.bin/who/utmpentry.c
270
COMPILE_ASSERT(sizeof(e->line) > sizeof(up->ut_line));
usr.bin/who/utmpentry.c
271
COMPILE_ASSERT(sizeof(e->host) > sizeof(up->ut_host));
usr.bin/who/utmpentry.c
281
memcpy(e->name, up->ut_name, sizeof(up->ut_name));
usr.bin/who/utmpentry.c
282
memcpy(e->line, up->ut_line, sizeof(up->ut_line));
usr.bin/who/utmpentry.c
283
memcpy(e->host, up->ut_host, sizeof(up->ut_host));
usr.bin/who/utmpentry.c
285
e->tv.tv_sec = up->ut_time;
usr.bin/who/utmpentry.c
298
getentryx(struct utmpentry *e, struct utmpx *up)
usr.bin/who/utmpentry.c
300
COMPILE_ASSERT(sizeof(e->name) > sizeof(up->ut_name));
usr.bin/who/utmpentry.c
301
COMPILE_ASSERT(sizeof(e->line) > sizeof(up->ut_line));
usr.bin/who/utmpentry.c
302
COMPILE_ASSERT(sizeof(e->host) > sizeof(up->ut_host));
usr.bin/who/utmpentry.c
312
memcpy(e->name, up->ut_name, sizeof(up->ut_name));
usr.bin/who/utmpentry.c
313
memcpy(e->line, up->ut_line, sizeof(up->ut_line));
usr.bin/who/utmpentry.c
314
memcpy(e->host, up->ut_host, sizeof(up->ut_host));
usr.bin/who/utmpentry.c
316
e->tv = up->ut_tv;
usr.bin/who/utmpentry.c
317
e->pid = up->ut_pid;
usr.bin/who/utmpentry.c
318
e->term = up->ut_exit.e_termination;
usr.bin/who/utmpentry.c
319
e->exit = up->ut_exit.e_exit;
usr.bin/who/utmpentry.c
320
e->sess = up->ut_session;
usr.bin/who/utmpentry.c
321
e->type = up->ut_type;
usr.sbin/ac/ac.c
230
struct utmp_list *up;
usr.sbin/ac/ac.c
232
for (up = head; up; up = up->next)
usr.sbin/ac/ac.c
233
if (is_login_tty(up->usr.ut_line))
usr.sbin/ac/ac.c
246
struct user_list *up;
usr.sbin/ac/ac.c
248
for (up = head; up != NULL; up = up->next) {
usr.sbin/ac/ac.c
249
if (strncmp(up->name, name, sizeof (up->name) - 1) == 0) {
usr.sbin/ac/ac.c
250
up->secs += secs;
usr.sbin/ac/ac.c
261
if ((up = NEW(struct user_list)) == NULL)
usr.sbin/ac/ac.c
263
up->next = head;
usr.sbin/ac/ac.c
264
(void)strlcpy(up->name, name, sizeof (up->name));
usr.sbin/ac/ac.c
265
up->secs = secs;
usr.sbin/ac/ac.c
267
return up;
usr.sbin/ac/ac.c
355
struct user_list *up;
usr.sbin/ac/ac.c
372
for (up = users; up != NULL; up = up->next) {
usr.sbin/ac/ac.c
373
secs += up->secs;
usr.sbin/ac/ac.c
374
up->secs = 0; /* for next day */
usr.sbin/ac/ac.c
386
log_out(struct utmp_list *head, struct utmp *up)
usr.sbin/ac/ac.c
392
if (*up->ut_line == '~' || strncmp(lp->usr.ut_line, up->ut_line,
usr.sbin/ac/ac.c
393
sizeof (up->ut_line)) == 0) {
usr.sbin/ac/ac.c
394
secs = up->ut_time - lp->usr.ut_time;
usr.sbin/ac/ac.c
399
19, ctime(&up->ut_time),
usr.sbin/ac/ac.c
426
log_in(struct utmp_list *head, struct utmp *up)
usr.sbin/ac/ac.c
435
if (!do_tty(up->ut_line))
usr.sbin/ac/ac.c
445
memmove((char *)&lp->usr, (char *)up, sizeof (struct utmp));
usr.sbin/ac/ac.c
449
ctime(&lp->usr.ut_time), sizeof (up->ut_line),
usr.sbin/ac/ac.c
450
up->ut_line, sizeof (up->ut_name), up->ut_name);
usr.sbin/ac/ac.c
451
if (*up->ut_host)
usr.sbin/ac/ac.c
452
printf(" (%-.*s)", sizeof (up->ut_host), up->ut_host);
usr.sbin/lpr/lpc/cmdtab.c
77
{ "up", uphelp, up, 1 },
usr.sbin/lpr/lpc/extern.h
52
void up(int, char **);
usr.sbin/traceroute/traceroute.c
1448
struct udphdr *up;
usr.sbin/traceroute/traceroute.c
1471
up = (struct udphdr *)((u_char *)hip + hlen);
usr.sbin/traceroute/traceroute.c
1475
up->uh_sport == htons(ident) &&
usr.sbin/traceroute/traceroute.c
1476
up->uh_dport == htons(port + seq))
usr.sbin/traceroute6/traceroute6.c
976
struct udphdr *up;
usr.sbin/traceroute6/traceroute6.c
979
if ((up = get_udphdr(hip, (u_char *)(buf + cc))) == NULL) {
usr.sbin/traceroute6/traceroute6.c
985
((struct icmp6_hdr *)up)->icmp6_id == ident &&
usr.sbin/traceroute6/traceroute6.c
986
((struct icmp6_hdr *)up)->icmp6_seq == htons(seq))
usr.sbin/traceroute6/traceroute6.c
989
up->uh_sport == htons(srcport) &&
usr.sbin/traceroute6/traceroute6.c
990
up->uh_dport == htons(port + seq))
usr.sbin/user/user.c
1066
adduser(char *login_name, user_t *up)
usr.sbin/user/user.c
1082
if (!valid_login(login_name, up->u_allow_samba)) {
usr.sbin/user/user.c
1086
if (!valid_class(up->u_class)) {
usr.sbin/user/user.c
1088
login_name, up->u_class);
usr.sbin/user/user.c
1120
sync_uid_gid = (strcmp(up->u_primgrp, "=uid") == 0);
usr.sbin/user/user.c
1121
if (up->u_uid == -1) {
usr.sbin/user/user.c
1128
for (i = up->u_defrc; !got_id && i < up->u_rc ; i++) {
usr.sbin/user/user.c
1129
got_id = getnextuid(sync_uid_gid, &up->u_uid,
usr.sbin/user/user.c
1130
up->u_rv[i].r_from, up->u_rv[i].r_to);
usr.sbin/user/user.c
1137
for (i = 0; !got_id && i < up->u_defrc; i++) {
usr.sbin/user/user.c
1138
got_id = getnextuid(sync_uid_gid, &up->u_uid,
usr.sbin/user/user.c
1139
up->u_rv[i].r_from, up->u_rv[i].r_to);
usr.sbin/user/user.c
1146
up->u_uid);
usr.sbin/user/user.c
1150
if (!(up->u_flags & F_DUPUID) && getpwuid((uid_t)(up->u_uid)) != NULL) {
usr.sbin/user/user.c
1154
"uid %d is already in use", login_name, up->u_uid);
usr.sbin/user/user.c
1158
if (getgrgid((gid_t)(up->u_uid)) != NULL) {
usr.sbin/user/user.c
1163
up->u_uid);
usr.sbin/user/user.c
1165
gid = up->u_uid;
usr.sbin/user/user.c
1166
} else if ((grp = getgrnam(up->u_primgrp)) != NULL) {
usr.sbin/user/user.c
1168
} else if (is_number(up->u_primgrp) &&
usr.sbin/user/user.c
1169
(grp = getgrgid((gid_t)atoi(up->u_primgrp))) != NULL) {
usr.sbin/user/user.c
1175
login_name, up->u_primgrp);
usr.sbin/user/user.c
1178
if (!(up->u_flags & F_DUPUID) && getpwnam(login_name) != NULL) {
usr.sbin/user/user.c
1184
if (up->u_flags & F_HOMEDIR) {
usr.sbin/user/user.c
1185
(void)strlcpy(home, up->u_home, sizeof(home));
usr.sbin/user/user.c
1188
(void)snprintf(home, sizeof(home), "%s/%s", up->u_basedir,
usr.sbin/user/user.c
1191
if (up->u_flags & F_SHELL) {
usr.sbin/user/user.c
1193
if (!valid_shell(up->u_shell)) {
usr.sbin/user/user.c
1200
login_name, up->u_shell);
usr.sbin/user/user.c
1205
if (!scantime(&inactive, up->u_inactive)) {
usr.sbin/user/user.c
1207
up->u_inactive);
usr.sbin/user/user.c
1209
if (!scantime(&expire, up->u_expire) || expire == -1) {
usr.sbin/user/user.c
1211
up->u_expire);
usr.sbin/user/user.c
1214
if (lstat(home, &st) < 0 && !(up->u_flags & F_MKDIR)) {
usr.sbin/user/user.c
1219
if (up->u_password != NULL && valid_password_length(up->u_password)) {
usr.sbin/user/user.c
1220
(void)strlcpy(password, up->u_password, sizeof(password));
usr.sbin/user/user.c
1224
if (up->u_password != NULL) {
usr.sbin/user/user.c
1226
up->u_password, password);
usr.sbin/user/user.c
1232
up->u_uid,
usr.sbin/user/user.c
1235
up->u_class,
usr.sbin/user/user.c
1241
up->u_comment,
usr.sbin/user/user.c
1243
up->u_shell);
usr.sbin/user/user.c
1252
if (up->u_flags & F_MKDIR) {
usr.sbin/user/user.c
1266
(void)copydotfiles(up->u_skeldir, up->u_uid, gid, home,
usr.sbin/user/user.c
1267
up->u_homeperm);
usr.sbin/user/user.c
1270
if (strcmp(up->u_primgrp, "=uid") == 0 &&
usr.sbin/user/user.c
1278
if (up->u_groupc > 0 &&
usr.sbin/user/user.c
1279
!append_group(login_name, up->u_groupc, up->u_groupv)) {
usr.sbin/user/user.c
1297
"shell=%s", login_name, up->u_uid, gid, home, up->u_shell);
usr.sbin/user/user.c
1419
moduser(char *login_name, char *newlogin, user_t *up, int allow_samba)
usr.sbin/user/user.c
1478
if (up != NULL) {
usr.sbin/user/user.c
1479
if (up->u_flags & F_USERNAME) {
usr.sbin/user/user.c
1498
if (up->u_flags & F_MKDIR) {
usr.sbin/user/user.c
1500
up->u_basedir, newlogin);
usr.sbin/user/user.c
1504
if (up->u_flags & F_PASSWORD) {
usr.sbin/user/user.c
1505
if (up->u_password != NULL) {
usr.sbin/user/user.c
1506
if (!valid_password_length(up->u_password)) {
usr.sbin/user/user.c
1512
login_name, up->u_password);
usr.sbin/user/user.c
1521
LOCKED, up->u_password) == -1) {
usr.sbin/user/user.c
1531
pwp->pw_passwd = up->u_password;
usr.sbin/user/user.c
1537
if (up->u_locked == LOCK) {
usr.sbin/user/user.c
1553
} else if (up->u_locked == UNLOCK) {
usr.sbin/user/user.c
1563
if (up->u_flags & F_UID) {
usr.sbin/user/user.c
1565
if (!(up->u_flags & F_DUPUID) &&
usr.sbin/user/user.c
1566
getpwuid((uid_t)(up->u_uid)) != NULL) {
usr.sbin/user/user.c
1571
up->u_uid);
usr.sbin/user/user.c
1573
pwp->pw_uid = up->u_uid;
usr.sbin/user/user.c
1575
if (up->u_flags & F_GROUP) {
usr.sbin/user/user.c
1577
if (strcmp(up->u_primgrp, "=uid") == 0) {
usr.sbin/user/user.c
1591
up->u_uid);
usr.sbin/user/user.c
1593
} else if ((grp = getgrnam(up->u_primgrp)) != NULL) {
usr.sbin/user/user.c
1595
} else if (is_number(up->u_primgrp) &&
usr.sbin/user/user.c
1597
(gid_t)atoi(up->u_primgrp))) != NULL) {
usr.sbin/user/user.c
1604
up->u_primgrp);
usr.sbin/user/user.c
1607
if (up->u_flags & F_INACTIVE) {
usr.sbin/user/user.c
1608
if (!scantime(&pwp->pw_change, up->u_inactive)) {
usr.sbin/user/user.c
1611
up->u_inactive);
usr.sbin/user/user.c
1614
if (up->u_flags & F_EXPIRE) {
usr.sbin/user/user.c
1615
if (!scantime(&pwp->pw_expire, up->u_expire) ||
usr.sbin/user/user.c
1619
up->u_expire);
usr.sbin/user/user.c
1623
if (up->u_flags & F_COMMENT) {
usr.sbin/user/user.c
1624
pwp->pw_gecos = up->u_comment;
usr.sbin/user/user.c
1626
if (up->u_flags & F_HOMEDIR) {
usr.sbin/user/user.c
1627
pwp->pw_dir = up->u_home;
usr.sbin/user/user.c
1629
if (up->u_flags & F_SHELL) {
usr.sbin/user/user.c
1631
if (!valid_shell(up->u_shell)) {
usr.sbin/user/user.c
1638
login_name, up->u_shell);
usr.sbin/user/user.c
1640
pwp->pw_shell = up->u_shell;
usr.sbin/user/user.c
1642
pwp->pw_shell = up->u_shell;
usr.sbin/user/user.c
1646
if (up->u_flags & F_CLASS) {
usr.sbin/user/user.c
1647
if (!valid_class(up->u_class)) {
usr.sbin/user/user.c
1652
up->u_class);
usr.sbin/user/user.c
1654
pwp->pw_class = up->u_class;
usr.sbin/user/user.c
1666
if (up != NULL) {
usr.sbin/user/user.c
1706
if (up != NULL) {
usr.sbin/user/user.c
1707
if ((up->u_flags & F_MKDIR) &&
usr.sbin/user/user.c
1715
if (up->u_groupc > 0 &&
usr.sbin/user/user.c
1716
!append_group(newlogin, up->u_groupc, up->u_groupv)) {
usr.sbin/user/user.c
1727
if (up != NULL && strcmp(login_name, newlogin) == 0) {
usr.sbin/user/user.c
1740
if (up == NULL) {
usr.sbin/user/user.c
1851
user_t *up = &def.user;
usr.sbin/user/user.c
1860
up->u_uid = -1;
usr.sbin/user/user.c
1875
memsave(&up->u_inactive, "-1", strlen("-1"));
usr.sbin/user/user.c
1878
while (up->u_groupc < NGROUPS_MAX &&
usr.sbin/user/user.c
1879
(up->u_groupv[up->u_groupc] = strsep(&optarg, ",")) != NULL) {
usr.sbin/user/user.c
1880
if (up->u_groupv[up->u_groupc][0] != 0) {
usr.sbin/user/user.c
1881
up->u_groupc++;
usr.sbin/user/user.c
1891
up->u_allow_samba = 1;
usr.sbin/user/user.c
1896
memsave(&up->u_basedir, optarg, strlen(optarg));
usr.sbin/user/user.c
1899
memsave(&up->u_comment, optarg, strlen(optarg));
usr.sbin/user/user.c
1902
memsave(&up->u_home, optarg, strlen(optarg));
usr.sbin/user/user.c
1903
up->u_flags |= F_HOMEDIR;
usr.sbin/user/user.c
1907
memsave(&up->u_expire, optarg, strlen(optarg));
usr.sbin/user/user.c
1911
memsave(&up->u_inactive, optarg, strlen(optarg));
usr.sbin/user/user.c
1915
memsave(&up->u_primgrp, optarg, strlen(optarg));
usr.sbin/user/user.c
1919
memsave(&up->u_skeldir, optarg, strlen(optarg));
usr.sbin/user/user.c
1924
memsave(&up->u_class, optarg, strlen(optarg));
usr.sbin/user/user.c
1928
up->u_flags |= F_MKDIR;
usr.sbin/user/user.c
1933
up->u_homeperm = strtoul(optarg, NULL, 8);
usr.sbin/user/user.c
1937
up->u_flags |= F_DUPUID;
usr.sbin/user/user.c
1941
memsave(&up->u_password, optarg, strlen(optarg));
usr.sbin/user/user.c
1947
(void)save_range(&up->u_r, optarg);
usr.sbin/user/user.c
1951
up->u_flags |= F_SHELL;
usr.sbin/user/user.c
1953
memsave(&up->u_shell, optarg, strlen(optarg));
usr.sbin/user/user.c
1956
up->u_uid = check_numeric(optarg, "uid");
usr.sbin/user/user.c
1971
return setdefaults(up) ? EXIT_SUCCESS : EXIT_FAILURE;
usr.sbin/user/user.c
1973
(void)printf("group\t\t%s\n", up->u_primgrp);
usr.sbin/user/user.c
1974
(void)printf("base_dir\t%s\n", up->u_basedir);
usr.sbin/user/user.c
1975
(void)printf("skel_dir\t%s\n", up->u_skeldir);
usr.sbin/user/user.c
1976
(void)printf("shell\t\t%s\n", up->u_shell);
usr.sbin/user/user.c
1978
(void)printf("class\t\t%s\n", up->u_class);
usr.sbin/user/user.c
1979
(void)printf("homeperm\t0%o\n", up->u_homeperm);
usr.sbin/user/user.c
1981
(void)printf("inactive\t%s\n", (up->u_inactive == NULL) ?
usr.sbin/user/user.c
1982
UNSET_INACTIVE : up->u_inactive);
usr.sbin/user/user.c
1983
(void)printf("expire\t\t%s\n", (up->u_expire == NULL) ?
usr.sbin/user/user.c
1984
UNSET_EXPIRY : up->u_expire);
usr.sbin/user/user.c
1986
for (i = 0 ; i < up->u_rc ; i++) {
usr.sbin/user/user.c
1988
up->u_rv[i].r_from, up->u_rv[i].r_to);
usr.sbin/user/user.c
2000
return adduser(*argv, up) ? EXIT_SUCCESS : EXIT_FAILURE;
usr.sbin/user/user.c
2013
user_t *up = &def.user;
usr.sbin/user/user.c
2020
up->u_locked = -1;
usr.sbin/user/user.c
2025
while (up->u_groupc < NGROUPS_MAX &&
usr.sbin/user/user.c
2026
(up->u_groupv[up->u_groupc] =
usr.sbin/user/user.c
2028
if (up->u_groupv[up->u_groupc][0] != 0) {
usr.sbin/user/user.c
2029
up->u_groupc++;
usr.sbin/user/user.c
2036
up->u_flags |= F_SECGROUP;
usr.sbin/user/user.c
2040
up->u_allow_samba = 1;
usr.sbin/user/user.c
2044
memsave(&up->u_comment, optarg, strlen(optarg));
usr.sbin/user/user.c
2045
up->u_flags |= F_COMMENT;
usr.sbin/user/user.c
2049
up->u_locked = LOCK;
usr.sbin/user/user.c
2051
up->u_locked = UNLOCK;
usr.sbin/user/user.c
2059
memsave(&up->u_inactive, "-1", strlen("-1"));
usr.sbin/user/user.c
2060
up->u_flags |= F_INACTIVE;
usr.sbin/user/user.c
2063
memsave(&up->u_home, optarg, strlen(optarg));
usr.sbin/user/user.c
2064
up->u_flags |= F_HOMEDIR;
usr.sbin/user/user.c
2067
memsave(&up->u_expire, optarg, strlen(optarg));
usr.sbin/user/user.c
2068
up->u_flags |= F_EXPIRE;
usr.sbin/user/user.c
2071
memsave(&up->u_inactive, optarg, strlen(optarg));
usr.sbin/user/user.c
2072
up->u_flags |= F_INACTIVE;
usr.sbin/user/user.c
2075
memsave(&up->u_primgrp, optarg, strlen(optarg));
usr.sbin/user/user.c
2076
up->u_flags |= F_GROUP;
usr.sbin/user/user.c
2081
up->u_flags |= F_USERNAME;
usr.sbin/user/user.c
2085
memsave(&up->u_class, optarg, strlen(optarg));
usr.sbin/user/user.c
2086
up->u_flags |= F_CLASS;
usr.sbin/user/user.c
2090
up->u_flags |= F_MKDIR;
usr.sbin/user/user.c
2093
up->u_flags |= F_DUPUID;
usr.sbin/user/user.c
2097
memsave(&up->u_password, optarg, strlen(optarg));
usr.sbin/user/user.c
2098
up->u_flags |= F_PASSWORD;
usr.sbin/user/user.c
2102
memsave(&up->u_shell, optarg, strlen(optarg));
usr.sbin/user/user.c
2103
up->u_flags |= F_SHELL;
usr.sbin/user/user.c
2106
up->u_uid = check_numeric(optarg, "uid");
usr.sbin/user/user.c
2107
up->u_flags |= F_UID;
usr.sbin/user/user.c
2119
if ((up->u_flags & F_MKDIR) && !(up->u_flags & F_HOMEDIR) &&
usr.sbin/user/user.c
2120
!(up->u_flags & F_USERNAME)) {
usr.sbin/user/user.c
2122
up->u_flags &= ~F_MKDIR;
usr.sbin/user/user.c
2131
return moduser(*argv, (have_new_user) ? newuser : *argv, up,
usr.sbin/user/user.c
2132
up->u_allow_samba) ? EXIT_SUCCESS : EXIT_FAILURE;
usr.sbin/user/user.c
2146
user_t *up = &def.user;
usr.sbin/user/user.c
2164
up->u_allow_samba = 1;
usr.sbin/user/user.c
2170
up->u_preserve = (strcmp(optarg, "true") == 0) ? 1 :
usr.sbin/user/user.c
2192
return setdefaults(up) ? EXIT_SUCCESS : EXIT_FAILURE;
usr.sbin/user/user.c
2194
(void)printf("preserve\t%s\n", (up->u_preserve) ? "true" :
usr.sbin/user/user.c
2212
if (up->u_preserve) {
usr.sbin/user/user.c
2213
up->u_flags |= F_SHELL;
usr.sbin/user/user.c
2214
memsave(&up->u_shell, _PATH_SBIN_NOLOGIN,
usr.sbin/user/user.c
2218
memsave(&up->u_password, password, strlen(password));
usr.sbin/user/user.c
2219
up->u_flags |= F_PASSWORD;
usr.sbin/user/user.c
2221
return moduser(*argv, *argv, up, up->u_allow_samba) ?
usr.sbin/user/user.c
2228
return moduser(*argv, *argv, NULL, up->u_allow_samba) ?
usr.sbin/user/user.c
735
setdefaults(user_t *up)
usr.sbin/user/user.c
758
if (fprintf(fp, "group\t\t%s\n", up->u_primgrp) <= 0 ||
usr.sbin/user/user.c
759
fprintf(fp, "base_dir\t%s\n", up->u_basedir) <= 0 ||
usr.sbin/user/user.c
760
fprintf(fp, "skel_dir\t%s\n", up->u_skeldir) <= 0 ||
usr.sbin/user/user.c
761
fprintf(fp, "shell\t\t%s\n", up->u_shell) <= 0 ||
usr.sbin/user/user.c
763
fprintf(fp, "class\t\t%s\n", up->u_class) <= 0 ||
usr.sbin/user/user.c
764
fprintf(fp, "homeperm\t0%o\n", up->u_homeperm) <= 0 ||
usr.sbin/user/user.c
766
fprintf(fp, "inactive\t%s\n", (up->u_inactive == NULL) ?
usr.sbin/user/user.c
767
UNSET_INACTIVE : up->u_inactive) <= 0 ||
usr.sbin/user/user.c
768
fprintf(fp, "expire\t\t%s\n", (up->u_expire == NULL) ?
usr.sbin/user/user.c
769
UNSET_EXPIRY : up->u_expire) <= 0 ||
usr.sbin/user/user.c
770
fprintf(fp, "preserve\t%s\n", (up->u_preserve == 0) ?
usr.sbin/user/user.c
776
for (i = (up->u_defrc != up->u_rc) ? up->u_defrc : 0;
usr.sbin/user/user.c
777
i < up->u_rc ; i++) {
usr.sbin/user/user.c
778
if (fprintf(fp, "range\t\t%d..%d\n", up->u_rv[i].r_from,
usr.sbin/user/user.c
779
up->u_rv[i].r_to) <= 0) {
usr.sbin/user/user.c
804
user_t *up = &dp->user;
usr.sbin/user/user.c
809
memsave(&up->u_primgrp, DEF_GROUP, strlen(DEF_GROUP));
usr.sbin/user/user.c
810
memsave(&up->u_basedir, DEF_BASEDIR, strlen(DEF_BASEDIR));
usr.sbin/user/user.c
811
memsave(&up->u_skeldir, DEF_SKELDIR, strlen(DEF_SKELDIR));
usr.sbin/user/user.c
812
memsave(&up->u_shell, DEF_SHELL, strlen(DEF_SHELL));
usr.sbin/user/user.c
813
memsave(&up->u_comment, DEF_COMMENT, strlen(DEF_COMMENT));
usr.sbin/user/user.c
815
memsave(&up->u_class, DEF_CLASS, strlen(DEF_CLASS));
usr.sbin/user/user.c
817
up->u_rsize = 16;
usr.sbin/user/user.c
818
up->u_defrc = 0;
usr.sbin/user/user.c
819
NEWARRAY(range_t, up->u_rv, up->u_rsize, exit(1));
usr.sbin/user/user.c
820
up->u_inactive = DEF_INACTIVE;
usr.sbin/user/user.c
821
up->u_expire = DEF_EXPIRE;
usr.sbin/user/user.c
822
up->u_homeperm = DEF_HOMEPERM;
usr.sbin/user/user.c
827
if (stat(_PATH_USERMGMT_CONF, &st) < 0 && !setdefaults(up)) {
usr.sbin/user/user.c
837
memsave(&up->u_primgrp, (char *)cp, strlen(cp));
usr.sbin/user/user.c
840
memsave(&up->u_basedir, (char *)cp, strlen(cp));
usr.sbin/user/user.c
843
memsave(&up->u_skeldir, (char *)cp, strlen(cp));
usr.sbin/user/user.c
846
memsave(&up->u_shell, cp, strlen(cp));
usr.sbin/user/user.c
850
memsave(&up->u_class, cp, strlen(cp));
usr.sbin/user/user.c
857
up->u_homeperm = strtoul(cp, NULL, 8);
usr.sbin/user/user.c
862
if (up->u_inactive) {
usr.sbin/user/user.c
863
FREE(up->u_inactive);
usr.sbin/user/user.c
865
up->u_inactive = NULL;
usr.sbin/user/user.c
867
memsave(&up->u_inactive, cp, strlen(cp));
usr.sbin/user/user.c
872
(void)save_range(&up->u_r, cp);
usr.sbin/user/user.c
877
up->u_preserve =
usr.sbin/user/user.c
884
if (up->u_expire) {
usr.sbin/user/user.c
885
FREE(up->u_expire);
usr.sbin/user/user.c
887
up->u_expire = NULL;
usr.sbin/user/user.c
889
memsave(&up->u_expire, cp, strlen(cp));
usr.sbin/user/user.c
901
if (up->u_rc == 0) {
usr.sbin/user/user.c
902
up->u_rv[up->u_rc].r_from = DEF_LOWUID;
usr.sbin/user/user.c
903
up->u_rv[up->u_rc].r_to = DEF_HIGHUID;
usr.sbin/user/user.c
904
up->u_rc += 1;
usr.sbin/user/user.c
906
up->u_defrc = up->u_rc;