Searched defs:fbuf (Results 1 - 25 of 30) sorted by relevance

12

/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/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/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/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/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/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/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/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/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/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/scsi/common/
H A Ds_generic.c795 char *fbuf; local
854 fbuf = (char *)mmap(0, shared_bufsize, PROT_READ | PROT_WRITE,
856 if (fbuf == (char *)-1) {
888 handle->sm_buf = fbuf;
/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)
/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/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",
H A Dfcalupdate.c145 char fbuf[BUFSIZ]; local
165 fbuf, BUFSIZ)) > 0)) {
169 if (strncmp((fbuf + fbuf_idx), SOCAL_STR,
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_lock.c90 struct stat fbuf; local
108 if (fstat(state_fd, &fbuf) != 0) {
114 size = fbuf.st_size;
/illumos-gate/usr/src/cmd/sh/
H A Dmode.h106 unsigned char fbuf[BUFFERSIZE]; member in struct:fileblk
/illumos-gate/usr/src/cmd/fdformat/
H A Dfdformat.c458 uchar_t *fbuf, *p; local
850 if ((fbuf = (uchar_t *)malloc((unsigned)(4 * spt))) == 0) {
887 p = (uchar_t *)fbuf;
903 fdr_form.fdr_addr = (char *)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/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/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/csh/
H A Dsh.h224 #define fbuf B.Bfbuf macro
/illumos-gate/usr/src/cmd/smserverd/
H A Dsmediad.c1793 void *fbuf; local
1808 fbuf = mmap(0, req->reqset_shfd.fdbuf_len,
1810 if (fbuf == MAP_FAILED) {
1816 door_dp->dd_buf = fbuf;

Completed in 115 milliseconds

12