From df4d5d3faa53ebb8d5dbf99484a2bd3b885a76d4 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Tue, 28 Nov 2017 14:30:38 +0000 Subject: [PATCH] update truncate --- dka64/patches/newlib-2.5.0.20170922.patch | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dka64/patches/newlib-2.5.0.20170922.patch b/dka64/patches/newlib-2.5.0.20170922.patch index 66bd47a..6018cf0 100644 --- a/dka64/patches/newlib-2.5.0.20170922.patch +++ b/dka64/patches/newlib-2.5.0.20170922.patch @@ -6973,10 +6973,10 @@ index 000000000..45e9781ca + diff --git a/libgloss/libsysbase/truncate.c b/libgloss/libsysbase/truncate.c new file mode 100644 -index 000000000..4ff1d27c8 +index 000000000..a6df19626 --- /dev/null +++ b/libgloss/libsysbase/truncate.c -@@ -0,0 +1,58 @@ +@@ -0,0 +1,56 @@ +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> @@ -7002,12 +7002,10 @@ index 000000000..4ff1d27c8 + devoptab_list[dev]->ftruncate_r) + { + -+ fd = __alloc_handle(sizeof(__handle) + devoptab_list[dev]->structSize ); ++ fd = __alloc_handle(dev); + + if ( -1 != fd ) { + handle = __get_handle(fd); -+ handle->device = dev; -+ handle->fileStruct = ((void *)handle) + sizeof(__handle); + + r->deviceData = devoptab_list[dev]->deviceData; +