[opensuse] What package provides glibc <sys/random.h>?
All, openSuSE install of glibc doesn't provide the /usr/include/sys/random.h header. What package does? e.g. http://man7.org/linux/man-pages/man2/getrandom.2.html On Arch $ pmqo /usr/include/sys/random.h /usr/include/sys/random.h is owned by glibc 2.25-7 Where is it on openSuSE? (Leap 42.2) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2017 12:59 PM, David C. Rankin wrote:
All,
openSuSE install of glibc doesn't provide the /usr/include/sys/random.h header. What package does?
e.g. http://man7.org/linux/man-pages/man2/getrandom.2.html
On Arch
$ pmqo /usr/include/sys/random.h /usr/include/sys/random.h is owned by glibc 2.25-7
Where is it on openSuSE? (Leap 42.2)
I think no Leap package will provide it. There is one in the kernel source tree for kernel use. Maybe man(3) random for userland. For an out of tree kernel module maybe man(4) random? Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
David C. Rankin wrote:
All,
openSuSE install of glibc doesn't provide the /usr/include/sys/random.h header. What package does?
glibc-devel I would suggest. that provides "/usr/include/linux/random.h" -- Per Jessen, Zürich (26.4°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2017 12:20 PM, Per Jessen wrote:
David C. Rankin wrote:
All,
openSuSE install of glibc doesn't provide the /usr/include/sys/random.h header. What package does? glibc-devel I would suggest.
that provides "/usr/include/linux/random.h"
Thanks guys, Yes, I have all the devel packages installed. These are functions *in user space* that can be used to control blocking of the random devices (/dev/random and /dev/urandom) when requesting data from the entropy pool. see: https://www.gnu.org/software/libc/manual/html_node/Unpredictable-Bytes.html#... I cannot believe they are not provided by the opensuse glibc package somewhere? It would be incomplete without them :( -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Aug 15, 2017 at 12:32 PM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
On 08/15/2017 12:20 PM, Per Jessen wrote:
openSuSE install of glibc doesn't provide the /usr/include/sys/random.h header. What package does? glibc-devel I would suggest.
that provides "/usr/include/linux/random.h"
I cannot believe they are not provided by the opensuse glibc package somewhere? It would be incomplete without them :(
On my Leap 42.2 box: # rpm -qf /usr/include/linux/random.h linux-glibc-devel-4.4-2.15.noarch -Nick -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
David C. Rankin wrote:
On 08/15/2017 12:20 PM, Per Jessen wrote:
David C. Rankin wrote:
All,
openSuSE install of glibc doesn't provide the /usr/include/sys/random.h header. What package does? glibc-devel I would suggest.
that provides "/usr/include/linux/random.h"
Thanks guys,
Yes, I have all the devel packages installed. These are functions *in user space* that can be used to control blocking of the random devices (/dev/random and /dev/urandom) when requesting data from the entropy pool.
David, if I look up "man getrandom" (you mentioned that) on Leap, it's in <linux/random.h>. I guess there is something in <sys/random.h> that you need, but I can't tell what it is.
see: https://www.gnu.org/software/libc/manual/html_node/Unpredictable-Bytes.html#...
aha, getentropy() is missing, but getrandom() we have in <linux/random.h> -- Per Jessen, Zürich (25.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2017 12:56 PM, Per Jessen wrote:
aha, getentropy() is missing, but getrandom() we have in <linux/random.h>
Thanks Per, Yes, I found getrandom() in linux.h. I was scratching my head over the discrepancy between the gcc reference stating: The getrandom function is declared in the header file sys/random.h. It is a GNU extension. and it being in linux/random.h in openSuSE? Even more bewildering is it is in sys/random.h on Arch. I suspect, but I could be wrong, that somewhere years ago, either getrandom() was originally in linux/random.h and it moved along with getentropy() to sys/random.h and openSuSE just kept it in the original location, or something similar. Do we need to file a bug to get getentropy() added to out glibc? -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2017 10:32 AM, David C. Rankin wrote:
On 08/15/2017 12:20 PM, Per Jessen wrote:
David C. Rankin wrote:
All,
openSuSE install of glibc doesn't provide the /usr/include/sys/random.h header. What package does? glibc-devel I would suggest.
that provides "/usr/include/linux/random.h"
Thanks guys,
Yes, I have all the devel packages installed. These are functions *in user space* that can be used to control blocking of the random devices (/dev/random and /dev/urandom) when requesting data from the entropy pool.
see: https://www.gnu.org/software/libc/manual/html_node/Unpredictable-Bytes.html#...
I cannot believe they are not provided by the opensuse glibc package somewhere? It would be incomplete without them :(
Welcome to OpenSUSE... Following up on Pers post, I found /usr/include/linux/random.h is owned by linux-glibc-devel-4.4-5.4.noarch Just a *little bit*... different -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
All,
openSuSE install of glibc doesn't provide the /usr/include/sys/random.h header. What package does?
e.g. http://man7.org/linux/man-pages/man2/getrandom.2.html
On Arch
$ pmqo /usr/include/sys/random.h /usr/include/sys/random.h is owned by glibc 2.25-7
Where is it on openSuSE? (Leap 42.2) Nowhere. Because you will need to install glibc-2.25 to get it. Leap-42.2 is
Am Dienstag, 15. August 2017, 11:59:08 schrieb David C. Rankin: based on the older glibc-2.22. Some background in <https://lwn.net/Articles/711013/> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2017 02:07 PM, Markus Koßmann wrote:
All,
openSuSE install of glibc doesn't provide the /usr/include/sys/random.h header. What package does?
e.g. http://man7.org/linux/man-pages/man2/getrandom.2.html
On Arch
$ pmqo /usr/include/sys/random.h /usr/include/sys/random.h is owned by glibc 2.25-7
Where is it on openSuSE? (Leap 42.2) Nowhere. Because you will need to install glibc-2.25 to get it. Leap-42.2 is
Am Dienstag, 15. August 2017, 11:59:08 schrieb David C. Rankin: based on the older glibc-2.22. Some background in <https://lwn.net/Articles/711013/>
Thank you Markus! That explains it. Who'd a thunk, 3 years to get getrandom() and a knock-down drag-out fight over wrappers. Funny how history works... -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Bruce Ferrell
-
David C. Rankin
-
Mark Hounschell
-
Markus Koßmann
-
Nick LeRoy
-
Per Jessen