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
dbus_bool_t _dbus_send_credentials_socket(DBusSocket server_fd,
                                          DBusError* error)
{
    _DBUS_ASSERT_ERROR_IS_CLEAR(error);

    if (write_credentials_byte(server_fd.fd, error))
        return TRUE;
    else
        return FALSE;
}
/**
 * Sends a single nul byte with our UNIX credentials as ancillary
 * data.  Returns #TRUE if the data was successfully written.  On
 * systems that don't support sending credentials, just writes a byte,
 * doesn't send any credentials.  On some systems, such as Linux,
 * reading/writing the byte isn't actually required, but we do it
 * anyway just to avoid multiple codepaths.
 *
 * Fails if no byte can be written, so you must select() first.
 *
 * The point of the byte is that on some systems we have to
 * use sendmsg()/recvmsg() to transmit credentials.
 *
 * @param server_fd file descriptor for connection to server
 * @param error return location for error code
 * @returns #TRUE if the byte was sent
 */
Sends a single nul byte with our UNIX credentials as ancillary
data.  Returns #TRUE if the data was successfully written.  On
systems that don't support sending credentials, just writes a byte,
doesn't send any credentials.  On some systems, such as Linux,
reading/writing the byte isn't actually required, but we do it
anyway just to avoid multiple codepaths.

Fails if no byte can be written, so you must select() first.

The point of the byte is that on some systems we have to
use sendmsg()/recvmsg() to transmit credentials.

@param server_fd file descriptor for connection to server
@param error return location for error code
@returns #TRUE if the byte was sent
Sends a single nul byte with our UNIX credentials as ancillary data . Returns #TRUE if the data was successfully written . On systems that don ' t support sending credentials just writes a byte doesn ' t send any credentials . On some systems such as Linux reading / writing the byte isn ' t actually required but we do it anyway just to avoid multiple codepaths . Fails if no byte can be written so you must select () first . The point of the byte is that on some systems we have to use sendmsg () / recvmsg () to transmit credentials . @param server_fd file descriptor for connection to server @param error return location for error code @returns #TRUE if the byte was sent
dbus_bool_t _dbus_send_credentials_socket(DBusSocket server_fd,
                                          DBusError* error)
{
    _DBUS_ASSERT_ERROR_IS_CLEAR(error);
    if (write_credentials_byte(server_fd.fd, error))
        return TRUE;
    else
        return FALSE;
}
dbus_bool_t _dbus_send_credentials_socket ( DBusSocket server_fd , DBusError * error ) { _DBUS_ASSERT_ERROR_IS_CLEAR ( error ) ; if ( write_credentials_byte ( server_fd . fd , error ) ) return TRUE ; else return FALSE ; }
Sends a single nul byte with our UNIX credentials as ancillary
 data.
Sends a single nul byte with our UNIX credentials as ancillary data .