xref: /third_party/musl/compat/time32/pselect_time32.c (revision 570af302)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/compat/time32/
1570af302Sopenharmony_ci#include "time32.h"
2570af302Sopenharmony_ci#include <time.h>
3570af302Sopenharmony_ci#include <sys/select.h>
4570af302Sopenharmony_ci
5570af302Sopenharmony_ciint __pselect_time32(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, const struct timespec32 *restrict ts32, const sigset_t *restrict mask)
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ci	return pselect(n, rfds, wfds, efds, !ts32 ? 0 : (&(struct timespec){
8570af302Sopenharmony_ci		.tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}), mask);
9570af302Sopenharmony_ci}
10

Indexes created Thu Nov 07 10:32:03 CST 2024