public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* Padding in gcc
@ 2007-07-09 11:40 Rajat Jain
  2007-07-09 14:38 ` pradeep singh
  2007-07-10 20:15 ` Rodrigo Rubira Branco
  0 siblings, 2 replies; 5+ messages in thread
From: Rajat Jain @ 2007-07-09 11:40 UTC (permalink / raw)
  To: kernelnewbies, linux-newbie

Hi,

Perhaps a little offtopic but no harm in trying ...

Can we always rely on the fact that gcc will pad the following structure?

typedef struct {
    int descrp;      SYSCALL64_STRUCT_ATTR;
    (Automatic padding here?)
    long long pos;   SYSCALL64_STRUCT_ATTR;
    int mode;        SYSCALL64_STRUCT_ATTR;
} lseek64_t;

What is the correct way to make it portable? Explicitly added padding fields?

Thanks,

Rajat
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-10 20:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-09 11:40 Padding in gcc Rajat Jain
2007-07-09 14:38 ` pradeep singh
2007-07-09 14:52   ` Rajat Jain
2007-07-09 15:21     ` pradeep singh
2007-07-10 20:15 ` Rodrigo Rubira Branco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox