]> git.eshelyaron.com Git - emacs.git/commit
Prepare pdumper dump file in memory, write it in one go (Bug#46881)
authorPip Cet <pipcet@gmail.com>
Tue, 2 Mar 2021 20:38:23 +0000 (20:38 +0000)
committerMattias EngdegÄrd <mattiase@acm.org>
Wed, 16 Jun 2021 07:44:32 +0000 (09:44 +0200)
commitd9698faa345a99b4a55bb02ecb324b0d8dcd2997
treefb510877d78b84795d7270a891e3a98e304c4eaa
parentdb106ea88b41e7b293f18a587cbe43685cb769a6
Prepare pdumper dump file in memory, write it in one go (Bug#46881)

* src/pdumper.c (struct dump_context): Add buf, buf_size, max_offset fields.
(dump_grow_buffer): New function.
(dump_write): Use memcpy, not an actual emacs_write.
(dump_seek): Keep track of maximum seen offset. Don't actually seek.
(Fdump_emacs_portable): Write out the file contents when done.
src/pdumper.c