st_blksize

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

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.