Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2007 18:33:04 -0800
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-ports@freebsd.org
Subject:   Looking for kernel constants / documentation - RTC, wordsize
Message-ID:  <45D3C660.1010806@u.washington.edu>

next in thread | raw e-mail | index | archive | help
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



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