Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOF not
	_IO_SEEKPOS, saving one indirect jump.
  • Loading branch information
Ulrich Drepper committed Dec 6, 2004
1 parent c03c66d commit 77d16e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2004-12-06 Ulrich Drepper <drepper@redhat.com>

* 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.

Expand Down
4 changes: 2 additions & 2 deletions libio/ioseekpos.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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);
}


Expand Down

0 comments on commit 77d16e2

Please sign in to comment.