From: Mike Frysinger <vapier@gentoo.org>
To: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH 1/2] syscalls/getdents: Use getdents64 if SYS_getdents is not defined
Date: Wed, 13 Mar 2013 13:20:16 -0400 [thread overview]
Message-ID: <201303131320.17542.vapier@gentoo.org> (raw)
In-Reply-To: <1363183294-21203-1-git-send-email-markos.chandras@gmail.com>
[-- Attachment #1.1: Type: Text/Plain, Size: 475 bytes --]
On Wednesday 13 March 2013 10:01:34 Markos Chandras wrote:
> +#ifdef SYS_getdents
> struct linux_dirent {
> unsigned long d_ino;
> unsigned long d_off;
> unsigned short d_reclen;
> char d_name[];
> };
> +#else
> +/* Use the 64-bit definition */
> +struct linux_dirent {
> + unsigned long long d_ino;
> + long long d_off;
> + unsigned short d_reclen;
> + unsigned char d_type;
> + char d_name[0];
any reason for using [0] instead of [] ?
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 238 bytes --]
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2013-03-13 17:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-13 14:01 [LTP] [PATCH 1/2] syscalls/getdents: Use getdents64 if SYS_getdents is not defined Markos Chandras
2013-03-13 17:20 ` Mike Frysinger [this message]
2013-03-13 17:21 ` Markos Chandras
2013-03-13 17:58 ` Jan Stancek
2013-03-13 18:03 ` Markos Chandras
2013-03-13 18:23 ` chrubis
[not found] ` <CAG2jQ8hbT_8h8KR0V2=7qzwdSy8cqzOWb_oHt4JJ5Y22yFEeDg@mail.gmail.com>
[not found] ` <CAG2jQ8j23+74_JZbrkM55aKg4YG+V-g4G1+NsS4fLGy=efRDjQ@mail.gmail.com>
2013-03-14 16:29 ` chrubis
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=201303131320.17542.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=ltp-list@lists.sourceforge.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox