unix specific
mode_t
These are last arguments to such as
FILE *fopen(const char *path, const char *mode);
FILE *fdopen(int fildes, const char *mode);
FILE *freopen(const char *path, const char *mode, FILE *stream);
, possible are mode S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH| S_IWOTH (0666),
sockaddr_in
for tcp/ip sockets
- struct sockaddr_in {
- sa_family_t sin_family; /* address family */
- uint16_t sin_port; /* port number */
- struct in_addr sin_addr; /* internet address */
- unsigned char sin_zero[8]; /* pad bytes */
- };
- struct in _addr {
- uint32_t s_addr; /* internet address */
};