From owner-freebsd-ports@FreeBSD.ORG Thu Feb 15 02:33:07 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B9F0016A401 for ; Thu, 15 Feb 2007 02:33:07 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.freebsd.org (Postfix) with ESMTP id 98CBE13C442 for ; Thu, 15 Feb 2007 02:33:07 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l1F2X7Gl014605 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 14 Feb 2007 18:33:07 -0800 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l1F2X6dm002858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 14 Feb 2007 18:33:06 -0800 Message-ID: <45D3C660.1010806@u.washington.edu> Date: Wed, 14 Feb 2007 18:33:04 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (X11/20070122) MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.14.182434 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Looking for kernel constants / documentation - RTC, wordsize X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2007 02:33:07 -0000 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 +#define RTC_IRQP_SET RTCIO_IRQP_SET +#define RTC_PIE_ON RTCIO_PIE_ON +#else #include #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