BSD 4_4_Lite2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 1 Dec 1994 23:46:06 +0000 (15:46 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 1 Dec 1994 23:46:06 +0000 (15:46 -0800)
Work on file usr/src/contrib/nvi.1.43/PORT/isc.3/local/PATCH.rec_close.c

Synthesized-from: CSRG/cd3/4.4BSD-Lite2

usr/src/contrib/nvi.1.43/PORT/isc.3/local/PATCH.rec_close.c [new file with mode: 0644]

diff --git a/usr/src/contrib/nvi.1.43/PORT/isc.3/local/PATCH.rec_close.c b/usr/src/contrib/nvi.1.43/PORT/isc.3/local/PATCH.rec_close.c
new file mode 100644 (file)
index 0000000..b98e4c3
--- /dev/null
@@ -0,0 +1,14 @@
+*** PORT/db/recno/rec_close.c.orig     Fri Aug 19 01:23:29 1994
+--- PORT/db/recno/rec_close.c  Wed Nov  2 17:02:42 1994
+***************
+*** 175,180 ****
+--- 179,187 ----
+               return (RET_ERROR);
+       if ((off = lseek(t->bt_rfd, (off_t)0, SEEK_CUR)) == -1)
+               return (RET_ERROR);
++ #ifdef FTRUNCATE_NOT_AVAILABLE
++ # define ftruncate chsize
++ #endif
+       if (ftruncate(t->bt_rfd, off))
+               return (RET_ERROR);
+       F_CLR(t, R_MODIFIED);