lkml.org 
[lkml]   [1999]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 2.3.27 acct.c KSTK_EIP/ESP redefined
Removed unused defines and tidied a comment, saving a couple of bytes.

-Mike

--- linux-2.3.27/kernel/acct.c.org Fri Nov 12 10:39:42 1999
+++ linux-2.3.27/kernel/acct.c Fri Nov 12 10:42:24 1999
@@ -252,17 +252,12 @@
/*
* Write an accounting entry for an exiting process
*
- * The acct_process() call is the workhorse of the process
+ * The do_acct_process() call is the workhorse of the process
* accounting system. The struct acct is built here and then written
* into the accounting file. This function should only be called from
* do_exit().
*/
-#define KSTK_EIP(stack) (((unsigned long *)(stack))[1019])
-#define KSTK_ESP(stack) (((unsigned long *)(stack))[1022])

-/*
- * do_acct_process does all actual work.
- */
static int do_acct_process(long exitcode, struct file *file)
{
struct acct ac;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.052 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site