HomeSort by: relevance | last modified time | path
    Searched refs:pbuf (Results 1 - 25 of 100) sorted by relevancy

1 2 3 4

  /src/sbin/mount_portal/
pt_file.c 134 char pbuf[MAXPATHLEN]; local in function:portal_file
139 pbuf[0] = '/';
140 strlcpy(pbuf + 1, key + (v[1] ? strlen(v[1]) : 0), sizeof(pbuf) - 1);
142 pbuf, pcr->pcr_uid, pcr->pcr_gid);
154 fd = open(pbuf, O_RDWR | O_CREAT, 0666);
160 "Trying read-only open...", pbuf);
162 fd = open(pbuf, O_RDONLY, 0);
171 DEBUG_SYSLOG(LOG_DEBUG, "Error: could not open '%s': %m", pbuf);
  /src/sys/dev/
md_root.c 100 char pbuf[PBUFLEN]; local in function:md_attach_hook
107 format_bytes(pbuf, sizeof(pbuf), md->md_size);
108 aprint_verbose("md%d: internal %s image area\n", unit, pbuf);
  /src/distrib/utils/more/
command.c 157 char pbuf[40]; local in function:prompt
184 (void)snprintf(pbuf, sizeof(pbuf), " file %d/%d",
186 putstr(pbuf);
189 (void)snprintf(pbuf, sizeof(pbuf), " line %d",
191 putstr(pbuf);
194 (void)snprintf(pbuf, sizeof(pbuf), " byte %lld",
196 putstr(pbuf);
    [all...]
  /src/sbin/iscsictl/
iscsic_main.c 399 int *pbuf; local in function:get_response
401 pbuf = (int *)(void *)buf;
402 rsp = (iscsid_response_t *)(void *)&pbuf[1];
403 *pbuf = 0;
421 if (NULL == (pbuf = (int *) malloc(len + sizeof(int))))
425 rsp = (iscsid_response_t *)(void *)&pbuf[1];
426 *pbuf = 1;
451 int *pbuf; local in function:free_response
453 pbuf = ((int *)(void *)rsp) - 1;
454 if (*pbuf)
    [all...]
  /src/usr.sbin/makefs/
msdos.c 222 char pbuf[MAXPATHLEN]; local in function:msdos_populate_dir
229 if ((size_t)snprintf(pbuf, sizeof(pbuf), "%s/%s/%s",
230 cur->root, cur->path, cur->name) >= sizeof(pbuf)) {
231 warnx("path %s too long", pbuf);
251 if ((de = msdosfs_mkdire(pbuf, dir, cur)) == NULL) {
252 warn("msdosfs_mkdire %s", pbuf);
255 if (msdos_populate_dir(pbuf, de, cur->child, cur,
257 warn("msdos_populate_dir %s", pbuf);
266 if (msdosfs_mkfile(pbuf, dir, cur) == NULL)
    [all...]
  /src/sys/arch/evbppc/virtex/
machdep.c 158 char pbuf[9]; local in function:cpu_startup
167 format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
168 printf("total memory = %s\n", pbuf);
183 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false)));
184 printf("avail memory = %s\n", pbuf);
  /src/games/hack/
hack.topl.c 215 char pbuf[BUFSZ]; local in function:vpline
216 char *bp = pbuf, *tl;
222 (void) strlcpy(pbuf, line, sizeof(pbuf));
224 (void) vsnprintf(pbuf, sizeof(pbuf), line, ap);
225 if (flags.toplin == 1 && !strcmp(pbuf, toplines))
  /src/lib/libskey/
skeylogin.c 446 char pbuf[SKEY_MAX_PW_LEN+1], skeyprompt[SKEY_MAX_CHALLENGE+1]; local in function:skey_authenticate
467 if (gethostname(pbuf, sizeof(pbuf)) == -1)
468 *(p = pbuf) = '.';
470 for (p = pbuf; *p && isalnum((u_char) *p); p++)
473 if (*p && pbuf - p < 4)
474 (void)strncpy(p, "asjd", 4 - (pbuf - p));
475 pbuf[4] = '\0';
528 pbuf[i] = (ptr % 10) + '0';
531 pbuf[i] = '\0'
    [all...]
  /src/sys/compat/netbsd32/
netbsd32_execve.c 121 char *pbuf = NULL, **pathp = NULL, *pathp32 = NULL; local in function:netbsd32_posix_spawn_fa_alloc
149 pbuf = PNBUF_GET();
161 error = copyinstr(pathp32, pbuf, MAXPATHLEN, &slen);
165 memcpy(*pathp, pbuf, slen);
169 PNBUF_PUT(pbuf);
176 if (pbuf)
177 PNBUF_PUT(pbuf);
  /src/sys/arch/ews4800mips/ews4800mips/
machdep.c 214 char pbuf[9]; local in function:cpu_startup
218 format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
219 printf("total memory = %s\n", pbuf);
233 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false)));
234 printf("avail memory = %s\n", pbuf);
  /src/sys/arch/powerpc/ibm4xx/
ibm4xx_machdep.c 352 char pbuf[9]; local in function:ibm4xx_cpu_startup
382 format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
383 printf("total memory = %s\n", pbuf);
398 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false)));
399 printf("avail memory = %s\n", pbuf);
  /src/sys/arch/i386/stand/misc/
rawrite.c 127 char *buffer, *pbuf; local in function:main
162 pbuf = buffer;
165 status = biosdisk(WRITE, drive, head, track, ns, 3, pbuf);
170 pbuf += (3*SECTORSIZE);
  /src/sys/dev/altmem/
altmem.c 107 char pbuf[9]; local in function:altmem_attach
114 format_bytes(pbuf, sizeof(pbuf), sc->sc_size);
117 aprint_normal(": %s\n", pbuf);
  /src/sys/dev/raidframe/
rf_pq.h 68 rf_PQ_recover(unsigned long *pbuf, unsigned long *qbuf, unsigned long *abuf,
rf_evenodd_dagfuncs.h 58 RF_RowCol_t * fcol, char *pbuf, char *ebuf);
  /src/usr.sbin/rip6query/
rip6query.c 82 char pbuf[NI_MAXSERV]; local in function:main
114 snprintf(pbuf, sizeof(pbuf), "%d", RIP6_PORT);
118 error = getaddrinfo(argv[0], pbuf, &hints, &res);
  /src/sys/arch/sun3/sun3x/
machdep.c 185 char pbuf[9]; local in function:cpu_startup
205 format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
206 printf("total memory = %s\n", pbuf);
223 format_bytes(pbuf, sizeof(pbuf), ptoa(uvm_availmem(false)));
224 printf("avail memory = %s\n", pbuf);
  /src/sys/arch/mvme68k/mvme68k/
machdep.c 428 char pbuf[9]; local in function:cpu_startup
453 format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
454 printf("total memory = %s", pbuf);
459 format_bytes(pbuf, sizeof(pbuf), mem_clusters[0].size);
460 printf(" (%s on-board", pbuf);
461 format_bytes(pbuf, sizeof(pbuf), vmememsize);
462 printf(", %s VMEbus)", pbuf);
    [all...]
  /src/games/dm/
dm.c 113 char pbuf[MAXPATHLEN]; local in function:play
115 snprintf(pbuf, sizeof(pbuf), "%s%s", _PATH_HIDE, game);
118 execv(pbuf, args);
119 err(1, "%s", pbuf);
  /src/games/backgammon/backgammon/
main.c 87 static char pbuf[10]; variable in typeref:typename:char[10]
197 pbuf[i] = readc();
198 if (pbuf[i] == '\n')
206 pbuf[i] = '\0';
208 if (pbuf[i] != password[i])
  /src/usr.bin/mail/
head.c 230 * XXX - line[], pbuf[], and word[] must be LINESIZE in length or
234 parse(const char line[], struct headline *hl, char pbuf[])
244 sp = pbuf;
  /src/sys/arch/arm/sunxi/
sunxi_rsb.c 369 uint8_t *pbuf = buf; local in function:sunxi_rsb_exec
374 data = pbuf[0];
377 data = pbuf[0] | (pbuf[1] << 8);
380 data = pbuf[0] | (pbuf[1] << 8) |
381 (pbuf[2] << 16) | (pbuf[3] << 24);
  /src/sys/dev/ofw/
ofw_subr.c 520 char *pbuf; local in function:of_packagename
524 pbuf = kmem_alloc(OFW_PATH_BUF_SIZE, KM_SLEEP);
525 l = OF_package_to_path(phandle, pbuf, OFW_PATH_BUF_SIZE);
529 (l == OFW_PATH_BUF_SIZE && pbuf[OFW_PATH_BUF_SIZE - 1] != '\0')) {
539 pbuf[l] = '\0';
540 lastslash = strrchr(pbuf, '/');
541 strlcpy(buf, (lastslash == NULL) ? pbuf : (lastslash + 1),
546 kmem_free(pbuf, OFW_PATH_BUF_SIZE);
  /src/sys/kern/
init_main.c 1174 char pbuf[81]; local in function:banner
1179 snprintf(pbuf, sizeof(pbuf), "%s %s (%s)",
1181 printf_nolog("%s", pbuf);
1182 for (i = 80 - strlen(pbuf) - sizeof(notice); i > 0; i--)
1190 memset(pbuf, 0, sizeof(pbuf));
1192 format_bytes(pbuf, MEM_PBUFSIZE, ctob((uint64_t)physmem));
1193 (*pr)("total memory = %s\n", pbuf);
1194 format_bytes(pbuf, MEM_PBUFSIZE, ctob((uint64_t)uvm_availmem(false)))
    [all...]
  /src/sys/arch/sgimips/ioc/
if_le_oioc.c 159 char pbuf[9]; local in function:le_attach
230 format_bytes(pbuf, sizeof(pbuf), OIOC_LANCE_NPAGES * PAGE_SIZE);
231 aprint_normal(": main memory used = %s\n", pbuf);

Completed in 46 milliseconds

1 2 3 4