.TH "unistd.h" 3teegris "Sun Oct 28 2018" "Version 2.0" "Samsung Internal API reference" \" -*- nroff -*-
.ad l
.nh
.SH NAME
unistd.h \- Unistd header\&.  

.SH SYNOPSIS
.br
.PP
.SS "Macros"

.in +1c
.ti -1c
.RI "#define \fBTEMP_FAILURE_RETRY\fP(expression)"
.br
.RI "\fIRecall function if it was interrupted by signal\&. \fP"
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "void \fB_exit\fP (int status)"
.br
.RI "\fITerminate the calling process 'immediately'\&. Any open file descriptors belonging to the process are closed; process's parent is sent a SIGCHLD signal\&. \fP"
.ti -1c
.RI "void \fB_exit_thread\fP (unsigned long status)"
.br
.RI "\fITerminate the calling thread 'immediately'\&. \fP"
.ti -1c
.RI "int \fBprofil\fP (unsigned short *buf, size_t bufsiz, size_t offset, unsigned int scale)"
.br
.RI "\fIProvide a means to find out in what areas your program spends most of its time\&. The argument \fCbuf\fP points to \fCbufsiz\fP bytes of core\&. Every virtual 10 milliseconds, the user's program counter (PC) is examined: \fCoffset\fP is subtracted and the result is multiplied by \fCscale\fP and divided by 65536\&. If the resulting value is less than \fCbufsiz\fP, then the corresponding entry in \fCbuf\fP is incremented\&. If \fCbuf\fP is NULL, profiling is disabled\&. \fP"
.ti -1c
.RI "\fBpid_t\fP \fBgetpid\fP (void)"
.br
.RI "\fIReturn the process ID of the calling process\&. \fP"
.ti -1c
.RI "\fBpid_t\fP \fBgettid\fP (void)"
.br
.RI "\fIReturn the thread ID of the calling thread\&. \fP"
.ti -1c
.RI "int \fBgetcpu\fP (void)"
.br
.RI "\fIReturn the number of CPU on which current thread is performed\&. \fP"
.ti -1c
.RI "int \fBgetcluster\fP (void)"
.br
.RI "\fIReturn the cluster id on which current thread is performed\&. \fP"
.ti -1c
.RI "int \fBunlink\fP (const char *pathname)"
.br
.RI "\fIRemove a link to a file\&. \fP"
.ti -1c
.RI "int \fBftruncate\fP (int fd, int size)"
.br
.RI "\fICause file referenced by \fCfd\fP to be truncated to a \fCsize\fP of precisely length bytes\&. \fP"
.ti -1c
.RI "int \fBclose\fP (int fd)"
.br
.RI "\fIDeallocate the file descriptor indicated by \fCfd\fP\&. To deallocate means to make the file descriptor available for return by subsequent calls to \fBopen()\fP 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)\&. \fP"
.ti -1c
.RI "\fBssize_t\fP \fBread\fP (int fd, void *buf, size_t count)"
.br
.RI "\fIAttempt to read \fCcount\fP bytes from the file associated with the open file descriptor, \fCfd\fP, into the buffer pointed to by \fCbuf\fP\&. \fP"
.ti -1c
.RI "\fBssize_t\fP \fBwrite\fP (int fd, const void *buf, size_t count)"
.br
.RI "\fIAttempt to write \fCcount\fP bytes from buffer pointed to by \fCbuf\fP to the file associated with the open file descriptor, \fCfd\fP\&. \fP"
.ti -1c
.RI "int \fBfstat\fP (int fd, struct \fBstat\fP *buf)"
.br
.RI "\fIGet status of a file with a descriptor \fCfd\fP\&. \fP"
.ti -1c
.RI "int \fBstat\fP (const char *pathname, struct \fBstat\fP *buf)"
.br
.RI "\fIGet status of a file \fCpathname\fP\&. \fP"
.ti -1c
.RI "int \fBlseek\fP (int fd, int offset, int whence)"
.br
.RI "\fIReposition read/write file offset\&. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Unistd header\&. 


.PP
\fBCopyright:\fP
.RS 4
(C) 2013 - 2018, Samsung Electronics Co\&., Ltd\&. 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for Samsung Internal API reference from the source code\&.
