From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: stat.h
Date: Mon, 3 Mar 2014 23:20:18 -0500 [thread overview]
Message-ID: <20140304042018.GG184@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAKHv7pgF74MsdXk3+gxtg-Bt5ZGKeMWu506PLm1ixrkJr69GQg@mail.gmail.com>
On Tue, Mar 04, 2014 at 06:15:01AM +0200, Paul Schutte wrote:
> Thanks and I agree with padsp being messy.
>
> My question really boils down to
> Should 'struct stat64' be used from within a program and if so, which
> header file should I include ?
If you want "struct stat64", make sure _GNU_SOURCE or
_LARGEFILE64_SOURCE is defined before including any system headers
(best way is with -D_GNU_SOURCE etc. in your CFLAGS) and include
sys/stat.h. However, it would be better to just use "struct stat",
etc. (With glibc, you need -D_FILE_OFFSET_BITS=64 in your CFLAGS to
make this work right; with musl it always works.)
Rich
next prev parent reply other threads:[~2014-03-04 4:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-03 18:36 stat.h Paul Schutte
2014-03-03 19:42 ` stat.h Szabolcs Nagy
2014-03-04 4:15 ` stat.h Paul Schutte
2014-03-04 4:20 ` Rich Felker [this message]
2014-03-04 5:18 ` stat.h Paul Schutte
2014-03-04 5:31 ` stat.h Rich Felker
2014-03-04 5:33 ` stat.h Paul Schutte
2014-03-04 4:18 ` stat.h Rich Felker
2014-03-04 4:31 ` stat.h Paul Schutte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140304042018.GG184@brightrain.aerifal.cx \
--to=dalias@aerifal.cx \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).