mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-19 10:15:48 +02:00
*** empty log message ***
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
2003-02-15 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* mmap-stack.c, mmap-stack.h: New files.
|
||||
Let the caller run a function with a larger (mmap'd) stack.
|
||||
|
||||
Add Irix6 support to physmem.c.
|
||||
* physmem.c (irix_sysget): New function.
|
||||
(IRIX_SYSGET_TOTAL, IRIX_SYSGET_AVAILABLE): New macros.
|
||||
(physmem_total, physmem_available): Use them.
|
||||
(main) [DEBUG]: New function.
|
||||
|
||||
2003-02-11 Jim Meyering <jim@meyering.net>
|
||||
|
||||
|
||||
15
lib/mmap-stack.h
Normal file
15
lib/mmap-stack.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#if HAVE_MMAP_STACK
|
||||
# define RUN_WITH_BIG_STACK_2(F, A, B) \
|
||||
do \
|
||||
{ \
|
||||
run_on_mmaped_stack ((void (*) (void)) F, 2, A, B); \
|
||||
error (0, errno, _("warning: unable to use large stack")); \
|
||||
F (A, B); \
|
||||
} \
|
||||
while (0)
|
||||
#else
|
||||
# define RUN_WITH_BIG_STACK_2(F, A, B) \
|
||||
do { F (A, B); } while (0)
|
||||
#endif
|
||||
|
||||
void run_on_mmaped_stack (void (*func_) (void), size_t argc_, ...);
|
||||
Reference in New Issue
Block a user