mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
* Makefile (repertoiremaps): Remove variable. (distribute): Remove repertoiremaps. (install-others): Likewise. Add .gz to charmaps. ($(inst_i18ndir)/charmaps/%): Install in gzipped format. 2000-09-30 Bruno Haible <haible@clisp.cons.org>
This commit is contained in:
@@ -21,23 +21,24 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "spawn_int.h"
|
||||
|
||||
|
||||
/* Function used to increase the size of the allocated array. This
|
||||
function is called from the `add'-functions. */
|
||||
int
|
||||
__posix_spawn_file_actions_realloc (posix_spawn_file_actions_t *file_actions)
|
||||
{
|
||||
int newalloc = file_actions->__allocated + 8;
|
||||
void *newmem = realloc (file_actions->__actions,
|
||||
file_actions->__allocated += 8);
|
||||
newalloc * sizeof (struct __spawn_action));
|
||||
|
||||
if (newmem == NULL)
|
||||
{
|
||||
/* Not enough memory. */
|
||||
file_actions->__allocated -= 8;
|
||||
return ENOMEM;
|
||||
}
|
||||
/* Not enough memory. */
|
||||
return ENOMEM;
|
||||
|
||||
file_actions->__actions = (struct __spawn_action *) newmem;
|
||||
file_actions->__allocated = newalloc;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user