[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KIO fixes in kdelibs and kdebase
From:       Thiago Macieira <thiago () kde ! org>
Date:       2008-05-09 5:12:50
Message-ID: 200805090713.03496.thiago () kde ! org
[Download RAW message or body]


On Friday 09 May 2008 05:28:04 Vlad wrote:
> Sure! If KDE apps are compiled without the -D_FILE_OFFSET_BITS=64 and
> -D_LARGEFILE64_SOURCE flags, KDE apps will not be able to correctly
> pass variables of type off_t to libraries that are compiled with those
> flags, such as libsmbclient. For example, if kio_smb is not compiled
> with -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE64_SOURCE, the smbc_lseek
> function moves the cursor to a different position than was requested.

In other words: it's bad practice to write public API that uses off_t. In C++ 
it'll cause linkage errors (missing symbols) and in C it'll cause mysterious 
behaviour and possibly crashes.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic