소켓 프로그래밍 공부 기록.
<aside> 💬 All quoted descriptions are from Linux man-pages.
</aside>
(2) : syscalls
(3) : library functions. system call wrappers
(7) : misc
(*p) : POSIX man
<unistd.h>linux/unistd.h at master · torvalds/linux
unistd.h(0p) - Linux manual page
In the C standard library and in POSIX specifications, the identifier for the typedef definition is often suffixed with
_t, such as in [size_t](<https://en.wikipedia.org/wiki/Size_t>)andtime_t. This is practiced in other coding systems, although POSIX explicitly reserves this practice for POSIX data types.
size_t , ssize_tThe types
size_tandssize_tare, respectively, unsigned and signed integer data types specified by POSIX.1.
ssize_t write(int** *fd***, const void ****buf***, size_t** *count***)**Writes up to
countbytes from the buffer starting atbufto the file referred to by the file descriptorfd.
return
On success, the number of bytes written is returned. On error,
-1is returned, anderrnois set to indicate the error.