顯示具有 linux programming 標籤的文章。 顯示所有文章
顯示具有 linux programming 標籤的文章。 顯示所有文章

2008年5月5日 星期一

function stat

int  stat(const char *restrict pathstruct stat *restrict buf);

get file status

struct stat {
dev_t st_dev;
ino_t st_ino;
mode_t st_mode;
nlink_t st_nlink;
uid_t st_uid;
gid_t st_gid;
dev_t st_rdev;
off_t st_size;
time_t st_atime;
time_t st_mtime;
time_t st_ctime;
blksize_t st_blksize;
blkcnt_t st_blocks;
mode_t st_attr;
}; 

2008年5月4日 星期日

struct utsname & uname

struct utsname
hold information returned by the uname function

uname(struct utsname *name)
store information identifying the current system in the structure pointed to by name.