[Oberon] clock_gettime

peter at easthope.ca peter at easthope.ca
Sat Jul 11 17:09:46 CEST 2026


Hi,
=================================
Starting A2 system. 
Unix.Dlsym: entry 'clock_gettime' not found
Unix.Dlsym: entry 'clock_getres' not found
GC mode : metadata

LinuxA2 Gen. 32-bit, Apr 19 2023 2026/07/05 06:04

Trap 11 (Segmentation violation)
=================================

Clock access in an older Linux differs from contemporary Linux. I 
wonder whether Linux.Unix.Mod can determine what is available before 
invoking something certain to fail.  Then invoke something which 
works.

Linux.Unix.Mod has this.
Dlsym( libc, "clock_gettime", ADDRESSOF(clock_gettime) );
  ...
clock_gettime-	: PROCEDURE {C} (clk_id: INTEGER; tp: ADDRESS): INTEGER;

Ideas?

Thanks,               ... P.L.
  
-- 
mobile:  +1 778 951 5147
VoIP:    +1 778 508 0020 <= decommissioning
Bcc: peter at e a s t h o p e dot c a
projects: en.wikibooks.org/wiki/User:PeterEasthope



More information about the Oberon mailing list