#include <hallo.h>
* Michael Kerrisk [Fri, Nov 24 2006, 04:57:08PM]:
> tabs 399130 fixed-upstream
> thanks
> 
> Hello Eduard,
> 
> Thanks for your report.
> 
> > See topic. I wonder why people document O_LARGEFILE while it does not
> > work by default. 
> 
> Please be more precise: "does now work" is vague...

Does not work line "does not compile". Unknown, not exported with the
API.

> > And google tells you to use _GNU_SOURCE which is
> > obviously non-portable. 
> 
> Yes, O_LARGEFILE is non-portable...
> 
> > -D_LARGEFILE64_SOURCE seems to be the solution I
> > needed but this stuff should be documented in the manpage.
> 
> I've changed things upstream for release 2.42.  The description now reads:
> 
>        O_LARGEFILE
>               (LFS) Allow files whose  sizes  cannot  be  repre-
>               sented  in  an off_t (but can be represented in an
>               off64_t) to be  opened.   The  _LARGEFILE64_SOURCE
>               macro  must  be  defined  in  order to obtain this
>               definition.  Setting the _FILE_OFFSET_BITS feature
>               test  macro  to  64  is  the  preferred  method of
>               obtaining    this    functionality    (see    fea-
>               ture_test_macros(7)).

Sorry for the late response (see another mail), mails were mixed up.

Eduard.

-- 
... dieses Festhalten aber am Abgeschiedenen bringt jederzeit einen
revolutionären Übergang hervor, wo das vorstrebende Neue nicht länger
zurückzudrängen, nicht zu bändigen ist, so daß es sich vom Alten
losreißt, dessen Vorzüge nicht anerkennen, dessen Vorteile nicht mehr
benutzen will.
                -- Johann Wolfgang von Goethe (Schriften zur Literatur - 
Klassiker und Romantiker in Italien)

Reply via email to