OS Manuals

iblocks(3ast)

iblocks - compute number file blocks used

IBLOCKS(3ast) IBLOCKS(3ast)

iblocks - compute number file blocks used

#include <ls.h>
long     _iblocks(struct stat* st);

_iblocks returns the number of blocks used by the file whose stat(2) information is pointed to by st. The count includes both data and indirect blocks.

This routine is used by <ls.h> on system without the field.

ls(1), stat(2)

ksh 1.0.10-r37 · os · ingested 2026-10-11