[uClibc] [uClibc 0000167]: Behavior of stat(3) when _UCLIBC_HAS_LFS_ is defined inconsistent with glibc-2.3.4

bugs at uclibc.org bugs at uclibc.org
Thu Mar 17 19:52:22 UTC 2005


The following issue has been CLOSED
======================================================================
<http://busybox.net/bugs/view.php?id=167> 
======================================================================
Reported By:                sh4d0wstr1f3
Assigned To:                uClibc
======================================================================
Project:                    uClibc
Issue ID:                   167
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
======================================================================
Date Submitted:             03-16-2005 09:45 PST
Last Modified:              03-17-2005 11:52 PST
======================================================================
Summary:                    Behavior of stat(3) when _UCLIBC_HAS_LFS_ is defined
inconsistent with glibc-2.3.4
Description: 
Built i686-uclibc-gcc cross from 0.9.26, binutils-2.14.90.0.6, gcc-3.2.3,
kernel headers 2.2.19. _UCLIBC_HAS_LFS_ was set for this build as behavior
when it is NOT set causes message that effectively says "uClibc wasn't
built with LFS, so go rebuild it" ... and that's what I did.

Calls to stat(3) on glibc invoke a syscall to stat64(2), irregardless of
whether `getconf LFS_CFLAGS` are set or `getconf LFS64_CFLAGS` are set.
Calls to stat(3) on uclibc invoke a syscall to stat(2), irregardless of
whether `getconf LFS_CFLAGS` are set or `getconf LFS64_CFLAGS` are set.

Expected behavior:

Calls to stat(3) always yield a call to stat64(2) with a conversion to the
appropriate application structure done by uClibc, just as by glibc.
======================================================================

----------------------------------------------------------------------
 sh4d0wstr1f3 - 03-17-05 07:33 
----------------------------------------------------------------------
This is also true of uclibc-0.9.16 as built with binutils-2.13.90.0.2,
gcc-3.2-7, and kernel headers 2.2.19.

----------------------------------------------------------------------
 sh4d0wstr1f3 - 03-17-05 11:39 
----------------------------------------------------------------------
Resolved: NOTABUG. Kernel headers 2.2.19 do not contain definition for
stat64 + friends in asm/unistd.h. Apologies; please ignore.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
03-16-05 09:45 sh4d0wstr1f3   New Issue                                    
03-16-05 09:45 sh4d0wstr1f3   File Added: test.c                           
03-16-05 11:51 andersen       Assigned To              andersen => uClibc  
03-17-05 07:33 sh4d0wstr1f3   Note Added: 0000097                          
03-17-05 11:39 sh4d0wstr1f3   Note Added: 0000098                          
03-17-05 11:52 andersen       Status                   assigned => closed  
======================================================================




More information about the uClibc mailing list