Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <STAT.H>
Link against: estlib.lib

_IFMT

_IFMT 0170000

Description

[Top]


_IFDIR

_IFDIR 0040000

Description

[Top]


_IFCHR

_IFCHR 0020000

Description

[Top]


_IFBLK

_IFBLK 0060000

Description

[Top]


_IFREG

_IFREG 0100000

Description

[Top]


_IFLNK

_IFLNK 0120000

Description

[Top]


_IFSOCK

_IFSOCK 0140000

Description

[Top]


_IFIFO

_IFIFO 0010000

Description

[Top]


S_BLKSIZE

S_BLKSIZE 1024

Description

[Top]


S_ISUID

S_ISUID 0004000

Description

[Top]


S_ISGID

S_ISGID 0002000

Description

[Top]


S_ISVTX

S_ISVTX 0001000

Description

[Top]


S_IREAD

S_IREAD 0000400

Description

[Top]


S_IWRITE

S_IWRITE 0000200

Description

[Top]


S_IEXEC

S_IEXEC 0000100

Description

[Top]


S_ENFMT

S_ENFMT 0002000

Description

[Top]


S_IFMT

S_IFMT _IFMT

Description

[Top]


S_IFDIR

S_IFDIR _IFDIR

Description

[Top]


S_IFCHR

S_IFCHR _IFCHR

Description

[Top]


S_IFBLK

S_IFBLK _IFBLK

Description

[Top]


S_IFREG

S_IFREG _IFREG

Description

[Top]


S_IFLNK

S_IFLNK _IFLNK

Description

[Top]


S_IFSOCK

S_IFSOCK _IFSOCK

Description

[Top]


S_IFIFO

S_IFIFO _IFIFO

Description

[Top]


S_IRWXU

S_IRWXU 0000700

Description

[Top]


S_IRUSR

S_IRUSR 0000400

Description

[Top]


S_IWUSR

S_IWUSR 0000200

Description

[Top]


S_IXUSR

S_IXUSR 0000100

Description

[Top]


S_IRWXG

S_IRWXG 0000070

Description

[Top]


S_IRGRP

S_IRGRP 0000040

Description

[Top]


S_IWGRP

S_IWGRP 0000020

Description

[Top]


S_IXGRP

S_IXGRP 0000010

Description

[Top]


S_IRWXO

S_IRWXO 0000007

Description

[Top]


S_IROTH

S_IROTH 0000004

Description

[Top]


S_IWOTH

S_IWOTH 0000002

Description

[Top]


S_IXOTH

S_IXOTH 0000001

Description

[Top]


S_ISBLK

S_ISBLK (m) (((m)&_IFMT) == _IFBLK)

Description

Parameters

m

[Top]


S_ISCHR

S_ISCHR (m) (((m)&_IFMT) == _IFCHR)

Description

Parameters

m

[Top]


S_ISDIR

S_ISDIR (m) (((m)&_IFMT) == _IFDIR)

Description

Parameters

m

[Top]


S_ISFIFO

S_ISFIFO (m) (((m)&_IFMT) == _IFIFO)

Description

Parameters

m

[Top]


S_ISREG

S_ISREG (m) (((m)&_IFMT) == _IFREG)

Description

Parameters

m

[Top]


S_ISLNK

S_ISLNK (m) (((m)&_IFMT) == _IFLNK)

Description

Parameters

m

[Top]


S_ISSOCK

S_ISSOCK (m) (((m)&_IFMT) == _IFSOCK)

Description

Parameters

m

[Top]


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_tmode_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.

[Top]


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

const wchar_twchar_t *_path

mode_tmode_t _mode

Return value

int

[Top]


fstat(int,struct stat *)

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 statstat *_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.

[Top]


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_tmode_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.

[Top]


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

const wchar_twchar_t *_path

mode_tmode_t _mode

Return value

int

[Top]


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 statstat *_sbuf

Return value

int

On Success, returns 0. On Failure, returns -1, errno may be set.

[Top]


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

const wchar_twchar_t *_path

struct statstat *_sbuf

Return value

int

[Top]


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.

[Top]


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

const wchar_twchar_t *_path

wchar_twchar_t *resolved

Return value

wchar_twchar_t *