| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>Developers Guide To ACEDB 4_9 Utility Routines</TITLE> |
| 5 |
|
| 6 |
<LINK rel=stylesheet type="text/css" |
| 7 |
href="./wdoc.css" |
| 8 |
title="Style sheet for wdoc developer documents"> |
| 9 |
|
| 10 |
</HEAD> |
| 11 |
|
| 12 |
|
| 13 |
<BODY> |
| 14 |
|
| 15 |
<BLOCKQUOTE> |
| 16 |
<DIV ALIGN=CENTER> |
| 17 |
<IMG SRC="./acedb-logo.gif" ALT="[ACEDB 4_9 DOCUMENTATION]" align=middle> |
| 18 |
<H3> |
| 19 |
ACEDB Version 4_9 |
| 20 |
</H3> |
| 21 |
</DIV> |
| 22 |
|
| 23 |
|
| 24 |
<DIV ALIGN=CENTER> |
| 25 |
|
| 26 |
<H1 align=center> |
| 27 |
Developers Guide To ACEDB 4_9 Utility Routines |
| 28 |
</H1> |
| 29 |
|
| 30 |
<ADDRESS>Originally written by<BR> |
| 31 |
Ed Griffiths <[email protected]>, September 2001</ADDRESS> |
| 32 |
|
| 33 |
</DIV> |
| 34 |
|
| 35 |
|
| 36 |
<H2>utUnlimitResources()</H2> |
| 37 |
|
| 38 |
<H3>SYNOPSIS</H3> |
| 39 |
|
| 40 |
<PRE> |
| 41 |
<B>#include <<A HREF="file:../wh/regular.h">regular.h</A>></B> |
| 42 |
|
| 43 |
<B>void utUnlimitResources(BOOL </B><I>allow_user_abort</I><B>) ;</B> |
| 44 |
</PRE> |
| 45 |
|
| 46 |
<H3>DESCRIPTION</H3> |
| 47 |
|
| 48 |
<P>Use this function to raise process resource limits to the maximum |
| 49 |
permitted. Currently the routine only raises the stack and data size |
| 50 |
limits. Note that the "maximum permitted" is defined by the "hard" limit for the process |
| 51 |
and that this hard limit can only be raised by the superuser, for some limits |
| 52 |
this may require a kernel rebuild. |
| 53 |
|
| 54 |
<P>If <I>allow_user_abort</I> is <b>TRUE</b> then the code will give the user |
| 55 |
the chance to exit if any of the following conditions are true: |
| 56 |
<ul> |
| 57 |
<li>maximum data size < 50MB |
| 58 |
<li>maximum stack size < 4MB |
| 59 |
</ul> |
| 60 |
<P>The code aborts using <b>messExit()</b> so any user defined exit routines |
| 61 |
will be called. |
| 62 |
|
| 63 |
<P>The code makes use of the getrlimit() & setrlimit() routines which are not |
| 64 |
part of the <b>POSIX</b> or <b>ANSI C</b> standards, so the routine will only have any effect on |
| 65 |
systems that support these routines. |
| 66 |
|
| 67 |
|
| 68 |
<HR> |
| 69 |
<H3 ALIGN="CENTER">ACEDB Version 4_9</H3> |
| 70 |
|
| 71 |
|
| 72 |
<HR> |
| 73 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 74 |
<!-- hhmts start --> |
| 75 |
Last modified: Wed Sep 5 15:47:05 BST 2001 |
| 76 |
<!-- hhmts end --> |
| 77 |
|
| 78 |
</BLOCKQUOTE> |
| 79 |
</BODY> |
| 80 |
</HTML> |