Operating Systems Lab Manual / OS Retrieve File Attributes C Program

Program Name
Write a C Program for Directory system calls used to retreive attributes of file.
Theory
Directory system calls used to retreive attributes of file.
Program Code


Input:

Output:
Stat Demo
USER ID is 0
GROUP ID IS 0
no of links 0
Time of last file access Wed Mar  4 05:51:52 1970
Time of last file modification Sun Apr  7 02:36:01 1974
Time of last file status change Mon Nov 25 04:21:48 1935
Block size 134513381
no of blocks 5365748
File size -1076204088
Inode no:0Id of device containing a dir entry for this file is 0
Id of device for char special or blk special file is 134513552


Home     Back