bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't use the fseeko, even when defining _LARGEFILE_SOURCE


From: Andreas Jaeger
Subject: Re: can't use the fseeko, even when defining _LARGEFILE_SOURCE
Date: 06 Apr 2001 17:13:51 +0200
User-agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Channel Islands)

Alexis Vapillon <address@hidden> writes:

> I can't use the fseeko() and ftello() functions, even when defining
> _LARGEFILE_SOURCE.
> 
> When compiling the following code:
> 
>    --------------------------------------
>    #define _LARGEFILE_SOURCE 1
>    #include <stdio.h>

#include <sys/types.h> for off_t here.

>    int main()
>    {
>      FILE *f = NULL;
>      int  result = 0;
>      off_t   offset = 0;
>      
>      result = fseeko( f, offset, SEEK_SET);
>    }
>    -------------------------------------
> 
> I get the following error message:
> 
>    -------------------------------------
>    lfstest.c: In function `int main()':
>    lfstest.c:10: implicit declaration of function `int fseeko(...)'   
>    -------------------------------------

Works fine for me with glibc 2.2.x,

Andreas

> Is the problem in glibc, or in me ?
> 
> I'm using:
>   - Linux Mandrake 7.0 on an Intel PC
>   - kernel 2.2.15-4mdk
>   - package glibc-devel version 2.1.3-5mkd
> 
> thanks.
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
> 
> _______________________________________________
> Bug-glibc mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-glibc
> 

-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

[Prev in Thread] Current Thread [Next in Thread]