Searched refs:fbuf (Results 1 - 25 of 55) sorted by relevance

123

/illumos-gate/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 **);
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/lib/libgen/common/
H A Disencrypt.c44 isencrypt(const char *fbuf, size_t ninbuf) argument
53 fp = fbuf;
54 while (fp < &fbuf[ninbuf])
83 for (i = 0; i < 64; i++) bucket[(fbuf[i]>>5)&07] += 1;
99 if (fbuf[i] == '\0')
107 if (fbuf[ninbuf - 1] != '\n')
/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/file/
H A Dfile.c94 #pragma align 16(fbuf)
95 static char fbuf[FBSZ]; variable
533 if ((fbsz = read(ifd, fbuf, FBSZ)) == -1) {
629 if (fbuf[0] == '#' && fbuf[1] == '!' && shellscript(fbuf+2, &mbuf))
636 } else if (*(int *)fbuf == CORE_MAGIC) {
638 struct core *corep = (struct core *)fbuf;
657 if (zipfile(fbuf, ifd))
660 if (is_crash_dump(fbuf, if
1560 zipfile(char *fbuf, int fd) argument
[all...]
/illumos-gate/usr/src/cmd/lp/cmd/
H A Dlpforms.c159 FORM fbuf; local
384 && getform(form, &fbuf, (FALERT *)0, (FILE **)0) != 0
398 if (getform(P, &fbuf, (FALERT *)0, (FILE **)0) != -1) {
399 if (!fbuf.paper) {
403 } else if (!STREQU(fbuf.paper, P))
404 P = Strdup(fbuf.paper);
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; local
1001 FORM fbuf; local
1073 FORM fbuf; local
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dfbio.c39 #include <sys/fbuf.h>
65 struct fbuf **fbpp)
69 struct fbuf *fbp;
100 *fbpp = fbp = kmem_alloc(sizeof (struct fbuf), KM_SLEEP);
113 fbzero(vnode_t *vp, offset_t off, uint_t len, struct fbuf **fbpp)
117 struct fbuf *fbp;
130 *fbpp = fbp = kmem_alloc(sizeof (struct fbuf), KM_SLEEP);
161 kmem_free(fbp, sizeof (struct fbuf)); \
166 fbrelse(struct fbuf *fbp, enum seg_rw rw)
172 fbwrite(struct fbuf *fb
[all...]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_syslog.c36 char fbuf[SMBD_LOG_MSGSIZE]; local
54 newfmt = smb_syslog_fmt_m(fbuf, sizeof (fbuf), fmt, save_errno);
/illumos-gate/usr/src/cmd/mailx/
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *readstat; local
184 if ((fbuf = fopen(mbox, "r")) != NULL) {
185 while ((c = getc(fbuf)) != EOF)
187 fclose(fbuf);
276 FILE *obuf = 0, *fbuf = 0, *rbuf = 0; local
286 if ((fbuf = fopen(mailname, "r+")) == NULL) {
291 lock(fbuf, "r+", 1);
292 fstat(fileno(fbuf), &st);
306 fclose(fbuf);
311 fseek(fbuf, mailsiz
[all...]
H A Dcollect.c95 FILE *ibuf, *fbuf, *obuf; local
515 if ((fbuf = npopen(++cp, "r"))==NULL) {
529 if ((fbuf = fopen(cp, "r")) == NULL) {
537 while ((t = getc(fbuf)) != EOF) {
542 npclose(fbuf);
545 fclose(fbuf);
551 npclose(fbuf);
554 fclose(fbuf);
605 if ((fbuf = fopen(THELPFILE, "r")) == NULL) {
609 t = getc(fbuf);
838 FILE *fbuf; local
[all...]
/illumos-gate/usr/src/cmd/acct/
H A Dacctdusg.c78 char fbuf[PATH_MAX+1], *fb; local
113 while (fgets(fbuf, sizeof (fbuf), stdin) != NULL) {
114 if ((fb = strchr(fbuf, '\n')) != NULL) {
121 charge(fbuf);
/illumos-gate/usr/src/cmd/csh/
H A Dsh.lex.c1268 if (fbuf) {
1269 (void) blkcpy(nfbuf, fbuf);
1270 xfree((char *)fbuf);
1272 fbuf = nfbuf;
1273 fbuf[fblocks] = (tchar *)xcalloc(BUFSIZ + MB_LEN_MAX,
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...]
/illumos-gate/usr/src/cmd/flowadm/
H A Dflowadm.c500 flow_fields_buf_t *fbuf)
510 (void) snprintf(fbuf->flow_name, sizeof (fbuf->flow_name),
512 (void) snprintf(fbuf->flow_link, sizeof (fbuf->flow_link),
515 (void) dladm_flow_attr_ip2str(attr, fbuf->flow_ipaddr,
516 sizeof (fbuf->flow_ipaddr));
517 (void) dladm_flow_attr_proto2str(attr, fbuf->flow_proto,
518 sizeof (fbuf->flow_proto));
520 (void) dladm_flow_attr_port2str(attr, fbuf
499 print_flow(show_flow_state_t *state, dladm_flow_attr_t *attr, flow_fields_buf_t *fbuf) argument
542 flow_fields_buf_t fbuf; local
[all...]
/illumos-gate/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...]
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dscratchops.c86 struct stat lbuf, fbuf; local
112 if (fstat(fd, &fbuf) == -1)
114 if (lbuf.st_ino != fbuf.st_ino || lbuf.st_dev != fbuf.st_dev) {
/illumos-gate/usr/src/cmd/sh/
H A Dword.c344 * this loop won't overrun the f->fbuf buffer.
402 * to f->fbuf
404 (void) memcpy(f->fbuf, f->fnxt, rest);
405 f->fnxt = f->fbuf;
409 if (f->fbuf[rest - 1] == '\n') {
428 } while ((len = read(f->fdes, f->fbuf + rest, toread)) < 0 && trapnote);
451 f->fnxt = f->fbuf;
H A Dmode.h106 unsigned char fbuf[BUFFERSIZE]; member in struct:fileblk
/illumos-gate/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);
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/
H A Df_format.c70 uchar_t *fbuf, *p; local
370 if ((fbuf = (uchar_t *)malloc((unsigned)(4 * spt))) == 0) {
417 p = (uchar_t *)fbuf;
433 fdr_form.fdr_addr = (char *)fbuf;
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c83 char *fbuf = NULL; local
99 if ((fbuf = (char *)malloc(fsize)) == NULL) {
104 free(fbuf);
128 slen = snprintf(fbuf, nlen, "%s", ptr);
130 slen = snprintf(fbuf + plen, nlen - plen, ":%s", ptr);
132 fbuf[0] = '\0';
143 device = strtok_r(fbuf, ":", &lasts);
155 free(fbuf);
162 free(fbuf);
179 _da_read_file(char *fname, char **fbuf, time_ argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c61 char fbuf[MAXPATHLEN]; local
67 if (sm_strlcpy(fbuf, fn, sizeof fbuf) >= sizeof fbuf)
73 fn = fbuf;
/illumos-gate/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);
/illumos-gate/usr/src/cmd/luxadm/
H A Dadm.c181 char fbuf[BUFSIZ]; local
259 while ((read(fp, fbuf, BUFSIZ)) > 0) {
260 if (memstrstr(fbuf, "SUNW,socal",
269 } else if ((memstrstr(fbuf, "SUNW,ifp",
272 (memstrstr(fbuf, "SUNW,qlc",
/illumos-gate/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_tdaemon.c664 _sd_buf_handle_t *fbuf, *buf; local
683 fbuf = NULL;
686 &fbuf);
691 (void) _sd_copy_pattern_to_handle(fbuf, 0, len);
710 (void) _sd_copy_handle(fbuf, buf, 0, offset, len, j);
747 (void) _sd_compare_handle(fbuf, buf, 0, offset, len, j);
756 if (sts = _sd_free_buf(fbuf))
/illumos-gate/usr/src/lib/libast/common/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;
1020 b = (unsigned char*)mp->fbuf;
1033 b = (unsigned char*)mp->fbuf;
1053 ccmaps(mp->fbuf, mp->fbsz, q, CC_NATIVE);
1095 b = (unsigned char*)mp->fbuf;
1127 if (s > mp->fbuf)
[all...]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dnl7clogd.c408 char fbuf[TYPICALMAXPATHLEN + 1]; local
465 iov.iov_base = fbuf;
479 fbuf[TYPICALMAXPATHLEN - (int)uio.uio_resid] = '\0';
483 if (strcmp(*fnp, fbuf) == 0)

Completed in 110 milliseconds

123