diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-01 01:30:33 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-01 01:30:33 +0000 |
commit | 25b2946cef8c77dbebd24bab25d417c6d5a37c01 (patch) | |
tree | f5531a75f6f0027fd328aabb711bfb4d5251b612 /bin/sh | |
parent | b67e739398bc80e790ee16f79e3a1d8c9fe28d01 (diff) | |
download | FreeBSD-src-25b2946cef8c77dbebd24bab25d417c6d5a37c01.zip FreeBSD-src-25b2946cef8c77dbebd24bab25d417c6d5a37c01.tar.gz |
Remove some kind of profiling support that required the 4.2BSD monitor()
function in libc.
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/main.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bin/sh/main.c b/bin/sh/main.c index 9dd4fd7..f47ab0a 100644 --- a/bin/sh/main.c +++ b/bin/sh/main.c @@ -77,14 +77,8 @@ __FBSDID("$FreeBSD$"); #include "exec.h" #include "cd.h" -#define PROFILE 0 - int rootpid; int rootshell; -#if PROFILE -short profile_buf[16384]; -extern int etext(); -#endif STATIC void read_profile(char *); STATIC char *find_dot_file(char *); @@ -105,9 +99,6 @@ main(int argc, char *argv[]) volatile int state; char *shinit; -#if PROFILE - monitor(4, etext, profile_buf, sizeof profile_buf, 50); -#endif (void) setlocale(LC_ALL, ""); state = 0; if (setjmp(jmploc.loc)) { @@ -195,9 +186,6 @@ state3: state4: /* XXX ??? - why isn't this before the "if" statement */ cmdloop(1); } -#if PROFILE - monitor(0); -#endif exitshell(exitstatus); /*NOTREACHED*/ return 0; |