summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-04-30 12:32:25 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-04-30 12:32:25 +0200
commitc105cd27111444f3d35e495515ea90ab78e0ac7f (patch)
tree5a6dacaf30e8e97286c7b48b4e12a726c18a24c5 /hurd
parent73c5fef2c013cf5aed809fb6b6e52c07d5352360 (diff)
Rework the paragraph
Diffstat (limited to 'hurd')
-rw-r--r--hurd/networking.mdwn6
1 files changed, 1 insertions, 5 deletions
diff --git a/hurd/networking.mdwn b/hurd/networking.mdwn
index 20468d0f..e1bebec5 100644
--- a/hurd/networking.mdwn
+++ b/hurd/networking.mdwn
@@ -10,15 +10,11 @@ is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]
For each supported `PF_*` protocol family (domain), there is a file `/servers/socket/N`
-where `N` is the numeric value for the `PF_*` symbol. Right now
+where `N` is the numeric value for the `PF_*` symbol. libc's socket(), socketpair() and friends use `hurd_socket_server` to open them: the latter computes the `/servers/socket/N` path, then open it a return the result. Since those paths are translated (see showtrans on `/servers/socket/N`), it's a port to a translator which is returned. Right now
[[`PF_LOCAL`|translator/pflocal]] (a.k.a. `PF_UNIX` or `AF_UNIX`) `N=1`,
[[`PF_INET`|translator/pfinet]] (a.k.a `AF_INET`) `N=2` and
[[`PF_INET6`|translator/pfinet/ipv6]] (a.k.a `AF_INET6`) `N=26` are supported.
-Depending on the socket domain used the libc function `_hurd_socket_server`
-is called from the calling function socket/socketpair, resolving to those
-`/servers/socket/` nodes, which are translated by `/hurd/pflocal`, `/hurd/pfinet`, etc, see showtrans on them.
-
In case of problems to find out which server is called rpctrace can be of use:
search for the output `dir_lookup ("servers/socket/N" ...)`