Home
last modified time | relevance | path

Searched refs:new_f (Results 1 – 10 of 10) sorted by relevance

/glibc-2.36/libio/
Doldiofdopen.c47 } *new_f; in _IO_old_fdopen() local
96 new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE)); in _IO_old_fdopen()
97 if (new_f == NULL) in _IO_old_fdopen()
100 new_f->fp.file._file._lock = &new_f->lock; in _IO_old_fdopen()
102 _IO_old_init (&new_f->fp.file._file, 0); in _IO_old_fdopen()
103 _IO_JUMPS_FILE_plus (&new_f->fp) = &_IO_old_file_jumps; in _IO_old_fdopen()
104 _IO_old_file_init_internal ((struct _IO_FILE_plus *) &new_f->fp); in _IO_old_fdopen()
105 if (_IO_old_file_attach (&new_f->fp.file._file, fd) == NULL) in _IO_old_fdopen()
107 _IO_un_link ((struct _IO_FILE_plus *) &new_f->fp); in _IO_old_fdopen()
108 free (new_f); in _IO_old_fdopen()
[all …]
Dwmemstream.c74 } *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()
[all …]
Diofdopen.c44 } *new_f; in _IO_new_fdopen() local
122 new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE)); in _IO_new_fdopen()
123 if (new_f == NULL) in _IO_new_fdopen()
126 new_f->fp.file._lock = &new_f->lock; in _IO_new_fdopen()
128 _IO_no_init (&new_f->fp.file, 0, 0, &new_f->wd, in _IO_new_fdopen()
134 _IO_JUMPS (&new_f->fp) = in _IO_new_fdopen()
139 _IO_new_file_init_internal (&new_f->fp); in _IO_new_fdopen()
145 new_f->fp.file._fileno = fd; in _IO_new_fdopen()
146 new_f->fp.file._flags &= ~_IO_DELETE_DONT_CLOSE; in _IO_new_fdopen()
148 _IO_mask_flags (&new_f->fp.file, read_write, in _IO_new_fdopen()
[all …]
Dmemstream.c73 } *new_f; in __open_memstream() local
76 new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE)); in __open_memstream()
77 if (new_f == NULL) in __open_memstream()
80 new_f->fp._sf._sbf._f._lock = &new_f->lock; in __open_memstream()
86 free (new_f); in __open_memstream()
89 _IO_init_internal (&new_f->fp._sf._sbf._f, 0); in __open_memstream()
90 _IO_JUMPS_FILE_plus (&new_f->fp._sf._sbf) = &_IO_mem_jumps; in __open_memstream()
91 _IO_str_init_static_internal (&new_f->fp._sf, buf, BUFSIZ, buf); in __open_memstream()
92 new_f->fp._sf._sbf._f._flags &= ~_IO_USER_BUF; in __open_memstream()
93 new_f->fp._sf._s._allocate_buffer_unused = (_IO_alloc_type) malloc; in __open_memstream()
[all …]
Diofopen.c65 } *new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE)); in __fopen_internal() local
67 if (new_f == NULL) in __fopen_internal()
70 new_f->fp.file._lock = &new_f->lock; in __fopen_internal()
72 _IO_no_init (&new_f->fp.file, 0, 0, &new_f->wd, &_IO_wfile_jumps); in __fopen_internal()
73 _IO_JUMPS (&new_f->fp) = &_IO_file_jumps; in __fopen_internal()
74 _IO_new_file_init_internal (&new_f->fp); in __fopen_internal()
75 if (_IO_file_fopen ((FILE *) new_f, filename, mode, is32) != NULL) in __fopen_internal()
76 return __fopen_maybe_mmap (&new_f->fp.file); in __fopen_internal()
78 _IO_un_link (&new_f->fp); in __fopen_internal()
79 free (new_f); in __fopen_internal()
Doldiofopen.c45 } *new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE)); in _IO_old_fopen() local
47 if (new_f == NULL) in _IO_old_fopen()
50 new_f->fp.file._file._lock = &new_f->lock; in _IO_old_fopen()
52 _IO_old_init (&new_f->fp.file._file, 0); in _IO_old_fopen()
53 _IO_JUMPS_FILE_plus (&new_f->fp) = &_IO_old_file_jumps; in _IO_old_fopen()
54 _IO_old_file_init_internal ((struct _IO_FILE_plus *) &new_f->fp); in _IO_old_fopen()
55 if (_IO_old_file_fopen ((FILE *) &new_f->fp, filename, mode) != NULL) in _IO_old_fopen()
56 return (FILE *) &new_f->fp; in _IO_old_fopen()
57 _IO_un_link ((struct _IO_FILE_plus *) &new_f->fp); in _IO_old_fopen()
58 free (new_f); in _IO_old_fopen()
Dobprintf.c125 } new_f; in __obstack_vprintf_internal() local
131 new_f.ofile.file.file._lock = NULL; in __obstack_vprintf_internal()
134 _IO_no_init (&new_f.ofile.file.file, _IO_USER_LOCK, -1, NULL, NULL); in __obstack_vprintf_internal()
135 _IO_JUMPS (&new_f.ofile.file) = &_IO_obstack_jumps; in __obstack_vprintf_internal()
154 _IO_str_init_static_internal ((struct _IO_strfile_ *) &new_f.ofile, in __obstack_vprintf_internal()
158 assert (size == (new_f.ofile.file.file._IO_write_end in __obstack_vprintf_internal()
159 - new_f.ofile.file.file._IO_write_base)); in __obstack_vprintf_internal()
160 assert (new_f.ofile.file.file._IO_write_ptr in __obstack_vprintf_internal()
161 == (new_f.ofile.file.file._IO_write_base in __obstack_vprintf_internal()
165 new_f.ofile.obstack = obstack; in __obstack_vprintf_internal()
[all …]
Diopopen.c227 } *new_f; in _IO_new_popen() local
230 new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE)); in _IO_new_popen()
231 if (new_f == NULL) in _IO_new_popen()
234 new_f->fpx.file.file._lock = &new_f->lock; in _IO_new_popen()
236 fp = &new_f->fpx.file.file; in _IO_new_popen()
238 _IO_JUMPS (&new_f->fpx.file) = &_IO_proc_jumps; in _IO_new_popen()
239 _IO_new_file_init_internal (&new_f->fpx.file); in _IO_new_popen()
241 return (FILE *) &new_f->fpx.file; in _IO_new_popen()
242 _IO_un_link (&new_f->fpx.file); in _IO_new_popen()
243 free (new_f); in _IO_new_popen()
Doldiopopen.c146 } *new_f; in _IO_old_popen() local
149 new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE)); in _IO_old_popen()
150 if (new_f == NULL) in _IO_old_popen()
153 new_f->fpx.file.file._file._lock = &new_f->lock; in _IO_old_popen()
155 fp = &new_f->fpx.file.file._file; in _IO_old_popen()
157 _IO_JUMPS_FILE_plus (&new_f->fpx.file) = &_IO_old_proc_jumps; in _IO_old_popen()
158 _IO_old_file_init_internal ((struct _IO_FILE_plus *) &new_f->fpx.file); in _IO_old_popen()
161 _IO_un_link ((struct _IO_FILE_plus *) &new_f->fpx.file); in _IO_old_popen()
162 free (new_f); in _IO_old_popen()
Diofopncook.c185 } *new_f; in _IO_fopencookie() local
205 new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE)); in _IO_fopencookie()
206 if (new_f == NULL) in _IO_fopencookie()
209 new_f->cfile.__fp.file._lock = &new_f->lock; in _IO_fopencookie()
212 _IO_cookie_init (&new_f->cfile, read_write, cookie, io_functions); in _IO_fopencookie()
214 return (FILE *) &new_f->cfile.__fp; in _IO_fopencookie()