openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/dbus/1.12.16-r0/dbus-1.12.16/dbus/dbus-sysdeps-unix.c
void _dbus_fd_set_close_on_exec(int fd)
{
    int val;

    val = fcntl(fd, F_GETFD, 0);

    if (val < 0)
        return;

    val |= FD_CLOEXEC;

    fcntl(fd, F_SETFD, val);
}
/**
 * Sets the file descriptor to be close
 * on exec. Should be called for all file
 * descriptors in D-Bus code.
 *
 * @param fd the file descriptor
 */
Sets the file descriptor to be close
on exec. Should be called for all file
descriptors in D-Bus code.

@param fd the file descriptor
Sets the file descriptor to be close on exec . Should be called for all file descriptors in D - Bus code . @param fd the file descriptor
void _dbus_fd_set_close_on_exec(int fd)
{
    int val;
    val = fcntl(fd, F_GETFD, 0);
    if (val < 0)
        return;
    val |= FD_CLOEXEC;
    fcntl(fd, F_SETFD, val);
}
void _dbus_fd_set_close_on_exec ( int fd ) { int val ; val = fcntl ( fd , F_GETFD , 0 ) ; if ( val < 0 ) return ; val |= FD_CLOEXEC ; fcntl ( fd , F_SETFD , val ) ; }
Sets the file descriptor to be close
 on exec.
Sets the file descriptor to be close on exec .