/illumos-gate/usr/src/cmd/lp/cmd/ |
H A D | lpforms.c | 159 FORM fbuf; in main() local 484 FORM fbuf; local 591 fbuf.plen.sc = 0; 595 fbuf.lpi.sc = 0; 597 fbuf.cpi.sc = 0; 598 fbuf.np = DNP; 603 fbuf.paper = P; 641 fbuf.np = DNP; 852 FORM fbuf; local 1001 FORM fbuf; local [all …]
|
/illumos-gate/usr/src/cmd/file/ |
H A D | file.c | 630 if (fbuf[0] == '#' && fbuf[1] == '!' && shellscript(fbuf+2, &mbuf)) in def_position_tests() 788 while (fbuf[i] == 'c' || fbuf[i] == 'C'|| fbuf[i] == '!' || in def_context_tests() 789 fbuf[i] == '*' || fbuf[i] == '\n') { in def_context_tests() 822 while (fbuf[i] != '\n' && fbuf[i++] != ':') { in def_context_tests() 826 while (fbuf[i] == '\n' || fbuf[i] == ' ' || fbuf[i] == '\t') in def_context_tests() 1415 while (fbuf[i] == ' ' || fbuf[i] == '\t' || fbuf[i] == '\n') in lookup() 1422 if (fbuf[k] == ' ' || fbuf[k] == '\n' || in lookup() 1423 fbuf[k] == '\t' || fbuf[k] == '{' || in lookup() 1449 if (fbuf[i] == '/' && fbuf[i+1] == '*') { in ccom() 1451 while (fbuf[i] != '*' || fbuf[i+1] != '/') { in ccom() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | fbuf.h | 51 struct fbuf { struct 57 struct fbuf **); argument 58 extern void fbzero(struct vnode *, offset_t, uint_t, struct fbuf **); 59 extern int fbwrite(struct fbuf *); 60 extern int fbdwrite(struct fbuf *); 61 extern int fbiwrite(struct fbuf *, struct vnode *, daddr_t bn, int bsize); 62 extern void fbrelse(struct fbuf *, enum seg_rw);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | fbio.c | 63 struct fbuf **fbpp) in fbread() 67 struct fbuf *fbp; in fbread() 98 *fbpp = fbp = kmem_alloc(sizeof (struct fbuf), KM_SLEEP); in fbread() 111 fbzero(vnode_t *vp, offset_t off, uint_t len, struct fbuf **fbpp) in fbzero() 115 struct fbuf *fbp; in fbzero() 128 *fbpp = fbp = kmem_alloc(sizeof (struct fbuf), KM_SLEEP); in fbzero() 159 kmem_free(fbp, sizeof (struct fbuf)); \ 164 fbrelse(struct fbuf *fbp, enum seg_rw rw) in fbrelse() 170 fbwrite(struct fbuf *fbp) in fbwrite() 176 fbdwrite(struct fbuf *fbp) in fbdwrite() [all …]
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | isencrypt.c | 42 isencrypt(const char *fbuf, size_t ninbuf) in isencrypt() argument 51 fp = fbuf; in isencrypt() 52 while (fp < &fbuf[ninbuf]) in isencrypt() 81 for (i = 0; i < 64; i++) bucket[(fbuf[i]>>5)&07] += 1; in isencrypt() 97 if (fbuf[i] == '\0') in isencrypt() 105 if (fbuf[ninbuf - 1] != '\n') in isencrypt()
|
/illumos-gate/usr/src/cmd/zic/ |
H A D | scheck.c | 12 register char *fbuf; local 22 fbuf = imalloc((int)(2 * strlen(format) + 4)); 23 if (fbuf == NULL) 26 tp = fbuf; 50 if (sscanf(string, fbuf, &dummy) != 1) 52 ifree(fbuf);
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | collect.c | 554 fclose(fbuf); in collect() 614 fclose(fbuf); in collect() 628 fbuf = stdout; in collect() 729 fclose(fbuf); in collect() 838 FILE *fbuf; in mesedit() local 863 putc(t, fbuf); in mesedit() 864 fflush(fbuf); in mesedit() 870 fclose(fbuf); in mesedit() 962 fclose(fbuf); in mesedit() 968 fclose(fbuf); in mesedit() [all …]
|
H A D | quit.c | 66 FILE *ibuf, *obuf, *fbuf, *readstat; in quit() local 185 while ((c = getc(fbuf)) != EOF) in quit() 187 fclose(fbuf); in quit() 291 lock(fbuf, "r+", 1); in writeback() 292 fstat(fileno(fbuf), &st); in writeback() 306 fclose(fbuf); in writeback() 311 fseek(fbuf, mailsize, 0); in writeback() 312 while ((c = getc(fbuf)) != EOF) in writeback() 317 c = getc(fbuf); in writeback() 320 fclose(fbuf); in writeback() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | mime.c | 1101 fbufp = fbuf; 1151 if (!putxline((char *) fbuf, fbufp - fbuf, mci, pxflags)) \ 1154 fbufp = fbuf; \ 1178 fbufp = fbuf; 1183 &fbuf[MAXLINE] - fbufp); 1188 if (fbufp - fbuf > 0) 1190 if (!putxline((char *) fbuf, fbufp - fbuf - 1, 1194 fbufp = fbuf; 1199 &fbuf[MAXLINE] - fbufp); 1206 if (fbufp > fbuf) [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.lex.c | 1275 if (fbuf) { in expand_fbuf() 1276 (void) blkcpy(nfbuf, fbuf); in expand_fbuf() 1277 xfree((char *)fbuf); in expand_fbuf() 1279 fbuf = nfbuf; in expand_fbuf() 1309 c = fbuf[0][fseekp - fbobp]; 1333 copy(fbuf[buf] + off, ttyline, 1338 copy(fbuf[buf] + off, ttyline, 1345 copy(fbuf[buf + 1], 1346 fbuf[buf] + off + roomleft, 1389 xfree(fbuf[i]); [all …]
|
/illumos-gate/usr/src/cmd/flowadm/ |
H A D | flowadm.c | 503 flow_fields_buf_t *fbuf) in print_flow() argument 513 (void) snprintf(fbuf->flow_name, sizeof (fbuf->flow_name), in print_flow() 515 (void) snprintf(fbuf->flow_link, sizeof (fbuf->flow_link), in print_flow() 519 sizeof (fbuf->flow_ipaddr)); in print_flow() 521 sizeof (fbuf->flow_proto)); in print_flow() 524 sizeof (fbuf->flow_lport)); in print_flow() 528 sizeof (fbuf->flow_rport)); in print_flow() 531 sizeof (fbuf->flow_dsfield)); in print_flow() 545 flow_fields_buf_t fbuf; in show_flow() local 550 bzero(&fbuf, sizeof (fbuf)); in show_flow() [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctdusg.c | 78 char fbuf[PATH_MAX+1], *fb; in main() local 113 while (fgets(fbuf, sizeof (fbuf), stdin) != NULL) { in main() 114 if ((fb = strchr(fbuf, '\n')) != NULL) { in main() 121 charge(fbuf); in main()
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_syslog.c | 36 char fbuf[SMBD_LOG_MSGSIZE]; in smb_svc_log() local 54 newfmt = smb_syslog_fmt_m(fbuf, sizeof (fbuf), fmt, save_errno); in smb_svc_log()
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 84 struct stat lbuf, fbuf; in zonecfg_open_scratch() local 110 if (fstat(fd, &fbuf) == -1) in zonecfg_open_scratch() 112 if (lbuf.st_ino != fbuf.st_ino || lbuf.st_dev != fbuf.st_dev) { in zonecfg_open_scratch()
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | word.c | 403 (void) memcpy(f->fbuf, f->fnxt, rest); in readb() 404 f->fnxt = f->fbuf; in readb() 408 if (f->fbuf[rest - 1] == '\n') { in readb() 427 } while ((len = read(f->fdes, f->fbuf + rest, toread)) < 0 && trapnote); in readb() 450 f->fnxt = f->fbuf; in readb()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | devalloc.c | 83 char *fbuf = NULL; in da_check_logindevperm() local 104 free(fbuf); in da_check_logindevperm() 132 fbuf[0] = '\0'; in da_check_logindevperm() 155 free(fbuf); in da_check_logindevperm() 162 free(fbuf); in da_check_logindevperm() 213 if (*fbuf != NULL) { in _da_read_file() 214 free(*fbuf); in _da_read_file() 215 *fbuf = NULL; in _da_read_file() 223 free(*fbuf); in _da_read_file() 233 free(*fbuf); in _da_read_file() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | magic.c | 293 return mp->fbuf + off; in getdata() 1058 b = (unsigned char*)mp->fbuf; in cklang() 1071 b = (unsigned char*)mp->fbuf; in cklang() 1133 b = (unsigned char*)mp->fbuf; in cklang() 1165 if (s > mp->fbuf) in cklang() 1448 b = (unsigned char*)mp->fbuf; in cklang() 1615 mp->fbsz = sfread(mp->fp, mp->fbuf, sizeof(mp->fbuf) - 1); in type() 1622 mp->fbuf[mp->fbsz] = 0; in type() 1639 me = (m = mp->mime = mp->fbuf) + sizeof(mp->fbuf) - 1; in type() 2278 strcpy(mp->fbuf, s); in magicload() [all …]
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n9.c | 417 tchar fbuf[FBUFSZ]; in setfield() local 447 fp = fbuf; in setfield() 471 if (fp > (fbuf + FBUFSZ - 3)) in setfield() 495 pushback(fbuf); in setfield() 522 if (fp > (fbuf + FBUFSZ - 3)) in setfield() 531 pushback(fbuf); in setfield()
|
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/ |
H A D | f_format.c | 68 uchar_t *fbuf, *p; in format_floppy() local 368 if ((fbuf = (uchar_t *)malloc((unsigned)(4 * spt))) == 0) { in format_floppy() 415 p = (uchar_t *)fbuf; in format_floppy() 431 fdr_form.fdr_addr = (char *)fbuf; in format_floppy()
|
/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | safefile.c | 61 char fbuf[MAXPATHLEN]; variable 67 if (sm_strlcpy(fbuf, fn, sizeof fbuf) >= sizeof fbuf) 73 fn = fbuf;
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | adm.c | 175 char fbuf[BUFSIZ]; in adm_fcode() local 253 while ((read(fp, fbuf, BUFSIZ)) > 0) { in adm_fcode() 254 if (memstrstr(fbuf, "SUNW,socal", in adm_fcode() 263 } else if ((memstrstr(fbuf, "SUNW,ifp", in adm_fcode() 266 (memstrstr(fbuf, "SUNW,qlc", in adm_fcode()
|
H A D | fcalupdate.c | 145 char fbuf[BUFSIZ]; in fcal_update() local 165 fbuf, BUFSIZ)) > 0)) { in fcal_update() 169 if (strncmp((fbuf + fbuf_idx), SOCAL_STR, in fcal_update()
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_inode.h | 448 struct fbuf *fbp; /* dir buf where slot is */ 865 extern int blkatoff(struct inode *, off_t, char **, struct fbuf **); 912 extern int ufs_fbwrite(struct fbuf *, struct inode *); 913 extern int ufs_fbiwrite(struct fbuf *, struct inode *, daddr_t, long);
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_dir.c | 89 struct fbuf *fbp; /* dir buf where slot is */ 123 struct fbuf *fbp; in ud_dirlook() 882 struct fbuf *fbp; in ud_dircheckforname() 1125 struct fbuf *fbp; in ud_dircheckpath() 1349 struct fbuf *fbp; in ud_dirmakedirect() 1628 struct fbuf *fbp; in ud_dirprepareentry() 1777 struct fbuf *fbp; in ud_dirfixdotdot() 1877 struct fbuf *lfbp; in ud_write_fid()
|
/illumos-gate/usr/src/lib/libsmedia/plugins/scsi/common/ |
H A D | s_generic.c | 785 char *fbuf; in remap_shared_buf() local 844 fbuf = mmap(NULL, shared_bufsize, PROT_READ | PROT_WRITE, in remap_shared_buf() 846 if (fbuf == (char *)-1) { in remap_shared_buf() 878 handle->sm_buf = fbuf; in remap_shared_buf()
|