Stacksize. Microware C Compiler
Advertisement
Advertisement
Chapter 3. C System Calls
#define
#define
#define
SIGWAKE 1
SIGQUIT 2
SIGINT 3
/* wake up */
/* keyboard abort */
/* keyboard interrupt */
/* special addresses */
#define
#define
SIG_DFL 0
SIG_IGN 1
/* reset to default */
/* ignore */
Please note that there is another method of trapping signals, namely "intercept()"
(q.v.). However, since "signal()" and "intercept()" are mutually incompatible, calls to both of them must not appear in the same program. The link-loader will preven the creation of an executable program in which both are called by aborting with an "entry name clash" error for "_sigint".
See Also
intercept(), OS-9 shell command "kill", kill()
Stacksize
Name
Stacksize, Freemem
— obtain stack reservation size
Synopsis
stacksize (void); freemem
(void);
Description
For a description of the meaning and use of this call, the user is referred to the
Memory Management section of this manual.
If the stack check code is in effect, a call to stacksize will return the maximum number of bytes of stack used at the time of the call. This call can be used to determine the stack size required by a program.
Freemem() will return the number of bytes of the stack that has not been used.
See Also
ibrk(), sbrk(), Global variable "memend" and value "end".
Strass
Name
Strass
— byte by byte copy
39
Download
Advertisement