[uClibc 0001413]: fseek() does not propagate back errno

bugs at busybox.net bugs at busybox.net
Sat Jun 30 21:30:39 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1413 
====================================================================== 
Reported By:                kiltedknight
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1413
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             06-29-2007 10:01 PDT
Last Modified:              06-30-2007 14:30 PDT
====================================================================== 
Summary:                    fseek() does not propagate back errno
Description: 
Compile and run the attached C program linked against uClibc.

Both lseek() and fseek() return -1 as evidenced by the output coming from
perror(), but fseek() has errno = 0, while lseek() has errno = ESPIPE.
====================================================================== 

---------------------------------------------------------------------- 
 chombourger - 06-30-07 14:30  
---------------------------------------------------------------------- 
Using the latest (svn) uClibc, your program produces the following output
in my test environment:

lseek: Illegal seek
fseek: Illegal seek

Bug already fixed? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-29-07 10:01  kiltedknight   New Issue                                    
06-29-07 10:01  kiltedknight   Status                   new => assigned     
06-29-07 10:01  kiltedknight   Assigned To               => uClibc          
06-29-07 10:01  kiltedknight   File Added: seek_test.c                      
06-29-07 10:01  kiltedknight   Issue Monitored: kiltedknight                    
06-30-07 14:30  chombourger    Note Added: 0002541                          
======================================================================




More information about the uClibc-cvs mailing list