summaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2015-03-11 15:56:58 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2015-03-11 15:56:58 +0100
commit40a6b6e815d9762221ac0c6e6bd11a53fde4b11b (patch)
tree4f7064f4b424a35f51789ecc7211f68a8b363b5f /dbus
parentdfaf56e922d31c57d22149f15a7ded3e34e82d7f (diff)
downloaddbus-40a6b6e815d9762221ac0c6e6bd11a53fde4b11b.tar.gz
Revert "Rename _dbus_full_duplex_pipe() to more descriptive name _dbus_socketpair()."
This reverts commit ee0e15366c8b1ea196ad63a8376c8b5299279386.
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-server-debug-pipe.c3
-rw-r--r--dbus/dbus-spawn-win.c6
-rw-r--r--dbus/dbus-spawn.c2
-rw-r--r--dbus/dbus-sysdeps-unix.c18
-rw-r--r--dbus/dbus-sysdeps-win.c18
-rw-r--r--dbus/dbus-sysdeps.h8
6 files changed, 27 insertions, 28 deletions
diff --git a/dbus/dbus-server-debug-pipe.c b/dbus/dbus-server-debug-pipe.c
index 32d62dd8..8f5ff5fb 100644
--- a/dbus/dbus-server-debug-pipe.c
+++ b/dbus/dbus-server-debug-pipe.c
@@ -246,7 +246,8 @@ _dbus_transport_debug_pipe_new (const char *server_name,
return NULL;
}
- if (!_dbus_socketpair (&client_fd, &server_fd, FALSE, NULL))
+ if (!_dbus_full_duplex_pipe (&client_fd, &server_fd, FALSE,
+ NULL))
{
_dbus_verbose ("failed to create full duplex pipe\n");
dbus_set_error (error, DBUS_ERROR_FAILED, "Could not create full-duplex pipe");
diff --git a/dbus/dbus-spawn-win.c b/dbus/dbus-spawn-win.c
index f7b56d19..7da7a431 100644
--- a/dbus/dbus-spawn-win.c
+++ b/dbus/dbus-spawn-win.c
@@ -686,9 +686,9 @@ _dbus_spawn_async_with_babysitter (DBusBabysitter **sitter_p,
}
PING();
- if (!_dbus_socketpair (&sitter->socket_to_babysitter,
- &sitter->socket_to_main,
- FALSE, error))
+ if (!_dbus_full_duplex_pipe (&sitter->socket_to_babysitter,
+ &sitter->socket_to_main,
+ FALSE, error))
goto out0;
sitter->sitter_watch = _dbus_watch_new (sitter->socket_to_babysitter,
diff --git a/dbus/dbus-spawn.c b/dbus/dbus-spawn.c
index 86161e9c..959c1844 100644
--- a/dbus/dbus-spawn.c
+++ b/dbus/dbus-spawn.c
@@ -1258,7 +1258,7 @@ _dbus_spawn_async_with_babysitter (DBusBabysitter **sitter_p,
if (!make_pipe (child_err_report_pipe, error))
goto cleanup_and_fail;
- if (!_dbus_socketpair (&babysitter_pipe[0], &babysitter_pipe[1], TRUE, error))
+ if (!_dbus_full_duplex_pipe (&babysitter_pipe[0], &babysitter_pipe[1], TRUE, error))
goto cleanup_and_fail;
/* Setting up the babysitter is only useful in the parent,
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c
index ab7efc25..3f606712 100644
--- a/dbus/dbus-sysdeps-unix.c
+++ b/dbus/dbus-sysdeps-unix.c
@@ -3275,22 +3275,22 @@ _dbus_print_backtrace (void)
}
/**
- * Creates pair of connect sockets (as in socketpair()).
- * Sets both ends of the pair nonblocking.
+ * Creates a full-duplex pipe (as in socketpair()).
+ * Sets both ends of the pipe nonblocking.
*
* Marks both file descriptors as close-on-exec
*
* @param fd1 return location for one end
* @param fd2 return location for the other end
- * @param blocking #TRUE if pair should be blocking
+ * @param blocking #TRUE if pipe should be blocking
* @param error error return
* @returns #FALSE on failure (if error is set)
*/
dbus_bool_t
-_dbus_socketpair (int *fd1,
- int *fd2,
- dbus_bool_t blocking,
- DBusError *error)
+_dbus_full_duplex_pipe (int *fd1,
+ int *fd2,
+ dbus_bool_t blocking,
+ DBusError *error)
{
#ifdef HAVE_SOCKETPAIR
int fds[2];
@@ -3346,9 +3346,9 @@ _dbus_socketpair (int *fd1,
return TRUE;
#else
- _dbus_warn ("_dbus_socketpair() not implemented on this OS\n");
+ _dbus_warn ("_dbus_full_duplex_pipe() not implemented on this OS\n");
dbus_set_error (error, DBUS_ERROR_FAILED,
- "_dbus_socketpair() not implemented on this OS");
+ "_dbus_full_duplex_pipe() not implemented on this OS");
return FALSE;
#endif
}
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c
index 6e59c5ee..50258151 100644
--- a/dbus/dbus-sysdeps-win.c
+++ b/dbus/dbus-sysdeps-win.c
@@ -1045,22 +1045,20 @@ failed:
************************************************************************/
/**
- * Creates pair of connect sockets (as in socketpair()).
- * Sets both ends of the pair nonblocking.
- *
- * Marks both file descriptors as close-on-exec
+ * Creates a full-duplex pipe (as in socketpair()).
+ * Sets both ends of the pipe nonblocking.
*
* @param fd1 return location for one end
* @param fd2 return location for the other end
- * @param blocking #TRUE if pair should be blocking
+ * @param blocking #TRUE if pipe should be blocking
* @param error error return
* @returns #FALSE on failure (if error is set)
-*/
+ */
dbus_bool_t
-_dbus_socketpair (int *fd1,
- int *fd2,
- dbus_bool_t blocking,
- DBusError *error)
+_dbus_full_duplex_pipe (int *fd1,
+ int *fd2,
+ dbus_bool_t blocking,
+ DBusError *error)
{
SOCKET temp, socket1 = -1, socket2 = -1;
struct sockaddr_in saddr;
diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h
index bbbf7082..2dbc420d 100644
--- a/dbus/dbus-sysdeps.h
+++ b/dbus/dbus-sysdeps.h
@@ -438,10 +438,10 @@ dbus_bool_t _dbus_stat (const DBusString *filename,
DBusStat *statbuf,
DBusError *error);
DBUS_PRIVATE_EXPORT
-dbus_bool_t _dbus_socketpair (int *fd1,
- int *fd2,
- dbus_bool_t blocking,
- DBusError *error);
+dbus_bool_t _dbus_full_duplex_pipe (int *fd1,
+ int *fd2,
+ dbus_bool_t blocking,
+ DBusError *error);
void _dbus_print_backtrace (void);