From a26988784adabc85fcaaa92da730a00a786154f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 12 Oct 2005 15:52:35 +0000 Subject: [PATCH] added _fseek for R5 compatibility git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14365 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/stdio/Jamfile | 1 + src/system/libroot/posix/stdio/_fseek.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/system/libroot/posix/stdio/_fseek.c diff --git a/src/system/libroot/posix/stdio/Jamfile b/src/system/libroot/posix/stdio/Jamfile index b876183916..64d094b54c 100644 --- a/src/system/libroot/posix/stdio/Jamfile +++ b/src/system/libroot/posix/stdio/Jamfile @@ -1,6 +1,7 @@ SubDir OBOS_TOP src system libroot posix stdio ; KernelMergeObject posix_stdio.o : + _fseek.c <$(SOURCE_GRIST)>remove.c <$(SOURCE_GRIST)>rename.c # The other files are superseded by the glibc libio/stdio stuff diff --git a/src/system/libroot/posix/stdio/_fseek.c b/src/system/libroot/posix/stdio/_fseek.c new file mode 100644 index 0000000000..ebcd944fd7 --- /dev/null +++ b/src/system/libroot/posix/stdio/_fseek.c @@ -0,0 +1,12 @@ +/* +** Copyright 2005, Jérôme Duval. All rights reserved. +** Distributed under the terms of the Haiku License. +*/ + +#include + +int +_fseek(FILE *stream, fpos_t offset, int seekType) +{ + return fseeko(stream, offset, seekType); +}