Home
last modified time | relevance | path

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

123

/titanic_50/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 …]
/titanic_50/usr/src/cmd/file/
H A Dfile.c94 #pragma align 16(fbuf)
95 static char fbuf[FBSZ]; variable
533 if ((fbsz = read(ifd, fbuf, FBSZ)) == -1) { in type()
629 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()
657 if (zipfile(fbuf, ifd)) in def_position_tests()
660 if (is_crash_dump(fbuf, ifd)) in def_position_tests()
725 while (fbuf[i] == '#') { in def_context_tests()
727 while (fbuf[i++] != '\n') { in def_context_tests()
[all …]
/titanic_50/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);
/titanic_50/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 …]
/titanic_50/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_50/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_50/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 …]
/titanic_50/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[MAXLINE] - fbufp);
1190 if (fbufp - fbuf > 0)
[all …]
/titanic_50/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[buf + 1], ttyline + roomleft,
[all …]
/titanic_50/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_50/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_50/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->flow_lport, in print_flow()
521 sizeof (fbuf->flow_lport)); in print_flow()
524 (void) dladm_flow_attr_port2str(attr, fbuf->flow_rport, in print_flow()
[all …]
/titanic_50/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_50/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()
/titanic_50/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 …]
/titanic_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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);
/titanic_50/usr/src/lib/libsmedia/plugins/scsi/common/
H A Ds_generic.c795 char *fbuf; in remap_shared_buf() local
854 fbuf = (char *)mmap(0, shared_bufsize, PROT_READ | PROT_WRITE, in remap_shared_buf()
856 if (fbuf == (char *)-1) { in remap_shared_buf()
888 handle->sm_buf = fbuf; in remap_shared_buf()

123