Reference

iblocks(3)

compute number file blocks used

NAME

iblocks - compute number file blocks used

SYNOPSIS

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

DESCRIPTION

$1$2_iblocks_iblocks_iblocks_iblocks_iblocks_iblocks_iblocks_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.

SEE ALSO

ls(1), stat(2)