Home
last modified time | relevance | path

Searched refs:fbuf (Results 1 – 25 of 50) sorted by relevance

12

/illumos-gate/usr/src/cmd/lp/cmd/
H A Dlpforms.c159 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 Dfile.c630 if (fbuf[0] == '#' && fbuf[1] == '!' && shellscript(fbuf+2, &mbuf)) in def_position_tests()
786 while (fbuf[i] == 'c' || fbuf[i] == 'C'|| fbuf[i] == '!' || in def_context_tests()
787 fbuf[i] == '*' || fbuf[i] == '\n') { in def_context_tests()
820 while (fbuf[i] != '\n' && fbuf[i++] != ':') { in def_context_tests()
824 while (fbuf[i] == '\n' || fbuf[i] == ' ' || fbuf[i] == '\t') in def_context_tests()
1413 while (fbuf[i] == ' ' || fbuf[i] == '\t' || fbuf[i] == '\n') in lookup()
1420 if (fbuf[k] == ' ' || fbuf[k] == '\n' || in lookup()
1421 fbuf[k] == '\t' || fbuf[k] == '{' || in lookup()
1447 if (fbuf[i] == '/' && fbuf[i+1] == '*') { in ccom()
1449 while (fbuf[i] != '*' || fbuf[i+1] != '/') { in ccom()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dfbuf.h51 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 Dfbio.c65 struct fbuf **fbpp) in fbread()
69 struct fbuf *fbp; in fbread()
100 *fbpp = fbp = kmem_alloc(sizeof (struct fbuf), KM_SLEEP); in fbread()
113 fbzero(vnode_t *vp, offset_t off, uint_t len, struct fbuf **fbpp) in fbzero()
117 struct fbuf *fbp; in fbzero()
130 *fbpp = fbp = kmem_alloc(sizeof (struct fbuf), KM_SLEEP); in fbzero()
161 kmem_free(fbp, sizeof (struct fbuf)); \
166 fbrelse(struct fbuf *fbp, enum seg_rw rw) in fbrelse()
172 fbwrite(struct fbuf *fbp) in fbwrite()
178 fbdwrite(struct fbuf *fbp) in fbdwrite()
[all …]
/illumos-gate/usr/src/lib/libgen/common/
H A Disencrypt.c44 isencrypt(const char *fbuf, size_t ninbuf) in isencrypt() argument
53 fp = fbuf; in isencrypt()
54 while (fp < &fbuf[ninbuf]) in isencrypt()
83 for (i = 0; i < 64; i++) bucket[(fbuf[i]>>5)&07] += 1; in isencrypt()
99 if (fbuf[i] == '\0') in isencrypt()
107 if (fbuf[ninbuf - 1] != '\n') in isencrypt()
/illumos-gate/usr/src/cmd/zic/
H A Dscheck.c14 register char *fbuf; local
24 fbuf = imalloc((int)(2 * strlen(format) + 4));
25 if (fbuf == NULL)
28 tp = fbuf;
52 if (sscanf(string, fbuf, &dummy) != 1)
54 ifree(fbuf);
/illumos-gate/usr/src/cmd/mailx/
H A Dcollect.c554 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 Dquit.c68 FILE *ibuf, *obuf, *fbuf, *readstat; in quit() local
187 while ((c = getc(fbuf)) != EOF) in quit()
189 fclose(fbuf); in quit()
293 lock(fbuf, "r+", 1); in writeback()
294 fstat(fileno(fbuf), &st); in writeback()
308 fclose(fbuf); in writeback()
313 fseek(fbuf, mailsize, 0); in writeback()
314 while ((c = getc(fbuf)) != EOF) in writeback()
319 c = getc(fbuf); in writeback()
322 fclose(fbuf); in writeback()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmime.c1103 fbufp = fbuf;
1153 if (!putxline((char *) fbuf, fbufp - fbuf, mci, pxflags)) \
1156 fbufp = fbuf; \
1180 fbufp = fbuf;
1185 &fbuf[MAXLINE] - fbufp);
1190 if (fbufp - fbuf > 0)
1192 if (!putxline((char *) fbuf, fbufp - fbuf - 1,
1196 fbufp = fbuf;
1201 &fbuf[MAXLINE] - fbufp);
1208 if (fbufp > fbuf)
[all …]
/illumos-gate/usr/src/cmd/flowadm/
H A Dflowadm.c503 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/csh/
H A Dsh.lex.c1275 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/acct/
H A Dacctdusg.c78 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 Dsmbd_syslog.c36 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 Dscratchops.c86 struct stat lbuf, fbuf; in zonecfg_open_scratch() local
112 if (fstat(fd, &fbuf) == -1) in zonecfg_open_scratch()
114 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 Dword.c404 (void) memcpy(f->fbuf, f->fnxt, rest); in readb()
405 f->fnxt = f->fbuf; in readb()
409 if (f->fbuf[rest - 1] == '\n') { in readb()
428 } while ((len = read(f->fdes, f->fbuf + rest, toread)) < 0 && trapnote); in readb()
451 f->fnxt = f->fbuf; in readb()
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c83 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 Dmagic.c293 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 Dn9.c417 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 Df_format.c70 uchar_t *fbuf, *p; in format_floppy() local
370 if ((fbuf = (uchar_t *)malloc((unsigned)(4 * spt))) == 0) { in format_floppy()
417 p = (uchar_t *)fbuf; in format_floppy()
433 fdr_form.fdr_addr = (char *)fbuf; in format_floppy()
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c61 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 Dadm.c175 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 Dfcalupdate.c145 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 Dufs_inode.h448 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 Dudf_dir.c89 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 Ds_generic.c785 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()

12