#include <STAT.H>
Link against:
estlib.lib
_IFMT 0170000
Description
_IFDIR 0040000
Description
_IFCHR 0020000
Description
_IFBLK 0060000
Description
_IFREG 0100000
Description
_IFLNK 0120000
Description
_IFSOCK 0140000
Description
_IFIFO 0010000
Description
S_BLKSIZE 1024
Description
S_ISUID 0004000
Description
S_ISGID 0002000
Description
S_ISVTX 0001000
Description
S_IREAD 0000400
Description
S_IWRITE 0000200
Description
S_IEXEC 0000100
Description
S_ENFMT 0002000
Description
S_IFDIR _IFDIR
Description
S_IFCHR _IFCHR
Description
S_IFBLK _IFBLK
Description
S_IFREG _IFREG
Description
S_IFLNK _IFLNK
Description
S_IFSOCK _IFSOCK
Description
S_IFIFO _IFIFO
Description
S_IRWXU 0000700
Description
S_IRUSR 0000400
Description
S_IWUSR 0000200
Description
S_IXUSR 0000100
Description
S_IRWXG 0000070
Description
S_IRGRP 0000040
Description
S_IWGRP 0000020
Description
S_IXGRP 0000010
Description
S_IRWXO 0000007
Description
S_IROTH 0000004
Description
S_IWOTH 0000002
Description
S_IXOTH 0000001
Description
S_ISBLK (m) (((m)&_IFMT) == _IFBLK)
Description
Parameters
S_ISCHR (m) (((m)&_IFMT) == _IFCHR)
Description
Parameters
S_ISDIR (m) (((m)&_IFMT) == _IFDIR)
Description
Parameters
S_ISFIFO (m) (((m)&_IFMT) == _IFIFO)
Description
Parameters
S_ISREG (m) (((m)&_IFMT) == _IFREG)
Description
Parameters
S_ISLNK (m) (((m)&_IFMT) == _IFLNK)
Description
Parameters
S_ISSOCK (m) (((m)&_IFMT) == _IFSOCK)
Description
Parameters
chmod(const char *,mode_t)
IMPORT_C int chmod(const char *_path, mode_t _mode);
Description
Sets the access permissions for the file whose name is given by pathname to the bit pattern contained in mode. For this call
to succeed, the effective user ID of the process must match the owner of the file, or the process must have appropriate privileges.
The owner of the file pathname always has privileges to change permission modes and file attributes.
Parameters
const char *_path |
Points to the name of the file.
|
mode_t mode_t _mode |
Is a bitwise-or field that specifies the new permission modes for path name.
|
|
Return value
int |
On Success, returns 0. On Failure, returns -1, errno may be set.
|
|
wchmod(const wchar_t *,mode_t)
IMPORT_C int wchmod(const wchar_t *_path, mode_t _mode);
Description
A wide-character version of chmod(const char *,mode_t)
chmod(const char *,mode_t)
.
Parameters
Return value
IMPORT_C int fstat(int _fd, struct stat *_sbuf);
Description
Gets information about the named file and writes it to the area that buf points to. The system must be able to search all
directories leading to the file; however, read, write, or execute permission of the file is not required.
Parameters
int _fd |
Is a file descriptor referring to a file for which status is returned.
|
struct stat stat *_sbuf |
Points to a stat structure where status information about the file is to be placed.
|
|
Return value
int |
On Success, returns 0. On Failure, returns -1, errno may be set.
|
|
mkdir(const char *,mode_t)
IMPORT_C int mkdir(const char *_path, mode_t _mode);
Description
Creates a new directory with the specified path name. The file permissions of the new directory are initialized from the specified
mode.
Parameters
const char *_path |
Specifies the name of the new directory. The path name can be absolute or relative. If the specified path name is relative,
the directory is created based upon your current working directory.
|
mode_t mode_t _mode |
Is a bitwise-OR field that specifies what permissions the directory has when it is created.
|
|
Return value
int |
On Success, returns 0. On Failure, returns -1, errno may be set. Does not create a directory.
|
|
wmkdir(const wchar_t *,mode_t)
IMPORT_C int wmkdir(const wchar_t *_path, mode_t _mode);
Description
A wide-character version of mkdir(const char *,mode_t)
mkdir(const char *,mode_t)
.
Parameters
Return value
stat(const char *,struct stat *)
IMPORT_C int stat(const char *_path, struct stat *_sbuf);
Description
Gets the size of a file.
Parameters
const char *_path |
|
struct stat stat *_sbuf |
|
|
Return value
int |
On Success, returns 0. On Failure, returns -1, errno may be set.
|
|
wstat(const wchar_t *,struct stat *)
IMPORT_C int wstat(const wchar_t *_path, struct stat *_sbuf);
Description
A wide_character version of a stat(const char *,struct stat *)
stat(const char *,struct stat *)
.
Parameters
Return value
realpath(const char *,char *)
IMPORT_C char* realpath(const char *_path, char *resolved);
Description
Takes a specified path name, pathname and resolves all symbolic links, extra slashes (/), and references to /./ and /../.
The resulting absolute path name is placed in the memory location pointed to by the resolved_path argument.
Parameters
const char *_path |
Points to the path name that you want resolved to an absolute form. This may be either a relative or absolute path name. All
but the final component of this path name must exist when you call realpath(const char *,char *) realpath(const char *,char *) .
|
char *resolved |
Points to the location where the canonical version of pathname is to be placed.
|
|
Return value
char * |
resolved_path. When an error occurs,returns a null pointer, setsresolved_path to the path name that caused the error.
|
|
wrealpath(const wchar_t *,wchar_t *)
IMPORT_C wchar_t* wrealpath(const wchar_t *_path, wchar_t *resolved);
Description
A wide-character version of realpath(const char *,char *)
realpath(const char *,char *)
.
Parameters
Return value