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
int _dbus_write(int fd, const DBusString* buffer, int start, int len)
{
    const char* data;
    int bytes_written;

    data = _dbus_string_get_const_data_len(buffer, start, len);

again:

    bytes_written = write(fd, data, len);

    if (bytes_written < 0 && errno == EINTR)
        goto again;

#if 0
  if (bytes_written > 0)
    _dbus_verbose_bytes_of_string (buffer, start, bytes_written);
#endif

    return bytes_written;
}
/**
 * Thin wrapper around the write() system call that writes a part of a
 * DBusString and handles EINTR for you.
 *
 * @param fd the file descriptor to write
 * @param buffer the buffer to write data from
 * @param start the first byte in the buffer to write
 * @param len the number of bytes to try to write
 * @returns the number of bytes written or -1 on error
 */
Thin wrapper around the write() system call that writes a part of a
DBusString and handles EINTR for you.


Thin wrapper around the write () system call that writes a part of a DBusString and handles EINTR for you .
int _dbus_write(int fd, const DBusString* buffer, int start, int len)
{
    const char* data;
    int bytes_written;
    data = _dbus_string_get_const_data_len(buffer, start, len);
again:
    bytes_written = write(fd, data, len);
    if (bytes_written < 0 && errno == EINTR)
        goto again;
#if 0
  if (bytes_written > 0)
    _dbus_verbose_bytes_of_string (buffer, start, bytes_written);
#endif
    return bytes_written;
}
int _dbus_write ( int fd , const DBusString * buffer , int start , int len ) { const char * data ; int bytes_written ; data = _dbus_string_get_const_data_len ( buffer , start , len ) ; again : bytes_written = write ( fd , data , len ) ; if ( bytes_written < 0 && errno == EINTR ) goto again ; #if 0 if ( bytes_written > 0 ) _dbus_verbose_bytes_of_string ( buffer , start , bytes_written ) ; #endif return bytes_written ; }
Thin wrapper around the write() system call that writes a part of a
 DBusString and handles EINTR for you.
Thin wrapper around the write () system call that writes a part of a DBusString and handles EINTR for you .