findfp.c (cf04ed1bdf4e58fd2ae592a318788201feccd424) findfp.c (87275e436a0fb31fea2757532860a3ec993d2cd6)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 166 unchanged lines hidden (view full) ---

175 fp->_file = -1; /* no file */
176/* fp->_cookie = <any>; */ /* caller sets cookie, _read/_write etc */
177 fp->_ub._base = NULL; /* no ungetc buffer */
178 fp->_ub._size = 0;
179 fp->_lb._base = NULL; /* no line buffer */
180 fp->_lb._size = 0;
181/* fp->_lock = NULL; */ /* once set always set (reused) */
182 fp->_extra->orientation = 0;
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 166 unchanged lines hidden (view full) ---

175 fp->_file = -1; /* no file */
176/* fp->_cookie = <any>; */ /* caller sets cookie, _read/_write etc */
177 fp->_ub._base = NULL; /* no ungetc buffer */
178 fp->_ub._size = 0;
179 fp->_lb._base = NULL; /* no line buffer */
180 fp->_lb._size = 0;
181/* fp->_lock = NULL; */ /* once set always set (reused) */
182 fp->_extra->orientation = 0;
183#ifdef notdef
184 /* Stateful encoding/decoding is not yet supported. */
185 memset(&fp->_extra->wstate, 0, sizeof(mbstate_t));
186 memset(&fp->_extra->rstate, 0, sizeof(mbstate_t));
187#endif
183 memset(&fp->_extra->mbstate, 0, sizeof(mbstate_t));
188 return (fp);
189}
190
191/*
192 * XXX. Force immediate allocation of internal memory. Not used by stdio,
193 * but documented historically for certain applications. Bad applications.
194 */
195__warn_references(f_prealloc,

--- 58 unchanged lines hidden ---
184 return (fp);
185}
186
187/*
188 * XXX. Force immediate allocation of internal memory. Not used by stdio,
189 * but documented historically for certain applications. Bad applications.
190 */
191__warn_references(f_prealloc,

--- 58 unchanged lines hidden ---