Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2007-11-27 00:30:49 +0300
committerChristopher Faylor <me@cgf.cx>2007-11-27 00:30:49 +0300
commitee4388c4200ed46ebeb8509f6dd204a6476017dc (patch)
tree55fd4f1c7f8e169eb4aad0c646333be0cc2a1da3 /winsup/cygwin/fhandler_process.cc
parent32cba6cb3a8366df854ba24ece2a60f1b2f872a3 (diff)
Change many cygheap allocation routines to their *_abort analogs.
* cygheap.cc (cmalloc_abort): New function. (crealloc_abort): Ditto. (ccalloc_abort): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 6ba9fd4cc..758c34d3e 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -379,7 +379,7 @@ fhandler_process::fill_filebuf ()
case PROCESS_CTTY:
case PROCESS_PPID:
{
- filebuf = (char *) crealloc (filebuf, bufalloc = 40);
+ filebuf = (char *) crealloc_abort (filebuf, bufalloc = 40);
int num;
switch (fileid)
{
@@ -442,7 +442,7 @@ fhandler_process::fill_filebuf ()
case PROCESS_EXENAME:
case PROCESS_EXE:
{
- filebuf = (char *) crealloc (filebuf, bufalloc = CYG_MAX_PATH);
+ filebuf = (char *) crealloc_abort (filebuf, bufalloc = CYG_MAX_PATH);
if (p->process_state & PID_EXITED)
strcpy (filebuf, "<defunct>");
else
@@ -466,7 +466,7 @@ fhandler_process::fill_filebuf ()
}
case PROCESS_WINPID:
{
- filebuf = (char *) crealloc (filebuf, bufalloc = 40);
+ filebuf = (char *) crealloc_abort (filebuf, bufalloc = 40);
__small_sprintf (filebuf, "%d\n", p->dwProcessId);
filesize = strlen (filebuf);
break;
@@ -474,7 +474,7 @@ fhandler_process::fill_filebuf ()
case PROCESS_WINEXENAME:
{
int len = strlen (p->progname);
- filebuf = (char *) crealloc (filebuf, bufalloc = (len + 2));
+ filebuf = (char *) crealloc_abort (filebuf, bufalloc = (len + 2));
strcpy (filebuf, p->progname);
filebuf[len] = '\n';
filesize = len + 1;
@@ -482,25 +482,25 @@ fhandler_process::fill_filebuf ()
}
case PROCESS_STATUS:
{
- filebuf = (char *) crealloc (filebuf, bufalloc = 2048);
+ filebuf = (char *) crealloc_abort (filebuf, bufalloc = 2048);
filesize = format_process_status (*p, filebuf, bufalloc);
break;
}
case PROCESS_STAT:
{
- filebuf = (char *) crealloc (filebuf, bufalloc = 2048);
+ filebuf = (char *) crealloc_abort (filebuf, bufalloc = 2048);
filesize = format_process_stat (*p, filebuf, bufalloc);
break;
}
case PROCESS_STATM:
{
- filebuf = (char *) crealloc (filebuf, bufalloc = 2048);
+ filebuf = (char *) crealloc_abort (filebuf, bufalloc = 2048);
filesize = format_process_statm (*p, filebuf, bufalloc);
break;
}
case PROCESS_MAPS:
{
- filebuf = (char *) crealloc (filebuf, bufalloc = 2048);
+ filebuf = (char *) crealloc_abort (filebuf, bufalloc = 2048);
filesize = format_process_maps (*p, filebuf, bufalloc);
break;
}
@@ -563,7 +563,7 @@ format_process_maps (_pinfo *p, char *&destbuf, size_t maxsize)
st.st_ino = 0;
}
if (len + strlen (posix_modname) + 62 > maxsize - 1)
- destbuf = (char *) crealloc (destbuf, maxsize += 2048);
+ destbuf = (char *) crealloc_abort (destbuf, maxsize += 2048);
if (workingset)
for (unsigned i = 1; i <= wset_size; ++i)
{