sysdeps-unix: introduce _dbus_dup()
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2009 01:08:48 +0000 (03:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 May 2009 23:36:19 +0000 (01:36 +0200)
commit18f7259a439740d02f6cd727e32348b51191de14
tree035dba0c670d1f7fd9d21b0db1a2a6dfb64aa133
parent03d50fbd77481568bb2127d8b92e22d2cdc61ab8
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.
dbus/dbus-sysdeps-unix.c
dbus/dbus-sysdeps-unix.h