01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

STAT ( 5) STAT (S)<br />

NAME<br />

stat - data returned by stat system call<br />

SYNOPSIS<br />

#include <br />

#include <br />

DESCRIPTION<br />

The system calls stat and fstat return data whose structure is<br />

defined by this include file. The encoding of the field st_mode is<br />

defined in this file also.<br />

I*<br />

* Structure of the result of stat<br />

*I<br />

struct stat<br />

{<br />

dev_t<br />

ino_t<br />

ushort<br />

short<br />

ushort<br />

ushort<br />

dev_t<br />

off_t<br />

time_t<br />

time_t<br />

time_t<br />

};<br />

#define S_IFMT<br />

#define S_IFDffi<br />

#define S_IFCHR<br />

#define S_IFBLK<br />

#define S_IFREG<br />

#define S_IFIFO<br />

#define S_ISUID<br />

#define S_ISGID<br />

#define S_ISVTX<br />

st_dev;<br />

st_ino;<br />

st_mode;<br />

st_nlink;<br />

st_uid;<br />

st_gid;<br />

st_rdev;<br />

st_size;<br />

st_atime;<br />

st_mtime;<br />

st_ctime;<br />

#define S_IREAD 00400<br />

#define SJWRITE 00200<br />

#define S_IEXEC 00100<br />

FILES<br />

/usr /include/sysjtypes.h<br />

/usr /include/sysjstat.h<br />

SEE ALSO<br />

stat(2), types( 5).<br />

0170000 / * type of file * /<br />

0040000 /* directory */<br />

0020000 /* character special */<br />

0060000 /* block special */<br />

0100000 /* regular */<br />

oo1oooo I* fifo *I<br />

04000 /* set user id on execution */<br />

02000 /* set group id on execution *I<br />

01000 /* save swapped text even after * /<br />

/* use */<br />

/* read permission, owner */<br />

/* write permission, owner */<br />

/* execute/search permission, */<br />

/* owner */<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!