aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-11-11 12:54:09 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-11-11 12:54:09 +0000
commit58073638e695a34728794daf83c63b740419daa4 (patch)
treeeeba7311d95c50a910e35236c677f1da6eb8cf38
parent515357987af4449e8fa027f7af9bc405809e83b8 (diff)
downloadpies-58073638e695a34728794daf83c63b740419daa4.tar.gz
pies-58073638e695a34728794daf83c63b740419daa4.tar.bz2
pies: rename open_socket to create_socket
-rw-r--r--pies/pies.h2
-rw-r--r--pies/progman.c4
-rw-r--r--pies/socket.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/pies/pies.h b/pies/pies.h
index bc8105e..4d57fd7 100644
--- a/pies/pies.h
+++ b/pies/pies.h
@@ -164,7 +164,7 @@ unsigned depmap_next (pies_depmap_t dmap, pies_depmap_pos_t pos);
void pies_pause (void);
int register_listener (int fd);
int pass_fd (const char *socket, int fd);
-int open_socket (mu_url_t url);
+int create_socket (mu_url_t url);
int parse_limits (limits_record_t *plrec, char *str, char **endp);
diff --git a/pies/progman.c b/pies/progman.c
index 976062c..9d37e67 100644
--- a/pies/progman.c
+++ b/pies/progman.c
@@ -292,7 +292,7 @@ register_prog (struct component *comp)
struct prog *prog = register_prog0 (comp);
if (comp->mode == pies_comp_inetd)
{
- int fd = open_socket (comp->socket_url);
+ int fd = create_socket (comp->socket_url);
if (fd == -1)
prog->v.p.status = status_disabled;
else if (register_listener (fd))
@@ -542,7 +542,7 @@ prog_start (struct prog *prog)
/* fall through */
case pies_comp_accept:
- prog->v.p.socket = open_socket (prog->v.p.comp->socket_url);
+ prog->v.p.socket = create_socket (prog->v.p.comp->socket_url);
if (prog->v.p.socket == -1)
{
prog->v.p.status = status_disabled;
diff --git a/pies/socket.c b/pies/socket.c
index b983e5e..e16d78f 100644
--- a/pies/socket.c
+++ b/pies/socket.c
@@ -28,7 +28,7 @@
#include <arpa/inet.h>
int
-open_socket (mu_url_t url)
+create_socket (mu_url_t url)
{
int rc;
int fd;

Return to:

Send suggestions and report system problems to the System administrator.