xref: /third_party/musl/compat/time32/settimeofday_time32.c (revision 570af302)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/compat/time32/
1570af302Sopenharmony_ci#define _BSD_SOURCE
2570af302Sopenharmony_ci#include "time32.h"
3570af302Sopenharmony_ci#include <sys/time.h>
4570af302Sopenharmony_ci
5570af302Sopenharmony_ciint __settimeofday_time32(const struct timeval32 *tv32, const void *tz)
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ci	return settimeofday(!tv32 ? 0 : (&(struct timeval){
8570af302Sopenharmony_ci		.tv_sec = tv32->tv_sec,
9570af302Sopenharmony_ci		.tv_usec = tv32->tv_usec}), 0);
10570af302Sopenharmony_ci}
11

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