1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
* 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:
Ulrich Drepper
2000-10-01 19:08:30 +00:00
parent 4a9dcff10e
commit d77cd295eb
6 changed files with 32 additions and 22 deletions

View File

@@ -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;
}