summaryrefslogtreecommitdiffstats
path: root/bin/sh/show.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-09-29 12:38:25 +0000
committertjr <tjr@FreeBSD.org>2002-09-29 12:38:25 +0000
commit8435c561b3b443cf2e01f970e7322a964489187d (patch)
tree9c79983eb33dd60caff8b7fc195e75ef9263d2e7 /bin/sh/show.c
parent1d25e6987dc3ab0f981ceb350eb3bf943ce786b8 (diff)
downloadFreeBSD-src-8435c561b3b443cf2e01f970e7322a964489187d.zip
FreeBSD-src-8435c561b3b443cf2e01f970e7322a964489187d.tar.gz
Remove dead code which supported systems without O_APPEND, O_CREAT or SIGTSTP.
Diffstat (limited to 'bin/sh/show.c')
-rw-r--r--bin/sh/show.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/bin/sh/show.c b/bin/sh/show.c
index 9baac48..bc2ea28 100644
--- a/bin/sh/show.c
+++ b/bin/sh/show.c
@@ -374,9 +374,7 @@ opentrace(void)
{
char s[100];
char *getenv();
-#ifdef O_APPEND
int flags;
-#endif
if (!debug)
return;
@@ -399,10 +397,8 @@ opentrace(void)
fprintf(stderr, "Can't open %s: %s\n", s, strerror(errno));
return;
}
-#ifdef O_APPEND
if ((flags = fcntl(fileno(tracefile), F_GETFL, 0)) >= 0)
fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND);
-#endif
fputs("\nTracing started.\n", tracefile);
fflush(tracefile);
}
OpenPOWER on IntegriCloud