| Samsung Internal API reference 2.0

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

- File List
- Globals

Macros | Enumerations | Functions
unistd.h File Reference

Unistd header. More...

Go to the source code of this file.

## Macros
#define | TEMP_FAILURE_RETRY(expression)
| Recall function if it was interrupted by signal. More...

## Enumerations
enum | { _SC_OPEN_MAX, _SC_PAGESIZE, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES, _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_THREADS, _SC_THREAD_KEYS_MAX, _SC_THREAD_THREADS_MAX, _SC_THREAD_STACK_MIN }
| sysconf system resources' names. More...

## Functions
void | _exit (int status)
| Terminate the calling process "immediately". Any open file descriptors belonging to the process are closed; process's parent is sent a SIGCHLD signal. More...
int | profil (unsigned short *buf, size_t bufsiz, size_t offset, unsigned int scale)
| Provide a means to find out in what areas your program spends most of its time. The argument `buf` points to `bufsiz` bytes of core. Every virtual 10 milliseconds, the user's program counter (PC) is examined: `offset` is subtracted and the result is multiplied by `scale` and divided by 65536. If the resulting value is less than `bufsiz`, then the corresponding entry in `buf` is incremented. If `buf` is NULL, profiling is disabled. More...
pid_t | getpid (void)
| Return the process ID of the calling process. More...
pid_t | gettid (void)
| Return the thread ID of the calling thread. More...
int | getcpu (void)
| Return the number of CPU on which current thread is performed. More...
int | getcluster (void)
| Return the cluster id on which current thread is performed. More...
int | rename (const char *pathname, const char *new_pathname)
| Rename file. More...
int | unlink (const char *pathname)
| Remove a link to a file. More...
int | ftruncate (int fd, int size)
| Cause file referenced by `fd` to be truncated to a `size` of precisely length bytes. More...
int | rmdir (char *dir_name)
| Remove a directory at file system. More...
int | close (int fd)
| Deallocate the file descriptor indicated by `fd`. To deallocate means to make the file descriptor available for return by subsequent calls to open() or other functions that allocate file descriptors. All outstanding record locks owned by the process on the file associated with the file descriptor shall be removed (that is, unlocked). More...
ssize_t | read (int fd, void *buf, size_t count)
| Attempt to read `count` bytes from the file associated with the open file descriptor, `fd`, into the buffer pointed to by `buf`. More...
ssize_t | write (int fd, const void *buf, size_t count)
| Attempt to write `count` bytes from buffer pointed to by `buf` to the file associated with the open file descriptor, `fd`. More...
int | fstat (int fd, struct stat *buf)
| Get status of a file with a descriptor `fd`. More...
int | stat (const char *pathname, struct stat *buf)
| Get status of a file `pathname`. More...
int | fsync (int fd)
| Synchronize a file's in-core state with storage device. More...
int | lseek (int fd, int offset, int whence)
| Reposition read/write file offset. More...
long | sysconf (int name)
| Get configuration information at run time. More...

## Detailed Description

Unistd header.

Copyright
  (C) 2012-2019, Samsung Electronics Co., Ltd.