/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/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/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);
|
/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/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/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/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/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/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/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/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/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/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.bin/finger/ |
util.c | 334 static char pbuf[15]; local in function:prphone 341 p = pbuf; 375 return(pbuf);
|
/src/sys/dev/mca/ |
ed_mca.c | 156 char pbuf[8]; local in function:ed_mca_attach 172 format_bytes(pbuf, sizeof(pbuf), 175 "%u sectors\n", pbuf,
|
/src/sys/dev/raidframe/ |
rf_pqdegdags.c | 131 char *pbuf = ppda->bufPtr; local in function:applyPDA 152 pbuf += rf_RaidAddressToStripeUnitID(&(raidPtr->Layout), delta); 159 /* rf_bxor(buf, pbuf, rf_RaidAddressToByte(raidPtr, len), bp); */ 160 rf_bxor(buf, pbuf, rf_RaidAddressToByte(raidPtr, len));
|
/src/lib/libutil/ |
sockaddr_snprintf.c | 142 char Abuf[1024], pbuf[32], *name = NULL, *port = NULL; local in function:sockaddr_snprintf 176 (void)snprintf(port = pbuf, sizeof(pbuf), "%d", p); 276 port = pbuf, 277 (unsigned int)sizeof(pbuf), 0);
|
/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/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/libexec/rexecd/ |
rexecd.c | 157 char pbuf[NI_MAXSERV]; local in function:doit 171 pbuf, sizeof(pbuf), niflags) != 0) {
|
/src/sbin/routed/ |
input.c | 68 union pkt_buf pbuf; member in struct:read_rip::__anon2cf02ceb0108 72 union pkt_buf pbuf; member in struct:read_rip::__anon2cf02ceb0208 131 input(&from, sifp, aifp, &inbuf.pbuf.rip, cc);
|
/src/share/examples/refuse/ian/libfetch/ |
common.c | 261 char pbuf[10]; local in function:_fetch_connect 272 snprintf(pbuf, sizeof(pbuf), "%d", port); 277 if ((err = getaddrinfo(host, pbuf, &hints, &res0)) != 0) {
|
/src/sys/arch/prep/pci/ |
gten.c | 127 char devinfo[256], pbuf[10]; local in function:gten_attach 173 format_bytes(pbuf, sizeof(pbuf), gt->gt_psize); 174 aprint_normal_dev(self, "%s: %s, %dx%d, %dbpp\n", pbuf,
|