• Paul Eggert's avatar
    [ChangeLog] · 531b0165
    Paul Eggert authored
    Malloc failure behavior now depends on size of allocation.
    * lib/allocator.h (struct allocator.die): New size arg.
    * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
    If the actual problem is an ssize_t limitation, not a size_t or
    malloc failure, fail with errno == ENAMETOOLONG instead of calling 'die'.
    [src/ChangeLog]
    Malloc failure behavior now depends on size of allocation.
    * alloc.c (buffer_memory_full, memory_full): New arg NBYTES.
    * lisp.h: Change signatures accordingly.
    * alloc.c, buffer.c, editfns.c, menu.c, minibuf.c, xterm.c:
    All callers changed.
    531b0165
careadlinkat.c 5.22 KB