Lines Matching refs:ptr
209 bi->ptr=NULL;
219 if ((a->init) && (a->ptr != NULL))
222 UP_fclose (a->ptr);
224 fclose (a->ptr);
225 a->ptr=NULL;
240 ret=UP_fread(out,1,(int)outl,b->ptr);
242 ret=fread(out,1,(int)outl,(FILE *)b->ptr);
243 if(ret == 0 && (b->flags&BIO_FLAGS_UPLINK)?UP_ferror((FILE *)b->ptr):ferror((FILE *)b->ptr))
260 ret=UP_fwrite(in,(int)inl,1,b->ptr);
262 ret=fwrite(in,(int)inl,1,(FILE *)b->ptr);
265 /* ret=fwrite(in,1,(int)inl,(FILE *)b->ptr); */
273 static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr)
276 FILE *fp=(FILE *)b->ptr;
285 ret=(long)UP_fseek(b->ptr,num,0);
298 ret=UP_ftell(b->ptr);
305 b->ptr=ptr;
313 if ((size_t)ptr >= (size_t)stdin &&
314 (size_t)ptr < (size_t)(stdin+_IOB_ENTRIES))
320 UP_fsetmod(b->ptr,(char)((num&BIO_FP_TEXT)?'t':'b'));
325 int fd = _fileno((FILE*)ptr);
331 int fd = fileno((FILE*)ptr);
338 int fd = fileno((FILE*)ptr);
354 int fd = fileno((FILE*)ptr);
395 fp=fopen(ptr,p);
399 ERR_add_error_data(5,"fopen('",ptr,"','",p,"')");
404 b->ptr=fp;
409 /* the ptr parameter is actually a FILE ** in this case. */
410 if (ptr != NULL)
412 fpp=(FILE **)ptr;
413 *fpp=(FILE *)b->ptr;
424 UP_fflush(b->ptr);
426 fflush((FILE *)b->ptr);
450 if (!UP_fgets(buf,size,bp->ptr))
455 if (!fgets(buf,size,(FILE *)bp->ptr))