BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000167 [uClibc] Other major always 03-16-05 09:45 03-17-05 11:52
Reporter sh4d0wstr1f3 View Status public  
Assigned To uClibc
Priority normal Resolution open  
Status closed   Product Version 0.9.26
Summary 0000167: 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.
Additional Information
Attached Files  test.c [^] (405 bytes) 03-16-05 09:45

- Relationships

- Notes
(0000097)
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.
 
(0000098)
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


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker