Skip to contentSkip to conversation

glibc 2.0.4 bug ...

DISCUSSION Ralf Baechle 2 participants 2 messages Sep 24, 1997 MIPS

lore
Share & tools
lore
#0 lore raw

Hi all,

glibc 2.0.4 contains a fatal bug. It does not declare a prototype for the function llseek in unistd.h. As result GCC will (correctly) truncate the 64 bit file offset and build erroneous filesystems when building filesystems of 2GB. e2fsck will complain about read errors when trying to read blocks from the 2GB border on. Actually I wonder why I never saw a report about that on other mailinglists.

Quickfix: add the following prototype for llseek(2):

extern loff_t llseek (int fd, loff_t offset, int whence);

Ralf

#1 lore raw

From: Ralf Baechle <[email protected]>
Subject: glibc 2.0.4 bug ...
Date: Wed, 24 Sep 1997 00:15:10 -0700 (PDT)

Quoted 3 lines

Quickfix: add the following prototype for llseek(2):

extern loff_t llseek (int fd, loff_t offset, int whence);

I've mentioned this several times: llseek is an internal function. What we need is the LFS interface which then defines lseek64.

-- Uli
---------------. [email protected] ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions --' [email protected] ------------------------