aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/getrandom.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-01Update copyright dates with scripts/update-copyrights.Joseph Myers1-1/+1
2019-12-17hurd: Make getrandom honour GRND_NONBLOCKJames Clarke1-1/+5
* sysdeps/mach/hurd/getrandom.c (__getrandom): Open the random source with O_NONBLOCK when the GRND_NONBLOCK flag is provided. Message-Id: <20191217182929.90989-1-jrtc27@jrtc27.com>
2019-12-13hurd: Fix local PLTSamuel Thibault1-1/+4
* include/sys/random.h (__getrandom): Add hidden prototype. * stdlib/getrandom.c (getrandom): Rename to hidden definition __getrandom. Add weak alias. * sysdeps/mach/hurd/getrandom.c (getrandom): Likewise. * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise. * sysdeps/mach/hurd/getentropy.c (getentropy): Use __getrandom instead of getrandom.
2019-12-13hurd: add getrandom and getentropy implementationsAndrew Eggenberger1-0/+43
* sysdeps/mach/hurd/getentropy.c: New file. * sysdeps/mach/hurd/getrandom.c: Likewise.