Bug 87546 - [patch] emulators/rtc: broken if sizeof(int)!=sizeof(long)
Summary: [patch] emulators/rtc: broken if sizeof(int)!=sizeof(long)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-emulation (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-16 22:30 UTC by Šimun Mikecin
Modified: 2005-11-29 15:43 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.04 KB, patch)
2005-10-16 22:30 UTC, Šimun Mikecin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Šimun Mikecin 2005-10-16 22:30:16 UTC
Linux RTC interface defines that an application can read unsigned long
chunks from /dev/rtc. Our implementation uses int, so it is broken on all
platforms that have sizeof(long)!=sizeof(int). I corrected this. Also I
added support for reading int sized values, cause it is supported in the
Linux RTC implementation.

How-To-Repeat: On platform that has sizeof(int)!=sizeof(long) (eg. amd64) install
emulators/rtc port. Also install multimedia/mplayer with WITH_RTC=yes. Start
mplayer to watch a movie and you will see a bunch of error messages about
RTC.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-10-17 02:37:03 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-emulation

Over to maintainer(s).
Comment 2 Florent Thoumie freebsd_committer freebsd_triage 2005-11-29 15:43:53 UTC
State Changed
From-To: open->closed

Committed. Thanks!