ares_writev.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef HEADER_CARES_WRITEV_H
  2. #define HEADER_CARES_WRITEV_H
  3. /* Copyright 1998 by the Massachusetts Institute of Technology.
  4. *
  5. * Permission to use, copy, modify, and distribute this
  6. * software and its documentation for any purpose and without
  7. * fee is hereby granted, provided that the above copyright
  8. * notice appear in all copies and that both that copyright
  9. * notice and this permission notice appear in supporting
  10. * documentation, and that the name of M.I.T. not be used in
  11. * advertising or publicity pertaining to distribution of the
  12. * software without specific, written prior permission.
  13. * M.I.T. makes no representations about the suitability of
  14. * this software for any purpose. It is provided "as is"
  15. * without express or implied warranty.
  16. */
  17. #include "ares_setup.h"
  18. #include "ares.h"
  19. #ifndef HAVE_WRITEV
  20. /* Structure for scatter/gather I/O. */
  21. struct iovec
  22. {
  23. void *iov_base; /* Pointer to data. */
  24. size_t iov_len; /* Length of data. */
  25. };
  26. extern ares_ssize_t ares_writev(ares_socket_t s, const struct iovec *iov, int iovcnt);
  27. #endif
  28. #endif /* HEADER_CARES_WRITEV_H */