From: CSRG Date: Thu, 1 Dec 1994 23:46:06 +0000 (-0800) Subject: BSD 4_4_Lite2 development X-Git-Tag: BSD-4_4_Lite2~186 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/d5800796673ffe90aa6948022b63edfab4433ea2?hp=eb768e903d01326db4c1cf978a66e11efac509cf BSD 4_4_Lite2 development Work on file usr/src/contrib/nvi.1.43/PORT/isc.3/local/PATCH.rec_close.c Synthesized-from: CSRG/cd3/4.4BSD-Lite2 --- 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 index 0000000000..b98e4c3493 --- /dev/null +++ b/usr/src/contrib/nvi.1.43/PORT/isc.3/local/PATCH.rec_close.c @@ -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);