From d5800796673ffe90aa6948022b63edfab4433ea2 Mon Sep 17 00:00:00 2001 From: CSRG Date: Thu, 1 Dec 1994 15:46:06 -0800 Subject: [PATCH] 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 --- .../nvi.1.43/PORT/isc.3/local/PATCH.rec_close.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 usr/src/contrib/nvi.1.43/PORT/isc.3/local/PATCH.rec_close.c 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); -- 2.20.1