| Samsung Internal API reference 2.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

Macros | Functions
Stat

## Macros
#define | S_ACCPERM (S_IRWXU | S_IRWXG | S_IRWXO)

## Functions
int | fstat (int fd, struct stat *buf)
| Get file status of a given file descriptor (system call) More...
int | stat (const char *pathname, struct stat *buf)
| Get file status of a given path name. More...
int | mkdir (const char *pathname, mode_t mode)
| Create directory at file system. More...

## Detailed Description

## Macro Definition Documentation

#define S_ACCPERM (S_IRWXU | S_IRWXG | S_IRWXO)

`#include <sys/stat.h>`

mask to extract permission from stat.st_mode

## Function Documentation

int fstat | ( | int | fd,
|  | struct stat * | buf
| ) |  |

`#include <sys/stat.h>`

Get file status of a given file descriptor (system call)

Parameters

  [in] | fd | file descriptor
  [out] | buf | pointer to struct stat buffer

Returns
  Error code

int mkdir | ( | const char * | pathname,
|  | mode_t | mode
| ) |  |

`#include <sys/stat.h>`

Create directory at file system.

Parameters

  [in] | pathname | directory name
  [in] | mode | specifies the permissions.

Return values

  0 | on success.
  -1 | on error. errno is set appropriately.

int stat | ( | const char * | pathname,
|  | struct stat * | buf
| ) |  |

`#include <sys/stat.h>`

Get file status of a given path name.

Parameters

  [in] | pathname | name of a file
  [out] | buf | pointer to struct stat buffer

Returns
  Error code