recvmmsg_time32.c 334 B

12345678910
  1. #include "time32.h"
  2. #define _GNU_SOURCE
  3. #include <time.h>
  4. #include <sys/socket.h>
  5. int __recvmmsg_time32(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct timespec32 *ts32)
  6. {
  7. return recvmmsg(fd, msgvec, vlen, flags, ts32 ? (&(struct timespec){
  8. .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}) : 0);
  9. }