Lines Matching refs:new_f
74 } *new_f; in open_wmemstream() local
77 new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE)); in open_wmemstream()
78 if (new_f == NULL) in open_wmemstream()
81 new_f->fp._sf._sbf._f._lock = &new_f->lock; in open_wmemstream()
87 free (new_f); in open_wmemstream()
90 _IO_no_init (&new_f->fp._sf._sbf._f, 0, 0, &new_f->wd, &_IO_wmem_jumps); in open_wmemstream()
91 _IO_fwide (&new_f->fp._sf._sbf._f, 1); in open_wmemstream()
92 _IO_wstr_init_static (&new_f->fp._sf._sbf._f, buf, in open_wmemstream()
94 new_f->fp._sf._sbf._f._flags2 &= ~_IO_FLAGS2_USER_WBUF; in open_wmemstream()
95 new_f->fp._sf._s._allocate_buffer_unused = (_IO_alloc_type) malloc; in open_wmemstream()
96 new_f->fp._sf._s._free_buffer_unused = (_IO_free_type) free; in open_wmemstream()
98 new_f->fp.bufloc = bufloc; in open_wmemstream()
99 new_f->fp.sizeloc = sizeloc; in open_wmemstream()
102 new_f->fp._sf._sbf._f._flags2 |= _IO_FLAGS2_NEED_LOCK; in open_wmemstream()
104 return (FILE *) &new_f->fp._sf._sbf; in open_wmemstream()