/original-bsd/sbin/mount_portal/ |
H A D | pt_file.c | 36 char pbuf[MAXPATHLEN]; local 41 pbuf[0] = '/'; 42 strcpy(pbuf+1, key + (v[1] ? strlen(v[1]) : 0)); 45 printf("path = %s, uid = %d, gid = %d\n", pbuf, pcr->pcr_uid, pcr->pcr_groups[0]); 57 fd = open(pbuf, O_RDWR|O_CREAT, 0666);
|
/original-bsd/old/dbx/ |
H A D | fortran.c | 94 char *pbuf; local 101 pbuf=buf; 105 pbuf += strlen(pbuf); 111 sprintf(pbuf,"(*)"); 113 sprintf(pbuf,"%d",ub); 125 char **pbuf; 139 sprintf(*pbuf,"?:"); 141 sprintf(*pbuf,"%d:",lb); 147 *pbuf += strlen(*pbuf); 153 sprintf(*pbuf,"?,"); [all …]
|
/original-bsd/usr.bin/more/ |
H A D | command.c | 131 char pbuf[40]; in prompt() local 158 (void)sprintf(pbuf, " file %d/%d", curr_ac + 1, ac); in prompt() 159 putstr(pbuf); in prompt() 162 (void)sprintf(pbuf, " line %d", currline(BOTTOM)); in prompt() 163 putstr(pbuf); in prompt() 166 (void)sprintf(pbuf, " byte %qd", pos); in prompt() 167 putstr(pbuf); in prompt() 169 (void)sprintf(pbuf, "/%qd pct %qd%%", in prompt() 171 putstr(pbuf); in prompt() 191 (void)sprintf(pbuf, " (%qd%%)", ((100 * pos) / len)); in prompt() [all …]
|
/original-bsd/local/ditroff/ditroff.old.okeeffe/pic/ |
H A D | pic2.c | 122 char pbuf[PBSIZE]; /* pushback buffer */ variable 123 char *pb = pbuf-1; /* next pushed back character */ 132 if (pb >= pbuf) { in input() 150 if (++pb >= pbuf + sizeof pbuf) { in unput() 197 while (pb >= pbuf) in eprint()
|
/original-bsd/local/ditroff/ditroff.okeeffe/pic/ |
H A D | pic2.c | 126 char pbuf[PBSIZE]; /* pushback buffer */ variable 127 char *pb = pbuf-1; /* next pushed back character */ 136 if (pb >= pbuf) { in input() 154 if (++pb >= pbuf + sizeof pbuf) { in unput() 201 while (pb >= pbuf) in eprint()
|
H A D | input.c | 227 char pbuf[PBSIZE]; /* pushback buffer */ variable 228 char *pb = pbuf-1; /* next pushed back character */ 270 if (pb >= pbuf) { in nextchar() 408 if (++pb >= pbuf + sizeof pbuf) in unput() 491 while (pb >= pbuf) in eprint()
|
/original-bsd/local/transcript/src/ |
H A D | pscomm.c | 690 for (pb = pbuf;;) { 718 pb = pbuf; 735 if (pb = FindPattern(pb, pbuf, "%%[ pagecount: ")) { 760 pbuf[0] = '\0'; 783 GotChar(r, pbuf); 804 if (pbuf[0] == '\0') { 806 pb = pbuf; 823 pb = pbuf + strlen(pbuf) - 1; 887 private GotChar(c, pbuf) in GotChar() argument 889 char *pbuf; [all …]
|
/original-bsd/libexec/bugfiler/ |
H A D | gethead.c | 26 static int pbuf __P((char *)); 37 { NO, NO, pbuf, ENT("Subject:"), }, 112 (void)pbuf(line); 121 pbuf(line) in pbuf() function
|
/original-bsd/games/hack/ |
H A D | hack.topl.c | 122 char pbuf[BUFSZ]; local 123 register char *bp = pbuf, *tl; 127 if(!index(line, '%')) (void) strcpy(pbuf,line); else 128 (void) sprintf(pbuf,line,arg1,arg2,arg3,arg4,arg5,arg6); 129 if(flags.toplin == 1 && !strcmp(pbuf, toplines)) return;
|
/original-bsd/usr.bin/uucp/libuu/ |
H A D | chkpth.c | 103 char buf[100 + 1], *pbuf[50 + 1]; in rdpth() local 131 nargs = getargs(pc, pbuf, 50); in rdpth() 132 u->us_lname = pbuf[0]; in rdpth() 146 if (strcmp(pbuf[1], "c") == SAME) { in rdpth() 162 *cp++ = pbuf[i++]; in rdpth()
|
/original-bsd/games/dm/ |
H A D | dm.c | 70 char pbuf[MAXPATHLEN]; local 72 (void)strcpy(pbuf, _PATH_HIDE); 73 (void)strcpy(pbuf + sizeof(_PATH_HIDE) - 1, game); 77 execv(pbuf, args); 78 (void)fprintf(stderr, "dm: %s: %s\n", pbuf, strerror(errno));
|
/original-bsd/local/X11R5/mit/config/ |
H A D | imake.c | 567 *pbuf, /* walking pointer to buf */ local 587 punwritten = pbuf = buf; 588 while (*pbuf) { 590 if (*pbuf == '#' && (pbuf == buf || pbuf[-1] == '\n')) { 592 ptoken = pbuf+1; 617 fwrite(punwritten, sizeof(char), pbuf-punwritten, outFile); 619 punwritten = pbuf; 623 pbuf++; 626 fwrite(punwritten, sizeof(char), pbuf-punwritten, outFile);
|
/original-bsd/local/ditroff/ditroff.okeeffe/eqn/ |
H A D | input.c | 141 char pbuf[PBSIZE]; /* pushback buffer */ variable 142 char *pb = pbuf-1; /* next pushed back character */ 171 if (pb >= pbuf) { in input() 219 if (++pb >= pbuf + sizeof pbuf) in unput() 293 while (pb >= pbuf) in eprint()
|
/original-bsd/usr.bin/mail/ |
H A D | head.c | 73 parse(line, hl, pbuf) in parse() argument 74 char line[], pbuf[]; in parse() 85 sp = pbuf;
|
/original-bsd/games/backgammon/backgammon/ |
H A D | main.c | 68 static char pbuf[10]; variable 199 pbuf[i] = readc(); 200 if (pbuf[i] == '\n') 208 pbuf[i] = '\0'; 210 if (pbuf[i] != password[i])
|
/original-bsd/old/cpio/ |
H A D | cpio.c | 1261 } *pbuf; local 1270 c = pbuf->charv[0]; 1271 pbuf->charv[0] = pbuf->charv[1]; 1272 pbuf->charv[1] = c; 1273 ++pbuf; 1281 } *pbuf; local 1289 pbuf->charv[i] = 0; 1292 pbuf->charv[i] = 0; 1295 cc = pbuf->shortv[0]; 1296 pbuf->shortv[0] = pbuf->shortv[1]; [all …]
|
/original-bsd/lib/libc/net/ |
H A D | rcmd.c | 252 char pbuf[MAXPATHLEN]; local 268 (void)strcpy(pbuf, pwd->pw_dir); 269 (void)strcat(pbuf, "/.rhosts"); 278 hostf = fopen(pbuf, "r"); 288 if (lstat(pbuf, &sbuf) < 0)
|
/original-bsd/local/local.cmd/ |
H A D | ncpio.c | 1163 register union swp { long longw; short shortv[2]; char charv[4]; } *pbuf; local 1180 pbuf = (union swp *)savebuf; 1189 cc = pbuf->shortv[0]; 1190 pbuf->shortv[0] = pbuf->shortv[1]; 1191 pbuf->shortv[1] = cc; 1192 ++pbuf; 1197 pbuf = (union swp *)buf; 1202 cc = pbuf->shortv[0]; 1203 pbuf->shortv[0] = pbuf->shortv[1]; 1204 pbuf->shortv[1] = cc; [all …]
|
/original-bsd/usr.bin/pascal/pdx/process/ |
H A D | runcont.c | 35 LOCAL PROCESS pbuf; variable 36 PROCESS *process = &pbuf;
|
/original-bsd/usr.sbin/lpr/common_source/ |
H A D | printcap.c | 35 static char pbuf[BUFSIZ]; /* buffer for capability strings */ variable 46 pbp = pbuf; 59 pbp = pbuf; 84 if (pbp >= pbuf+BUFSIZ) {
|
/original-bsd/old/berknet/ |
H A D | mach.c | 481 static char pbuf[9]; local 491 pbuf[0] = 0; 492 return(pbuf); 507 for (p=pbuf; (c = getc(fi))!='\n' && c!=EOF;) { 508 if (p < &pbuf[8]) 518 return(pbuf);
|
/original-bsd/local/ditroff/ditroff.okeeffe/grap/ |
H A D | input.c | 214 char pbuf[PBSIZE]; /* pushback buffer */ variable 215 char *pb = pbuf-1; /* next pushed back character */ 256 if (pb >= pbuf) { in nextchar() 394 if (++pb >= pbuf + sizeof pbuf) in unput() 475 while (pb >= pbuf) in eprint()
|
/original-bsd/usr.bin/finger/ |
H A D | util.c | 233 static char pbuf[15]; local 240 p = pbuf; 271 return(pbuf);
|
/original-bsd/usr.bin/uucp/uuq/ |
H A D | uuq.c | 179 char pbuf[BUFSIZ]; local 180 sprintf(pbuf,"%s/%c.%s%cPOLL", 183 (void) unlink(pbuf);
|
/original-bsd/lib/libc/gen/ |
H A D | getcap.c | 174 char pbuf[_POSIX_PATH_MAX]; local 222 (void)snprintf(pbuf, sizeof(pbuf), "%s.db", *db_p); 223 if ((capdbp = dbopen(pbuf, O_RDONLY, 0, DB_HASH, 0))
|