projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
document distributed with 4.1BSD
[unix-history]
/
usr
/
src
/
usr.bin
/
ex
/
ex_temp.c
diff --git
a/usr/src/usr.bin/ex/ex_temp.c
b/usr/src/usr.bin/ex/ex_temp.c
index
090690d
..
f285931
100644
(file)
--- a/
usr/src/usr.bin/ex/ex_temp.c
+++ b/
usr/src/usr.bin/ex/ex_temp.c
@@
-1,5
+1,13
@@
-/* Copyright (c) 1981 Regents of the University of California */
-static char *sccsid = "@(#)ex_temp.c 7.4 %G%";
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+static char *sccsid = "@(#)ex_temp.c 7.5 (Berkeley) %G%";
+#endif not lint
+
#include "ex.h"
#include "ex_temp.h"
#include "ex_vis.h"
#include "ex.h"
#include "ex_temp.h"
#include "ex_vis.h"
@@
-326,6
+334,15
@@
oops:
lseek(tfile, 0l, 0);
if (write(tfile, (char *) &H, sizeof H) != sizeof H)
goto oops;
lseek(tfile, 0l, 0);
if (write(tfile, (char *) &H, sizeof H) != sizeof H)
goto oops;
+#ifdef notdef
+ /*
+ * This will insure that exrecover gets as much
+ * back after a crash as is absolutely possible,
+ * but can result in pregnant pauses between commands
+ * when the TSYNC call is made, so...
+ */
+ (void) fsync(tfile);
+#endif
}
TSYNC()
}
TSYNC()