1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-06-02 02:01:46 +03:00
Adhemerval Zanella 4a30a71401 linux: Add recvvmsg fallback for 64-bit time_t SO_TIMESTAMP{NS}
Handle the SO_TIMESTAMP{NS} similar to recvmsg: for
!__ASSUME_TIME64_SYSCALLS it converts the first 32-bit time SO_TIMESTAMP
or SO_TIMESTAMPNS and appends it to the control buffer if has extra
space or returns MSG_CTRUNC otherwise.  The 32-bit time field is kept
as-is.

Also for !__ASSUME_TIME64_SYSCALLS it limits the maximum number of
'struct mmsghdr *' to IOV_MAX (and also increases the stack size
requirement to IOV_MAX times sizeof (socklen_t)).  The Linux imposes
a similar limit to sendmmsg, so bound the array size on recvmmsg is not
unreasonable.  And this will be used only on older when building with
32-bit time support.

Checked on x86_64-linux-gnu and i686-linux-gnu (on 5.4 and on 4.15
kernel).

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
2021-06-15 10:42:10 -03:00
..
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-02-11 08:02:16 -03:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-06-03 08:26:04 +02:00
2021-02-11 08:00:48 -03:00
2021-03-18 15:54:39 -03:00
2021-03-26 13:36:17 -03:00
2021-03-26 13:37:14 -03:00
2021-03-26 13:37:18 -03:00
2021-03-26 13:37:18 -03:00
2021-03-26 13:37:18 -03:00
2021-03-26 13:37:18 -03:00
2021-03-26 13:36:17 -03:00
2021-02-11 08:00:48 -03:00
2021-03-29 10:22:13 -03:00
2021-03-26 13:36:17 -03:00
2021-05-03 08:15:53 +02:00
2021-05-17 20:55:21 +00:00
2021-03-08 22:41:41 +01:00
2021-02-08 09:20:03 +01:00
2021-03-02 16:55:05 +01:00
2021-06-02 07:32:19 +02:00