From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b08,6266f9f777efcf2d X-Google-Attributes: gid102b08,public X-Google-Thread: 1164f8,6266f9f777efcf2d X-Google-Attributes: gid1164f8,public X-Google-Thread: 114b0c,6266f9f777efcf2d X-Google-Attributes: gid114b0c,public X-Google-Thread: f4871,6266f9f777efcf2d X-Google-Attributes: gidf4871,public X-Google-ArrivalTime: 1994-01-21 13:43:25 PST Xref: gmd.de comp.sys.sun.apps:6734 comp.sys.hp:28673 comp.parallel.pvm:1305 comp.sys.dec:13011 Newsgroups: comp.sys.sun.apps,comp.sys.hp,comp.parallel.pvm,comp.sys.dec Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!cs.umd.edu!uchinews!att-out!cbnewsj!cbnewsi!cojjr From: cojjr@cbnewsi.cb.att.com (john.j.rushford..jr) Subject: Re: Accessing Real Time Clock in workstations (HPs, Suns, Dec Alphas) Organization: AT&T Date: Fri, 21 Jan 1994 15:48:04 GMT Message-ID: References: <2hmq76INNd2e@flop.ENGR.ORST.EDU> In article pdg@cup.hp.com (Paul Gootherts) writes: >NeoSwami (padalam@research.CS.ORST.EDU) wrote: >> We are looking for a similar kind of routine for the following workstations: >> ... >> HP 700 series [715/730] >> ... > >Take a look at gettimeofday(2). > >Paul Gootherts >pdg@cup.hp.com gettimeofday(2) only returns the operating system's idea of time. I think that he is looking for code fragments on how to read the Real Time Clock chip. I don't have this info but, there is a header file, /usr/include/sun4/clock.h, that describes the layout of various chips used by Sun. You probably need this header file and then you probably need to call either ioctl(2) or mmap(2) to read/write the chip, just guessing though.