Scroll to navigation

IBLOCKS(3) Library Functions Manual IBLOCKS(3)

NAME

iblocks - compute number file blocks used

SYNOPSIS

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

DESCRIPTION

_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 struct statst_blocks field.

SEE ALSO

ls(1), stat(2)