Re: [PATCH 0/3] Add getrandom() fallback, cleanup headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 10/25/23 3:46 PM, Petr Vorel wrote:
Hi,

motivation to add this is to allow to compile reexport on systems with
older libc. (getrandom() wrapper is supported on glibc 2.25+ and  musl
1.1.20+, uclibc-ng does
not yet support it).

getrandom() syscall is supported Linux 3.17+ (old enough to bother with
a check).

I also wonder why getrandom() syscall does not called with GRND_NONBLOCK
flag. Is it ok/needed to block?

Kind regards,
Petr

Petr Vorel (3):
   reexport/fsidd.c: Remove unused headers
   support/reexport.c: Remove unused headers
   support/backend_sqlite.c: Add getrandom() fallback

  Makefile.am                       |  1 +
  aclocal/getrandom.m4              | 16 ++++++++++++++++
  configure.ac                      |  3 +++
  support/reexport/backend_sqlite.c | 18 +++++++++++++++++-
  support/reexport/fsidd.c          | 10 ----------
  support/reexport/reexport.c       |  7 -------
  6 files changed, 37 insertions(+), 18 deletions(-)
  create mode 100644 aclocal/getrandom.m4

Committed... (tag: nfs-utils-2-6-4-rc6)

steved.




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux