st_blksize

bridged with qdn.public.porting
Post Reply
nospam

st_blksize

Post by nospam » Fri Apr 04, 2003 2:43 pm

the qnx4's "stat" structure doesn't have "st_blksize" member.
how do you port the code from other unix?

David Gibbs

Re: st_blksize

Post by David Gibbs » Fri Apr 04, 2003 3:19 pm

nospam <nospam@nospam.edu> wrote:
the qnx4's "stat" structure doesn't have "st_blksize" member.
how do you port the code from other unix?
QNX4's filesystem uses a block size of 512 bytes. You might
have to hard-code that value in #ifdef'ed for QNX or something.

Or, do a cover function for QNX..

#define stat qnx_stat

And have a struct qnx_stat and a qnx_stat() function that are
corrected, call stat() and then fill in the extra fields.

-David
--
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Post Reply

Return to “qdn.public.porting”