buf = ALLOC_BUF (_IO_BUFSIZ);
buf = malloc (_IO_BUFSIZ); if (buf == NULL) return NULL;
open_memstream (bufloc, sizeloc)     char **bufloc;     _IO_size_t *sizeloc;{  struct locked_FILE  {    struct _IO_FILE_memstream fp;#ifdef _IO_MTSAFE_IO    _IO_lock_t lock;#endif  } *new_f;  char *buf;  new_f = (struct locked_FILE *) malloc (sizeof (struct locked_FILE));  if (new_f == NULL)    return NULL;#ifdef _IO_MTSAFE_IO  new_f->fp._sf._sbf._f._lock = &new_f->lock;#endif  buf = ALLOC_BUF (_IO_BUFSIZ);  _IO_init (&new_f->fp._sf._sbf._f, 0);  _IO_JUMPS (&new_f->fp._sf._sbf._f) = &_IO_mem_jumps;  _IO_str_init_static (&new_f->fp._sf._sbf._f, buf, _IO_BUFSIZ, buf);  new_f->fp._sf._sbf._f._flags &= ~_IO_USER_BUF;  new_f->fp._sf._s._allocate_buffer = (_IO_alloc_type) malloc;  new_f->fp._sf._s._free_buffer = (_IO_free_type) free;  new_f->fp.bufloc = bufloc;  new_f->fp.sizeloc = sizeloc;  return &new_f->fp._sf._sbf._f;}