Home
last modified time | relevance | path

Searched refs:f_bf (Results 1 – 21 of 21) sorted by relevance

/titanic_44/usr/src/cmd/sendmail/libsm/
H A Dvasprintf.c72 fake.f_bf.smb_base = fake.f_p = (unsigned char *)sm_malloc(SM_VA_BUFSIZE);
73 if (fake.f_bf.smb_base == NULL)
82 fake.f_bf.smb_size = fake.f_w = SM_VA_BUFSIZE - 1;
90 base = (unsigned char *) sm_realloc(fake.f_bf.smb_base, ret + 1);
97 if (fake.f_bf.smb_base != NULL)
99 sm_free(fake.f_bf.smb_base);
100 fake.f_bf.smb_base = NULL;
H A Dfvwrite.c136 size_t blen = fp->f_p - fp->f_bf.smb_base;
141 tsize = fp->f_bf.smb_size;
146 tbase = (unsigned char *) sm_realloc(fp->f_bf.smb_base,
153 fp->f_w += tsize - fp->f_bf.smb_size;
154 fp->f_bf.smb_base = tbase;
155 fp->f_bf.smb_size = tsize;
169 else if (fp->f_p > fp->f_bf.smb_base
178 else if (len >= (size_t) (w = fp->f_bf.smb_size))
231 w = fp->f_w + fp->f_bf.smb_size;
233 if (fp->f_p > fp->f_bf.smb_base && s > w)
[all …]
H A Dsetvbuf.c91 sm_free((void *) fp->f_bf.smb_base);
92 fp->f_bf.smb_base = NULL;
137 fp->f_bf.smb_base = fp->f_p = fp->f_nbuf;
138 fp->f_bf.smb_size = 1;
166 fp->f_bf.smb_base = fp->f_p = (unsigned char *)buf;
167 fp->f_bf.smb_size = size;
179 fp->f_lbfsize = -fp->f_bf.smb_size;
H A Dmakebuf.c52 fp->f_bf.smb_base = fp->f_p = fp->f_nbuf;
53 fp->f_bf.smb_size = 1;
60 fp->f_bf.smb_base = fp->f_p = fp->f_nbuf;
61 fp->f_bf.smb_size = 1;
67 fp->f_bf.smb_base = fp->f_p = p;
68 fp->f_bf.smb_size = size;
H A Dwsetup.c64 fp->f_p = fp->f_bf.smb_base;
70 if (fp->f_bf.smb_base == NULL)
81 fp->f_lbfsize = -fp->f_bf.smb_size;
84 fp->f_w = fp->f_flags & SMNBF ? 0 : fp->f_bf.smb_size;
H A Dfseek.c167 curoff += fp->f_p - fp->f_bf.smb_base;
195 if (fp->f_bf.smb_base == NULL)
251 n = fp->f_up - fp->f_bf.smb_base;
257 n = fp->f_p - fp->f_bf.smb_base;
273 fp->f_p = fp->f_bf.smb_base + o;
295 fp->f_p = fp->f_bf.smb_base;
333 fp->f_p = fp->f_bf.smb_base;
H A Dwbuf.c77 n = fp->f_p - fp->f_bf.smb_base;
78 if (n >= fp->f_bf.smb_size)
86 if (++n == fp->f_bf.smb_size || (fp->f_flags & SMLBF && c == '\n'))
H A Dfpurge.c49 fp->f_p = fp->f_bf.smb_base;
53 fp->f_w = fp->f_flags & (SMLBF|SMNBF) ? 0 : fp->f_bf.smb_size;
H A Dvsnprintf.c68 fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;
69 fake.f_bf.smb_size = fake.f_w = n - 1;
H A Dsnprintf.c73 fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;
74 fake.f_bf.smb_size = fake.f_w = n ? n - 1 : 0;
H A Drefill.c219 if (fp->f_bf.smb_base == NULL)
239 fp->f_p = fp->f_bf.smb_base;
251 r = (*fp->f_read)(fp, (char *)fp->f_p, fp->f_bf.smb_size);
H A Dsscanf.c86 fake.f_bf.smb_base = fake.f_p = (unsigned char *) str;
87 fake.f_bf.smb_size = fake.f_r = strlen(str);
H A Dfclose.c142 sm_free((char *)fp->f_bf.smb_base);
143 fp->f_bf.smb_base = NULL;
H A Dfflush.c111 if ((p = fp->f_bf.smb_base) == NULL)
129 fp->f_w = t & (SMLBF|SMNBF) ? 0 : fp->f_bf.smb_size; /* implies SMFBF */
H A Dungetc.c161 if (fp->f_bf.smb_base != NULL && fp->f_p > fp->f_bf.smb_base &&
H A Dfpos.c147 pos += fp->f_p - fp->f_bf.smb_base;
H A Dstrio.c484 fp->f_bf.smb_base = fp->f_p = (unsigned char *) buf;
485 fp->f_bf.smb_size = fp->f_w = (size ? size - 1 : 0);
H A Dfindfp.c185 fp->f_bf.smb_base = NULL; /* no buffer */
186 fp->f_bf.smb_size = 0; /* no buffer size with no buffer */
H A Dlocal.h84 ((((fp)->f_flags & SMWR) == 0 || (fp)->f_bf.smb_base == NULL) && \
H A Dvfprintf.c126 fake.f_bf.smb_base = fake.f_p = buf;
127 fake.f_bf.smb_size = fake.f_w = sizeof(buf);
/titanic_44/usr/src/cmd/sendmail/include/sm/
H A Dio.h115 struct smbuf f_bf; /* the buffer (>= 1 byte, if !NULL) */ member
198 (f).f_bf.smb_base = (unsigned char *) 0; \
199 (f).f_bf.smb_size = 0; \