select.h 523 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <fd_set.h>
  8. #include <signal.h>
  9. #include <string.h>
  10. #include <sys/cdefs.h>
  11. #include <sys/time.h>
  12. #include <sys/types.h>
  13. __BEGIN_DECLS
  14. int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, struct timeval* timeout);
  15. int pselect(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, const struct timespec* timeout, sigset_t const* sigmask);
  16. __END_DECLS