tmpsocket_name = make_message("%s/.paraslash/audioc_sock.%s.%s",
home, hn, randname);
- ret = create_pf_socket(tmpsocket_name, &unix_addr, S_IRUSR | S_IWUSR);
+ ret = create_local_socket(tmpsocket_name, &unix_addr, S_IRUSR | S_IWUSR);
unlink(tmpsocket_name);
if (ret < 0)
goto out;
PARA_NOTICE_LOG("local socket: %s\n", socket_name);
if (conf.force_given)
unlink(socket_name);
- fd = create_pf_socket(socket_name, &unix_addr,
+ fd = create_local_socket(socket_name, &unix_addr,
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IWOTH);
if (fd < 0) {
PARA_EMERG_LOG("%s", "can not connect to socket\n");
* \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;
int recv_buffer(int fd, char *buf, size_t size);
int recv_bin_buffer(int fd, char *buf, size_t size);
int para_accept(int, void *addr, socklen_t size);
-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 init_unix_addr(struct sockaddr_un *, const char *);
int recv_cred_buffer(int, char *, size_t);