]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sat, 15 Feb 2003 22:31:22 +0000 (22:31 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Feb 2003 22:31:22 +0000 (22:31 +0000)
lib/ChangeLog
lib/mmap-stack.h [new file with mode: 0644]

index 83ea97aa81f52107cb8f58a3149b077af984d403..246635b3d3fedd01676464d485367c873292f861 100644 (file)
@@ -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>
 
diff --git a/lib/mmap-stack.h b/lib/mmap-stack.h
new file mode 100644 (file)
index 0000000..f093ee2
--- /dev/null
@@ -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_, ...);