mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-30 09:30:11 +01:00
spec: try to improve comment about AF_UNIX path
The comment refers to the nul-padding of sockaddr_un member sun_path and using an addrlen of sizeof(sockaddr_un). There is not much need to document an old now "broken" behaviour. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
df6ab5924c
commit
e6f2eed6f8
1 changed files with 4 additions and 6 deletions
|
|
@ -3655,12 +3655,10 @@
|
|||
</para>
|
||||
|
||||
<para>
|
||||
When a socket is opened by the D-Bus library it truncates the path
|
||||
name right before the first trailing Nul byte. This is true for both
|
||||
normal paths and abstract paths. Note that this is a departure from
|
||||
previous versions of D-Bus that would create sockets with a fixed
|
||||
length path name. Names which were shorter than the fixed length
|
||||
would be padded by Nul bytes.
|
||||
When a Unix socket is opened by the D-Bus library, the socket address
|
||||
length does not include the whole <literal>struct sockaddr_un</literal>,
|
||||
but only the length of the pathname or abstract string (beside other
|
||||
fields).
|
||||
</para>
|
||||
<para>
|
||||
Unix domain sockets are not available on Windows.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue