Lines Matching refs:statbuf
251 # define ST_BLKSIZE(statbuf) DEV_BSIZE
253 # define ST_NBLOCKS(statbuf) \
254 ((statbuf).st_size / ST_NBLOCKSIZE + ((statbuf).st_size % ST_NBLOCKSIZE != 0))
256 # define ST_NBLOCKS(statbuf) \
257 (S_ISREG ((statbuf).st_mode) \
258 || S_ISDIR ((statbuf).st_mode) \
259 ? st_blocks ((statbuf).st_size) : 0)
268 # define ST_BLKSIZE(statbuf) ((0 < (statbuf).st_blksize \
269 && (statbuf).st_blksize <= (1 << 22)) /* 4MB */ \
270 ? (statbuf).st_blksize : DEV_BSIZE)
281 # define ST_NBLOCKS(statbuf) \
282 (S_ISREG ((statbuf).st_mode) \
283 || S_ISDIR ((statbuf).st_mode) \
284 ? (statbuf).st_blocks * ST_BLKSIZE(statbuf)/ST_NBLOCKSIZE : 0)
291 # define ST_NBLOCKS(statbuf) ((statbuf).st_blocks)