summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-sysdeps-unix.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-22 03:08:48 +0200
committerLennart Poettering <lennart@poettering.net>2009-05-20 01:36:19 +0200
commit18f7259a439740d02f6cd727e32348b51191de14 (patch)
tree035dba0c670d1f7fd9d21b0db1a2a6dfb64aa133 /dbus/dbus-sysdeps-unix.h
parent03d50fbd77481568bb2127d8b92e22d2cdc61ab8 (diff)
sysdeps-unix: introduce _dbus_dup()
This is a simple wrapper around dup()-like functionality. Also handles CLOEXEC and makes sure we don't interfere with the standard I/O file descriptors 0, 1 and 2.
Diffstat (limited to 'dbus/dbus-sysdeps-unix.h')
-rw-r--r--dbus/dbus-sysdeps-unix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-unix.h b/dbus/dbus-sysdeps-unix.h
index 0005cd87..5b7723a2 100644
--- a/dbus/dbus-sysdeps-unix.h
+++ b/dbus/dbus-sysdeps-unix.h
@@ -44,7 +44,9 @@ DBUS_BEGIN_DECLS
dbus_bool_t
_dbus_close (int fd,
DBusError *error);
-int
+int _dbus_dup (int fd,
+ DBusError *error);
+int
_dbus_read (int fd,
DBusString *buffer,
int count);