Home
last modified time | relevance | path

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

123

/titanic_51/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
492 * storing it in the form buffer "fbuf". Keep track of
588 memset ((char *)&fbuf, 0, sizeof(FORM));
589 fbuf
852 FORM fbuf; global() local
1001 FORM fbuf; global() local
1073 FORM fbuf; global() local
[all...]
/titanic_51/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()
637 } else if (*(int *)fbuf == CORE_MAGIC) { in def_position_tests()
639 struct core *corep = (struct core *)fbuf; in def_position_tests()
658 if (zipfile(fbuf, ifd)) in def_position_tests()
661 if (is_crash_dump(fbuf, ifd)) in def_position_tests()
726 while (fbuf[i] == '#') { in def_context_tests()
728 while (fbuf[i++] != '\n') { in def_context_tests()
[all …]
/titanic_51/usr/src/uts/common/sys/
H A Dfbuf.h43 * A struct fbuf is used to get a mapping to part of a file using the
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);
/titanic_51/usr/src/uts/common/os/
H A Dfbio.c39 #include <sys/fbuf.h>
65 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 *fb
[all...]
/titanic_51/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()
/titanic_51/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);
/titanic_51/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()
838 FILE *fbuf; mesedit() local
[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, mailsiz in writeback()
[all...]
/titanic_51/usr/src/cmd/sendmail/src/
H A Dmime.c1044 unsigned char fbuf[MAXLINE + 1]; local
1103 fbufp = fbuf;
1137 #define CHK_EOL if (*--fbufp != '\n' || (fbufp > fbuf && *--fbufp != '\r')) \
1140 #define CHK_EOL if (*--fbufp != '\n' || (fbufp > fbuf && *--fbufp != '\r')) \
1150 if (*fbufp++ == '\n' || fbufp >= &fbuf[MAXLINE]) \
1153 if (!putxline((char *) fbuf, fbufp - fbuf, mci, pxflags)) \
1156 fbufp = fbuf; \
1180 fbufp = fbuf;
1185 &fbuf[MAXLIN
[all...]
/titanic_51/usr/src/cmd/csh/
H A Dsh.lex.c1268 if (fbuf) { in expand_fbuf()
1269 (void) blkcpy(nfbuf, fbuf); in expand_fbuf()
1270 xfree((char *)fbuf); in expand_fbuf()
1272 fbuf = nfbuf; in expand_fbuf()
1273 fbuf[fblocks] = (tchar *)xcalloc(BUFSIZ + MB_LEN_MAX, in expand_fbuf()
1296 c = read_(SHIN, fbuf[0], BUFSIZ);
1302 c = fbuf[0][fseekp - fbobp];
1318 c = read_(SHIN, fbuf[buf] + off, BUFSIZ - off);
1326 copy(fbuf[buf] + off, ttyline,
1328 copy(fbuf[bu
[all...]
/titanic_51/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()
/titanic_51/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()
/titanic_51/usr/src/cmd/flowadm/
H A Dflowadm.c500 flow_fields_buf_t *fbuf) in print_flow() argument
510 (void) snprintf(fbuf->flow_name, sizeof (fbuf->flow_name), in print_flow()
512 (void) snprintf(fbuf->flow_link, sizeof (fbuf->flow_link), in print_flow()
515 (void) dladm_flow_attr_ip2str(attr, fbuf->flow_ipaddr, in print_flow()
516 sizeof (fbuf->flow_ipaddr)); in print_flow()
517 (void) dladm_flow_attr_proto2str(attr, fbuf->flow_proto, in print_flow()
518 sizeof (fbuf->flow_proto)); in print_flow()
520 (void) dladm_flow_attr_port2str(attr, fbuf in print_flow()
542 flow_fields_buf_t fbuf; show_flow() local
[all...]
/titanic_51/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()
/titanic_51/usr/src/cmd/sh/
H A Dword.c344 * this loop won't overrun the f->fbuf buffer. in readwc()
402 * to f->fbuf in readb()
404 (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()
/titanic_51/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_ argument
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmagic.c158 char fbuf[SF_BUFSIZE + 1]; /* file data */ \
171 int fbsz; /* fbuf size */ \
172 int fbmx; /* fbuf max size */ \
178 Sfio_t* fp; /* fbuf fp */ \
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()
[all...]
/titanic_51/usr/src/cmd/troff/
H A Dn9.c418 tchar fbuf[FBUFSZ]; local
448 fp = fbuf;
472 if (fp > (fbuf + FBUFSZ - 3))
496 pushback(fbuf);
523 if (fp > (fbuf + FBUFSZ - 3))
532 pushback(fbuf);
/titanic_51/usr/src/lib/libast/common/misc/
H A Dmagic.c158 char fbuf[SF_BUFSIZE + 1]; /* file data */ \
293 return mp->fbuf + off; in getdata()
1020 b = (unsigned char*)mp->fbuf; in cklang()
1033 b = (unsigned char*)mp->fbuf; in cklang()
1053 ccmaps(mp->fbuf, mp->fbsz, q, CC_NATIVE); in cklang()
1095 b = (unsigned char*)mp->fbuf; in cklang()
1127 if (s > mp->fbuf) in cklang()
1135 if (((char*)b - s) == 3 && (s == (mp->fbuf + 1) || *(s - 2) == '\n')) in cklang()
1169 if (b == (unsigned char*)(mp->fbuf + 1) || *(b - 2) == '\n') in cklang()
1197 if (*b == ':' && isspace(*(b + 1)) && b > (unsigned char*)(mp->fbuf + 1) && isspace(*(b - 2))) in cklang()
[all …]
/titanic_51/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()
/titanic_51/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;
/titanic_51/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_tdaemon.c664 _sd_buf_handle_t *fbuf, *buf; in _sd_test_rwloop_seq() local
683 fbuf = NULL; in _sd_test_rwloop_seq()
686 &fbuf); in _sd_test_rwloop_seq()
691 (void) _sd_copy_pattern_to_handle(fbuf, 0, len); in _sd_test_rwloop_seq()
710 (void) _sd_copy_handle(fbuf, buf, 0, offset, len, j); in _sd_test_rwloop_seq()
747 (void) _sd_compare_handle(fbuf, buf, 0, offset, len, j); in _sd_test_rwloop_seq()
756 if (sts = _sd_free_buf(fbuf)) in _sd_test_rwloop_seq()
/titanic_51/usr/src/cmd/luxadm/
H A Dadm.c181 char fbuf[BUFSIZ]; in adm_fcode() local
259 while ((read(fp, fbuf, BUFSIZ)) > 0) { in adm_fcode()
260 if (memstrstr(fbuf, "SUNW,socal", in adm_fcode()
269 } else if ((memstrstr(fbuf, "SUNW,ifp", in adm_fcode()
272 (memstrstr(fbuf, "SUNW,qlc", in adm_fcode()
/titanic_51/usr/src/uts/common/fs/sockfs/
H A Dnl7clogd.c408 char fbuf[TYPICALMAXPATHLEN + 1]; in nl7c_logd_init() local
465 iov.iov_base = fbuf; in nl7c_logd_init()
479 fbuf[TYPICALMAXPATHLEN - (int)uio.uio_resid] = '\0'; in nl7c_logd_init()
483 if (strcmp(*fnp, fbuf) == 0) in nl7c_logd_init()
/titanic_51/usr/src/uts/common/sys/fs/
H A Dufs_inode.h42 #include <sys/fbuf.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);

123