cross armhf tangle
Hal Murray
halmurray at sonic.net
Tue Feb 4 08:40:57 UTC 2025
>> It didn't know what a struct timeval was.
> Did you set the required defines first?
I don't think I have to set anything.
> Any place I can go to see the BSD man page
> and the include file contents?
I got the man page via google: freebsd man timespec
Google found their source code on github.
https://github.com/lattera/freebsd/blob/master/sys/sys/time.h
The sys/sys is not a typo. The first sys is the top level directory where
they put source code.
>> man timeval on this Linux box says:
>> SYNOPSIS
>> #include <sys/time.h>
> Odd. Not on Gentoo. What linux are you on?
I happened to be typing on a Debian box. It says:
$ apropos timespec
timespec (3bsd) - time structures
timespec (3type) - time in seconds and nanoseconds
TIMESPEC_TO_TIMEVAL (3bsd) - time structures
...
man timespec gives me the first page which says
#include <sys/time.h>
$ man 3type timespec says
#include <time.h>
The 3type version is on all the other Linux boxes I have checked. I don't
know where the 3bsd man page came from.
> If it is working, why are we talking about it?
I thought I was answering your questions.
--
These are my opinions. I hate spam.
More information about the devel
mailing list