Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/cmd/lp/cmd/
H A Dlpforms.c159 FORM fbuf; in main() local
384 && getform(form, &fbuf, (FALERT *)0, (FILE **)0) != 0 in main()
398 if (getform(P, &fbuf, (FALERT *)0, (FILE **)0) != -1) { in main()
399 if (!fbuf.paper) { in main()
403 } else if (!STREQU(fbuf.paper, P)) in main()
404 P = Strdup(fbuf.paper); in main()
484 FORM fbuf; local
588 memset ((char *)&fbuf, 0, sizeof(FORM));
589 fbuf.name = strdup(form);
590 fbuf.plen.val = DPLEN;
[all …]
/illumos-gate/usr/src/cmd/file/
H A Dfile.c95 #pragma align 16(fbuf)
96 static char fbuf[FBSZ]; variable
534 if ((fbsz = read(ifd, fbuf, FBSZ)) == -1) { in type()
630 if (fbuf[0] == '#' && fbuf[1] == '!' && shellscript(fbuf+2, &mbuf)) in def_position_tests()
636 } else if (*(int *)fbuf == CORE_MAGIC) { in def_position_tests()
638 struct core *corep = (struct core *)fbuf; in def_position_tests()
660 if (zipfile(fbuf, ifd)) in def_position_tests()
663 if (is_crash_dump(fbuf, ifd)) in def_position_tests()
728 while (fbuf[i] == '#') { in def_context_tests()
730 while (fbuf[i++] != '\n') { in def_context_tests()
[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.c63 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 Disencrypt.c42 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/mailx/
H A Dcollect.c95 FILE *ibuf, *fbuf, *obuf; in collect() local
515 if ((fbuf = npopen(++cp, "r"))==NULL) { in collect()
529 if ((fbuf = fopen(cp, "r")) == NULL) { in collect()
537 while ((t = getc(fbuf)) != EOF) { in collect()
542 npclose(fbuf); in collect()
545 fclose(fbuf); in collect()
551 npclose(fbuf); in collect()
554 fclose(fbuf); in collect()
605 if ((fbuf = fopen(THELPFILE, "r")) == NULL) { in collect()
609 t = getc(fbuf); in collect()
[all …]
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *readstat; in quit() local
184 if ((fbuf = fopen(mbox, "r")) != NULL) { in quit()
185 while ((c = getc(fbuf)) != EOF) in quit()
187 fclose(fbuf); in quit()
276 FILE *obuf = 0, *fbuf = 0, *rbuf = 0; in writeback() local
286 if ((fbuf = fopen(mailname, "r+")) == NULL) { in writeback()
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()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmime.c1042 unsigned char fbuf[MAXLINE + 1]; local
1101 fbufp = fbuf;
1135 #define CHK_EOL if (*--fbufp != '\n' || (fbufp > fbuf && *--fbufp != '\r')) \
1138 #define CHK_EOL if (*--fbufp != '\n' || (fbufp > fbuf && *--fbufp != '\r')) \
1148 if (*fbufp++ == '\n' || fbufp >= &fbuf[MAXLINE]) \
1151 if (!putxline((char *) fbuf, fbufp - fbuf, mci, pxflags)) \
1154 fbufp = fbuf; \
1178 fbufp = fbuf;
1183 &fbuf[MAXLINE] - fbufp);
1188 if (fbufp - fbuf > 0)
[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()
1280 fbuf[fblocks] = (tchar *)xcalloc(BUFSIZ + MB_LEN_MAX, in expand_fbuf()
1303 c = read_(SHIN, fbuf[0], BUFSIZ);
1309 c = fbuf[0][fseekp - fbobp];
1325 c = read_(SHIN, fbuf[buf] + off, BUFSIZ - off);
1333 copy(fbuf[buf] + off, ttyline,
1335 copy(fbuf[buf + 1], ttyline + roomleft,
[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()
518 (void) dladm_flow_attr_ip2str(attr, fbuf->flow_ipaddr, in print_flow()
519 sizeof (fbuf->flow_ipaddr)); in print_flow()
520 (void) dladm_flow_attr_proto2str(attr, fbuf->flow_proto, in print_flow()
521 sizeof (fbuf->flow_proto)); in print_flow()
523 (void) dladm_flow_attr_port2str(attr, fbuf->flow_lport, in print_flow()
524 sizeof (fbuf->flow_lport)); in print_flow()
527 (void) dladm_flow_attr_port2str(attr, fbuf->flow_rport, in print_flow()
[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.c84 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 Dword.c403 (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()
H A Dmode.h106 unsigned char fbuf[BUFFERSIZE]; member
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c83 char *fbuf = NULL; in da_check_logindevperm() local
99 if ((fbuf = (char *)malloc(fsize)) == NULL) { in da_check_logindevperm()
104 free(fbuf); in da_check_logindevperm()
128 slen = snprintf(fbuf, nlen, "%s", ptr); in da_check_logindevperm()
130 slen = snprintf(fbuf + plen, nlen - plen, ":%s", ptr); in da_check_logindevperm()
132 fbuf[0] = '\0'; in da_check_logindevperm()
143 device = strtok_r(fbuf, ":", &lasts); in da_check_logindevperm()
155 free(fbuf); in da_check_logindevperm()
162 free(fbuf); in da_check_logindevperm()
179 _da_read_file(char *fname, char **fbuf, time_t *ftime, rwlock_t *flock, in _da_read_file() argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmagic.c158 char fbuf[SF_BUFSIZE + 1]; /* file data */ \
293 return mp->fbuf + off; in getdata()
1058 b = (unsigned char*)mp->fbuf; in cklang()
1071 b = (unsigned char*)mp->fbuf; in cklang()
1091 ccmaps(mp->fbuf, mp->fbsz, q, CC_NATIVE); in cklang()
1133 b = (unsigned char*)mp->fbuf; in cklang()
1165 if (s > mp->fbuf) in cklang()
1173 if (((char*)b - s) == 3 && (s == (mp->fbuf + 1) || *(s - 2) == '\n')) in cklang()
1207 if (b == (unsigned char*)(mp->fbuf + 1) || *(b - 2) == '\n') in cklang()
1235 if (*b == ':' && isspace(*(b + 1)) && b > (unsigned char*)(mp->fbuf + 1) && isspace(*(b - 2))) in cklang()
[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.c68 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 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()

123