Lines Matching defs:ptr
113 bi->ptr = NULL;
123 if ((a->init) && (a->ptr != NULL)) {
125 UP_fclose(a->ptr);
127 fclose(a->ptr);
128 a->ptr = NULL;
142 ret = UP_fread(out, 1, (int)outl, b->ptr);
144 ret = fread(out, 1, (int)outl, (FILE *)b->ptr);
147 ? UP_ferror((FILE *)b->ptr) : ferror((FILE *)b->ptr))) {
163 ret = UP_fwrite(in, (int)inl, 1, b->ptr);
165 ret = fwrite(in, (int)inl, 1, (FILE *)b->ptr);
168 /* ret=fwrite(in,1,(int)inl,(FILE *)b->ptr); */
178 static long file_ctrl(BIO *b, int cmd, long num, void *ptr)
181 FILE *fp = (FILE *)b->ptr;
190 ret = (long)UP_fseek(b->ptr, num, 0);
203 ret = UP_ftell(b->ptr);
210 b->ptr = ptr;
218 if (ptr == stdin || ptr == stdout || ptr == stderr)
221 if ((size_t)ptr >= (size_t)stdin &&
222 (size_t)ptr < (size_t)(stdin + _IOB_ENTRIES))
228 UP_fsetmod(b->ptr, (char)((num & BIO_FP_TEXT) ? 't' : 'b'));
233 int fd = _fileno((FILE *)ptr);
246 setvbuf((FILE *)ptr, NULL, _IONBF, 0);
248 int fd = fileno((FILE *)ptr);
261 int fd = fileno((FILE *)ptr);
295 fp = openssl_fopen(ptr, p);
299 ptr, p);
304 b->ptr = fp;
310 /* the ptr parameter is actually a FILE ** in this case. */
311 if (ptr != NULL) {
312 fpp = (FILE **)ptr;
313 *fpp = (FILE *)b->ptr;
324 ? UP_fflush(b->ptr) : fflush((FILE *)b->ptr);
353 if (!UP_fgets(buf, size, bp->ptr))
356 if (!fgets(buf, size, (FILE *)bp->ptr))
392 static long file_ctrl(BIO *b, int cmd, long num, void *ptr)