From: Ulrich Drepper Date: Mon, 6 Dec 2004 22:48:11 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/fedora-glibc-20041207T1331~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77d16e2672f3998c4042f425c7c0f743fdf070b8;p=thirdparty%2Fglibc.git Update. * libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOF not _IO_SEEKPOS, saving one indirect jump. --- diff --git a/ChangeLog b/ChangeLog index 4edb15a0211..2c915f93c80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-12-06 Ulrich Drepper + * libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOF not + _IO_SEEKPOS, saving one indirect jump. + * libio/fileops.c (_IO_new_file_seekoff): Fix optimization of in-buffer seek. Remove dead code. diff --git a/libio/ioseekpos.c b/libio/ioseekpos.c index 4683ffe6c55..cfa9ed8088b 100644 --- a/libio/ioseekpos.c +++ b/libio/ioseekpos.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1997,1998,1999,2002,2003 Free Software Foundation, Inc. +/* Copyright (C) 1993,1997-1999,2002,2003,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -47,7 +47,7 @@ _IO_seekpos_unlocked (fp, pos, mode) INTUSE(_IO_free_wbackup_area) (fp); } - return _IO_SEEKPOS (fp, pos, mode); + return _IO_SEEKOFF (fp, pos, 0, mode); }