#include <sys/stat.h>
int stat(const char *path, struct stat *buf);
int lstat(const char *path, struct stat *buf);
int fstat(int fildes, struct stat *buf);
stat() permet d'avoir les informations sur un fichier,
Alain Bouju Programmation Système et réseaux