Lines Matching refs:ptr

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