stat.h File Reference

#include <sys/types.h>

Include dependency graph for stat.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stat

Defines

#define S_IFMT   0170000
#define S_IFLNK   0120000
#define S_IFREG   0100000
#define S_IFBLK   0060000
#define S_IFDIR   0040000
#define S_IFCHR   0020000
#define S_IFIFO   0010000
#define S_ISUID   0004000
#define S_ISGID   0002000
#define S_ISVTX   01000
#define S_IRWXU   00700
#define S_IRUSR   00400
#define S_IWUSR   00200
#define S_IXUSR   00100
#define S_IRWXG   00070
#define S_IRGRP   00040
#define S_IWGRP   00020
#define S_IXGRP   00010
#define S_IRWXO   00007
#define S_IROTH   00004
#define S_IWOTH   00002
#define S_IXOTH   00001
#define S_IEXEC   S_IXUSR
#define S_IWRITE   S_IWUSR
#define S_IREAD   S_IRUSR
#define S_ISREG(m)   (((m) & S_IFMT) == S_IFREG)
#define S_ISDIR(m)   (((m) & S_IFMT) == S_IFDIR)
#define S_ISCHR(m)   (((m) & S_IFMT) == S_IFCHR)
#define S_ISBLK(m)   (((m) & S_IFMT) == S_IFBLK)
#define S_ISLNK(m)   (((m) & S_IFMT) == S_IFLNK)
#define S_ISFIFO(m)   (((m) & S_IFMT) == S_IFIFO)

Functions

 _PROTOTYPE (int chmod,(const char *_path, _mnx_Mode_t _mode))
 _PROTOTYPE (int fstat,(int _fildes, struct stat *_buf))
 _PROTOTYPE (int stat,(const char *_path, struct stat *_buf))
 _PROTOTYPE (mode_t umask,(_mnx_Mode_t _cmask))


Define Documentation

#define S_IEXEC   S_IXUSR
 

Definition at line 57 of file stat.h.

#define S_IFBLK   0060000
 

Definition at line 31 of file stat.h.

Referenced by add(), add_file(), apply_add(), compare(), different(), display_attrib(), dodir(), dofdet(), expr_operator(), extract(), File_Device(), file_type_error(), main(), make_header(), node_creat(), print1(), printit(), simple(), special(), ustar_rd(), and wcs().

#define S_IFCHR   0020000
 

Definition at line 33 of file stat.h.

Referenced by add(), add_file(), apply_add(), check_mknod(), compare(), different(), display_attrib(), dodir(), dofdet(), expr_operator(), extract(), file_type_error(), format_device(), getzrxinit(), main(), make_header(), node_creat(), print1(), printit(), simple(), special(), and ustar_rd().

#define S_IFDIR   0040000
 

Definition at line 32 of file stat.h.

Referenced by add(), add_file(), add_open(), cdcmd(), cgiexec(), cmd_read(), compare(), countblocks(), descend(), different(), display_attrib(), dodir(), dofdet(), expr_operator(), fetchname(), file_type_error(), find(), Find_Deleted_Entry(), isdir(), listfiles(), main(), make_header(), maketree(), mark(), police(), printit(), simple(), sink(), tar_rd(), tmpstart(), ustar_rd(), verifydir(), and wcs().

#define S_IFIFO   0010000
 

Definition at line 34 of file stat.h.

Referenced by add(), add_file(), apply_add(), different(), dofdet(), expr_operator(), file_type_error(), mark(), mkfifo(), simple(), and ustar_rd().

#define S_IFLNK   0120000
 

Definition at line 29 of file stat.h.

Referenced by add(), add_file(), countblocks(), different(), listfiles(), mark(), print1(), printit(), simple(), tar_rd(), and ustar_rd().

#define S_IFMT   0170000
 

Definition at line 28 of file stat.h.

Referenced by add(), add_file(), add_open(), cdcmd(), cgiexec(), check(), closeit(), cmd_read(), cnvtfile(), compare(), copymeta(), copystat(), countblocks(), deliver(), descend(), different(), display_attrib(), dodir(), dofdet(), doMDTM(), doSIZE(), expr_operator(), File_Device(), file_type_error(), find(), find_command(), Find_Deleted_Entry(), fsize(), getzrxinit(), listfiles(), main(), make_header(), maketree(), mark(), plan_a(), police(), print1(), printit(), process(), special(), tmpstart(), verifydir(), and wcs().

#define S_IFREG   0100000
 

Definition at line 30 of file stat.h.

Referenced by add(), add_file(), add_open(), closeit(), cmd_read(), cnvtfile(), compare(), copy(), copymeta(), copystat(), countblocks(), deliver(), diff(), different(), dofdet(), doMDTM(), doSIZE(), expr_operator(), file_type_error(), find_command(), fsize(), getstat(), getzrxinit(), main(), make_header(), maketree(), mark(), plan_a(), police(), process(), simple(), tar_rd(), tmpstart(), and ustar_rd().

#define S_IREAD   S_IRUSR
 

Definition at line 59 of file stat.h.

#define S_IRGRP   00040
 

Definition at line 47 of file stat.h.

Referenced by fmode(), and main().

#define S_IROTH   00004
 

Definition at line 52 of file stat.h.

Referenced by fmode(), and main().

#define S_IRUSR   00400
 

Definition at line 42 of file stat.h.

Referenced by fmode(), fopen_output_safely(), main(), and permissions().

#define S_IRWXG   00070
 

Definition at line 46 of file stat.h.

Referenced by test11d(), test39f(), and test39i().

#define S_IRWXO   00007
 

Definition at line 51 of file stat.h.

Referenced by test11d(), test39f(), and test39i().

#define S_IRWXU   00700
 

Definition at line 41 of file stat.h.

Referenced by do1(), test11d(), test39f(), and test39i().

#define S_ISBLK m   )     (((m) & S_IFMT) == S_IFBLK)
 

Definition at line 65 of file stat.h.

Referenced by ar_open(), check_mtab(), copy1(), file(), finddev(), geometry(), getstat(), install_master(), main(), newdevice(), test27a(), test39f(), and traverse().

#define S_ISCHR m   )     (((m) & S_IFMT) == S_IFCHR)
 

Definition at line 64 of file stat.h.

Referenced by ar_open(), check_mknod(), copy1(), do_login(), file(), finddev(), geometry(), gettynames(), lock_device(), main(), test27a(), test39f(), traverse(), and ttyname().

#define S_ISDIR m   )     (((m) & S_IFMT) == S_IFDIR)
 

Definition at line 63 of file stat.h.

#define S_ISFIFO m   )     (((m) & S_IFMT) == S_IFIFO)
 

Definition at line 67 of file stat.h.

Referenced by copy1(), file(), freopen(), main(), test27a(), test31a(), test39f(), and traverse().

#define S_ISGID   0002000
 

Definition at line 36 of file stat.h.

Referenced by display_attrib(), expr_operator(), fmode(), permissions(), and printit().

#define S_ISLNK m   )     (((m) & S_IFMT) == S_IFLNK)
 

Definition at line 66 of file stat.h.

#define S_ISREG m   )     (((m) & S_IFMT) == S_IFREG)
 

Definition at line 62 of file stat.h.

Referenced by apply_add(), ar_close(), copy(), copy1(), copylink(), extract_image(), file(), fts_stat(), latest_version(), main(), make_image(), select_image(), setmodes(), showpage(), test27a(), test30a(), test39f(), traverse(), and unix_write().

#define S_ISUID   0004000
 

Definition at line 35 of file stat.h.

Referenced by display_attrib(), expr_operator(), fmode(), permissions(), and printit().

#define S_ISVTX   01000
 

Definition at line 38 of file stat.h.

Referenced by expr_operator(), fmode(), permissions(), and printit().

#define S_IWGRP   00020
 

Definition at line 48 of file stat.h.

Referenced by announce(), fmode(), main(), and writable().

#define S_IWOTH   00002
 

Definition at line 53 of file stat.h.

Referenced by fmode(), and writable().

#define S_IWRITE   S_IWUSR
 

Definition at line 58 of file stat.h.

#define S_IWUSR   00200
 

Definition at line 43 of file stat.h.

Referenced by copy(), fmode(), fopen_output_safely(), main(), permissions(), and writable().

#define S_IXGRP   00010
 

Definition at line 49 of file stat.h.

Referenced by cgiexec(), fmode(), and mark().

#define S_IXOTH   00001
 

Definition at line 54 of file stat.h.

Referenced by cgiexec(), fmode(), and mark().

#define S_IXUSR   00100
 

Definition at line 44 of file stat.h.

Referenced by cgiexec(), fmode(), mark(), permissions(), and test34c().


Function Documentation

_PROTOTYPE mode_t  umask,
(_mnx_Mode_t _cmask) 
 

_PROTOTYPE int  stat,
(const char *_path, struct stat *_buf) 
 

_PROTOTYPE int  fstat,
(int _fildes, struct stat *_buf) 
 

_PROTOTYPE int  chmod,
(const char *_path, _mnx_Mode_t _mode) 
 


Generated on Fri Apr 14 23:12:09 2006 for minix by  doxygen 1.4.6