uio.h 350 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <Kernel/API/POSIX/sys/types.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. // Arbitrary pain threshold.
  12. #define IOV_MAX 1024
  13. struct iovec {
  14. void* iov_base;
  15. size_t iov_len;
  16. };
  17. #ifdef __cplusplus
  18. }
  19. #endif