X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.c;h=cb504f3cce860f26eb8dd53d6c3c0a1d33424f24;hp=9d0cb6c09aeaf2ba9ff19057f146e5f3d922e3ae;hb=007d547044e1d93ca56fd8a61506578e26ccdcb0;hpb=471684761a2039bbc89aa1e3c33c62de6bef86cf diff --git a/net.c b/net.c index 9d0cb6c0..cb504f3c 100644 --- a/net.c +++ b/net.c @@ -374,11 +374,11 @@ int init_unix_addr(struct sockaddr_un *u, const char *name) } /** - * prepare, create, and bind and socket for local communication + * Prepare, create, and bind a socket for local communication. * - * \param name the socket pathname - * \param unix_addr pointer to the \p AF_UNIX socket structure - * \param mode the desired mode of the socket + * \param name The socket pathname. + * \param unix_addr Pointer to the \p AF_UNIX socket structure. + * \param mode The desired mode of the socket. * * This functions creates a local socket for sequenced, reliable, * two-way, connection-based byte streams. @@ -389,7 +389,7 @@ int init_unix_addr(struct sockaddr_un *u, const char *name) * \sa bind(2) * \sa chmod(2) */ -int create_pf_socket(const char *name, struct sockaddr_un *unix_addr, +int create_local_socket(const char *name, struct sockaddr_un *unix_addr, mode_t mode) { int fd, ret;