version 1.13, 2003/10/24 20:32:06 |
version 1.14, 2004/05/10 12:10:50 |
|
|
} |
} |
|
|
/* |
/* |
* Clobber as many bytes of stack as the user requests. |
|
*/ |
|
int |
|
clobber(void *v) |
|
{ |
|
char **argv = v; |
|
int times; |
|
|
|
if (argv[0] == 0) |
|
times = 1; |
|
else |
|
times = (atoi(argv[0]) + 511) / 512; |
|
clob1(times); |
|
return(0); |
|
} |
|
|
|
/* |
|
* Clobber the stack. |
|
*/ |
|
void |
|
clob1(n) |
|
int n; |
|
{ |
|
char buf[512]; |
|
char *cp; |
|
|
|
if (n <= 0) |
|
return; |
|
for (cp = buf; cp < &buf[512]; *cp++ = 0xFF) |
|
; |
|
clob1(n - 1); |
|
} |
|
|
|
/* |
|
* Add the given header fields to the retained list. |
* Add the given header fields to the retained list. |
* If no arguments, print the current list of retained fields. |
* If no arguments, print the current list of retained fields. |
*/ |
*/ |