Searched refs:f_bf (Results 1 – 21 of 21) sorted by relevance
72 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;
136 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_base178 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 …]
91 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;
52 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;
64 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;
167 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;
77 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'))
49 fp->f_p = fp->f_bf.smb_base;53 fp->f_w = fp->f_flags & (SMLBF|SMNBF) ? 0 : fp->f_bf.smb_size;
68 fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;69 fake.f_bf.smb_size = fake.f_w = n - 1;
73 fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;74 fake.f_bf.smb_size = fake.f_w = n ? n - 1 : 0;
219 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);
86 fake.f_bf.smb_base = fake.f_p = (unsigned char *) str;87 fake.f_bf.smb_size = fake.f_r = strlen(str);
142 sm_free((char *)fp->f_bf.smb_base);143 fp->f_bf.smb_base = NULL;
111 if ((p = fp->f_bf.smb_base) == NULL)129 fp->f_w = t & (SMLBF|SMNBF) ? 0 : fp->f_bf.smb_size; /* implies SMFBF */
161 if (fp->f_bf.smb_base != NULL && fp->f_p > fp->f_bf.smb_base &&
147 pos += fp->f_p - fp->f_bf.smb_base;
484 fp->f_bf.smb_base = fp->f_p = (unsigned char *) buf;485 fp->f_bf.smb_size = fp->f_w = (size ? size - 1 : 0);
185 fp->f_bf.smb_base = NULL; /* no buffer */186 fp->f_bf.smb_size = 0; /* no buffer size with no buffer */
84 ((((fp)->f_flags & SMWR) == 0 || (fp)->f_bf.smb_base == NULL) && \
126 fake.f_bf.smb_base = fake.f_p = buf;127 fake.f_bf.smb_size = fake.f_w = sizeof(buf);
115 struct smbuf f_bf; /* the buffer (>= 1 byte, if !NULL) */ member198 (f).f_bf.smb_base = (unsigned char *) 0; \199 (f).f_bf.smb_size = 0; \