diff options
| author | dearblue <[email protected]> | 2021-01-12 21:35:18 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2021-01-12 21:35:18 +0900 |
| commit | 8928bc2dce125fb03cf75aca1363e6609391d6b0 (patch) | |
| tree | c1511434670f6331ac6edb86c9841ddbc9e8aceb /src | |
| parent | e13f34e30866add2ec1829ec1819366844701c34 (diff) | |
| download | mruby-8928bc2dce125fb03cf75aca1363e6609391d6b0.tar.gz mruby-8928bc2dce125fb03cf75aca1363e6609391d6b0.zip | |
Initialize all area of `struct sockaddr_un`
Members of `struct sockaddr_un` are requesting the definitions of `sun_family` and `sun_path`.
https://pubs.opengroup.org/onlinepubs/009696699/basedefs/sys/un.h.html
But the other members are optional and environment dependent.
In fact, other members are defined in the BSD series.
from NetBSD-9.1 <https://github.com/NetBSD/src/blob/da504f75982b244b2288bc9970bbc203bd77a9c1/sys/sys/un.h#L49-L53>
```c
struct sockaddr_un {
unsigned char sun_len; /* sockaddr len excluding NUL */
sa_family_t sun_family; /* AF_UNIX */
char sun_path[104]; /* path name (gag) */
};
```
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
