Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2007 23:03:31 -0800
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-ports@freebsd.org
Subject:   Re: Looking for kernel constants / documentation - RTC, wordsize
Message-ID:  <45D405C3.9000106@u.washington.edu>
In-Reply-To: <45D3C660.1010806@u.washington.edu>
References:  <45D3C660.1010806@u.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Cooper wrote:
> Hello again,
>     In my effort to continue porting tvtime to freebsd I've come across 
> several issues in compiling the app.
> 
>     One sets of issues are compiling files with Linux specific, mostly 
> dealing with RTC. I did a bit of searching, discovered that the mplayer 
> dealt with a similar issue and the port author submitted the following 
> patch, but I can't seem to find the rtc.h header file:
> 
>  #ifdef HAVE_RTC
> +#ifdef HAVE_BSDRTC
> +#include <rtc.h>
> +#define RTC_IRQP_SET RTCIO_IRQP_SET
> +#define RTC_PIE_ON RTCIO_PIE_ON
> +#else
>  #include <linux/rtc.h>
>  #endif
> +#endif
> 
> HAVE_BSDRTC is defined by the configure file. Would anyone know where 
> rtc.h is right off-hand?
> 
> Another question is function-wise, will I have to worry about the 
> details with FreeBSD's RTC vs Linux's RTC (apparently Linux's RTC is 
> more defined than FreeBSD's as of 2 years ago, or so some mailing list 
> guy said) or can I just ignore them?
> 
> Finally, where can I find the constant defined in bits/wordsize.h called 
> "__WORDSIZE" (or "WORDSIZE", perhaps)?
> 
> Thanks,
> 
> -Garrett

I found out about the rtc stuff. It appears that there's a port in 
emulators/rtc that takes care of a majority of the compatibility issues. 
Going to talk to the @hacker guys about the last constant reference.

About wordsize though--does anyone know if and where that might be?

Thanks,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45D405C3.9000106>